Summary:
When using a different products supplier, the cart module gives Products informations
Detailed Description:
Hi Robert,
When I use a third party supplier module, the cart module always gives me the
Products module custom fields.
For example, if I have an item ID 10 from another supplier module, the cart
displays the custom fields and some informations about the item ID 10 from the
Products module.
This is due to the code in action.viewcart.php, line from 104 to 150 which
always asks the products module, even if the source is another module.
To test it, you can add something like :
$obj->source = $oneitem->get_source();
if ($oneitem->get_source() == 'Products') {
// do the products stuff
}
But maybe all this action needs to be rewritten to give more power to third
party supplier modules, so they could be able to give some extra fields, images,
... to the cart display action.
Thank you,