CMS MADE SIMPLE FORGE

Cart

 

[#8441] When using a different products supplier, the cart module gives Products informations

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Wed Sep 26 04:02:51 -0400 2012

Assigned To:
Version: 1.8.4
CMSMS Version: 1.11.2
Severity: Major
Resolution: None
State: Open
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,


History