Following the advice in this earlier forum : http://forum.opencart.com/viewtopic.php ... 25#p265525
I have made the following amends to: admin/model/catalog/product.php
1. FIND & DELETE 2 INSTANCES OF:
Code: Select all
$this->db->query("INSERT INTO " . DB_PREFIX . "product_related SET product_id = '" . (int)$related_id . "', related_id = '" . (int)$product_id . "'");
Code: Select all
$this->db->query("DELETE FROM " . DB_PREFIX . "product_related WHERE product_id = '" . (int)$related_id . "' AND related_id = '" . (int)$product_id . "'");
i.e. I can make PRODUCT A be related to PRODUCT B, without PRODUCT B being related to PRODUCT A.
This is great...
However, in the instances where I require a reciprocal relationship, it is not possible.
What I hope to achieve is not to remove this as an option entirely, as the above code seems to do. Only, I hope to make the two way relationship not automatic.
Any advice on how to solve this would be greatly appreciated.
Thanks