//we search for this particular product in the shopping cart
					$q = "SELECT * FROM Collection_134 WHERE Collection_134_1='".$cartID."' AND Collection_134_2='".$productID."' AND Collection_134_4='".$priceID."' AND Collection_134_5 > 0";
					$res = $db->query($q);
					$productDetails = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
					
					if ($productDetails['Collection_134_3'] >= 25)
					{
							//we need to change the price with discount to be -25% off
							$addToCartData 	= array();
							$addToCartData['Collection_134_10'] = ceil(75 * $productDetails['Collection_134_5'] / 100) ;	
							$addToCartData['Collection_134_11'] = "25% off, for 25 or more products purchased ";
							$db->extended->autoExecute('Collection_134', $addToCartData , MDB2_AUTOQUERY_UPDATE, ' Collection_134_ID = ' . $productDetails['Collection_134_ID']);
					}
					else
					{
							$addToCartData 	= array();
							$addToCartData['Collection_134_10'] = $productDetails['Collection_134_5'] ;	
							$addToCartData['Collection_134_11'] = "";
							$db->extended->autoExecute('Collection_134', $addToCartData , MDB2_AUTOQUERY_UPDATE, ' Collection_134_ID = ' . $productDetails['Collection_134_ID']);
					}
					
					