News:

Looking for documentation? Take a look on our wiki

Main Menu

[SOLVED] Search including MPN

Started by franayala, September 08, 2014, 12:14:53 PM

Previous topic - Next topic

franayala

Hi all,

How to include product MPN in search?

This is possible? In configuration back end we can not locate an option to do this. We can include a lot of options to search but no Manufacturer Part Number.

Thanks!!!
www.cuidadicos.es - Natural suplements and beauty

GJC Web Design

Hopefully will be added in the final VM3 but maybe you can add the field in administrator/components/com_virtuemart/virtuemart.cfg

browse_search_fields=array:`p`.product_sku|category_name|category_description|mf_name|product_name|product_s_desc|product_desc|product_mpn
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

franayala

www.cuidadicos.es - Natural suplements and beauty

GJC Web Design

ah well - did you look why not?

models/product.php?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

franayala

www.cuidadicos.es - Natural suplements and beauty

franayala

it's impossible for me to solve this.

Any help, please?

Thanks!
www.cuidadicos.es - Natural suplements and beauty

slammy

as far as I can see it´s already included in vm 2.6.10, just tested and it worked ...

franayala

not for me. In a clean installation not work :(
www.cuidadicos.es - Natural suplements and beauty

jjk

Just tested it in my 2.6.10 version. Doesn't work for me.
@slammy
Did you check by chance with Product SKU and MPN being identical? I this case probably your Product SKU was found.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

slammy

@jjk

this is surprising for me. there are no identicals because I don´t use mpn. I´ve tested it with 12345 and the be-product-search found this one (from > 500 in db) where I´ve edited the mpn with 12345. I can post files if you want, just tell me which ones.
best regards
jens

jjk

Quote from: slammy on September 15, 2014, 12:30:59 PM
... I´ve tested it with 12345 and the be-product-search found this one (from > 500 in db) where I´ve edited the mpn with 12345.

Ok, that's the difference. I've tested it with the frontend search. Product SKU is available for the frontend search, MPN is not.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

slammy

ah - ok you speak about fe-search, sry misunderstood you.

franayala

how to include mpn in front send search? :)
www.cuidadicos.es - Natural suplements and beauty

Milbo

Quote from: GJC Web Design on September 09, 2014, 09:37:02 AM
Hopefully will be added in the final VM3 but maybe you can add the field in administrator/components/com_virtuemart/virtuemart.cfg

browse_search_fields=array:`p`.product_sku|category_name|category_description|mf_name|product_name|product_s_desc|product_desc|product_mpn

Cant work, you add a value for a field, which is not in the array
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

try
shopfunctions.php around line 1151, function getValidProductFilterArray

just add 'product_mpn' to the array
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/