View Single Post
  #2  
Old 01-17-2007, 06:31 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Products with variants add to cart more than once?

To allow items to be added to the cart only once change this line in include/cart_processes.php (around line 133)

PHP Code:
if (!empty($active_modules['Egoods']) && !empty($added_product['distribution']))
        
$amount 1;
    else
        
$amount abs(intval($amount)); 

Comment out every line except the $amount =1;

PHP Code:
//if (!empty($active_modules['Egoods']) && !empty($added_product['distribution']))
        
$amount 1;
    
//else
        //$amount = abs(intval($amount)); 
Reply With Quote