Guest Posted October 16, 2005 Share Posted October 16, 2005 I have installed Quantity Price Breaks Per Product v1.0 in german... it works great! But now I want install Dangling Carrot (from 20 Aug 2005) and I dont know how to combine the part from the catalog/includes/classes/shopping_cart.php The original part of the catalog/includes/classes/shopping_cart.php looks like: $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); if ($products = tep_db_fetch_array($products_query)) { $prid = $products['products_id']; $products_price = $products['products_price']; $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'"); if (tep_db_num_rows($specials_query)) { $specials = tep_db_fetch_array($specials_query); $products_price = $specials['specials_new_products_price']; } After the changes to Quantity Price Breaks Per Product: if ($products = $pf->loadProduct($products_id, $languages_id)) { $products_price = $pf->computePrice($this->contents[$products_id]['qty']); And Dangling Carrot say?s, it have to look like that: $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_carrot, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); May somebody help me? Maybe the changes have to be in catalog/includes/PriceFormatter.php but I dont know :( Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2005 Share Posted October 17, 2005 ...nobody... nothing... ? :( I become desperate... :( Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2006 Share Posted February 12, 2006 You will find the line you seek in priceformatter.php Link to comment Share on other sites More sharing options...
beano Posted March 28, 2007 Share Posted March 28, 2007 Did you ever get quantity price breaks to work with dangling carrot? If so how did you do it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.