CMS MADE SIMPLE FORGE

Cart

 

[#7370] Supplier param not keeped in add to cart form

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Mon Dec 19 13:35:07 -0500 2011

Assigned To:
Version: 1.8.1
CMSMS Version: 1.10.2
Severity: Critical
Resolution: Fixed
State: Open
Summary:
Supplier param not keeped in add to cart form
Detailed Description:
Hi,

When Using the CGEcommerceBase suite with the Cart module and another supplier
module than Products, the product can't be added to the cart.

I call the add to cart form in my EventsManager module (under development)
{cgecomm_form_addtocart supplier='EventsManager' product=$entry->id} 

In the form, the "supplier" params isn't used - That's why when we submit, the
Cart module tries to search a product in the Products module instead of the
"supplier" one

Adding this line :
if ($supplier_mod != 'Products')
	$parms['supplier'] = $supplier_mod;

line 165 in file action.default.php seems to solve the problem

Thanks


History

Comments
avatar
Date: 2012-03-17 19:01
Posted By: Robert Campbell (calguy1000)

Fixed in svn.
      
Updates

Updated: 2012-03-17 19:01
resolution_id: => 7