简体   繁体   中英

Why related products are not working in joomla/virtuemart?

I am working with joomla 2.5 and virtuemart 2.0. When I tried to add related products it searched and showed many products but clicking on it doesn't saved any products as related. I checked table

 #__virtuemart_product_relations 

but it doesn't have any record, however I added some rows to it with product ids but still it didn't worked!

I solved it myself exploring all joomla virtuemart tables. I'm posting answer here may be it can help others. Actually the table to store related products is

#__virtuemart_product_customfields.

If you are not able to add related products from joomla administrator then insert rows to this table. You need to add only 3 fields ie

1.virtuemart_product_id (enter here id of the product related for)

2.virtuemart_custom_id (enter here 1)

3.custom_value (product id of the related product).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM