mocall Posted May 18, 2007 Share Posted May 18, 2007 I plan to use Quantity Price Breaks Per Product under MVS v1. (Multi Vender Shipping). I replaced some script and uploaded new file for using Quantity Price Breaks Per Product. But does not work. maybe the problem is replacing shopping cart.php line around 300 $products_query = tep_db_query("select products_id, products_price, products_tax_class_id, products_weight, vendors_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'" ); $products_price = $product['products_price']; replace if ($product = $pf->loadProduct($products_id, $languages_id)) { $products_price = $pf->computePrice($qty); and new file catalog/includes/classes/PriceFormatter.php catalog/includes/classes/PriceFormatterStore.php admin/includes/classes/PriceFormatter.php maybe need to change script in these files for MVS if you know the solution, please tell me. Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted May 18, 2007 Share Posted May 18, 2007 I plan to use Quantity Price Breaks Per Product under MVS v1. (Multi Vender Shipping). I replaced some script and uploaded new file for using Quantity Price Breaks Per Product. But does not work. Probably it will work again with a few small changes. In catalog/includes/classes/PriceFormatterStore.php add vendors_id to the $sql in function PriceFormatterStore. In the function addPriceBreakData ($products_id, $productinfo) add vendors_id like this: ... 'products_name' => $productinfo['products_name'], 'vendors_id' => $productinfo['vendors_id'], etcetera.... Similarly add vendors_id to the $sql in the function PriceFormatter in catalog/includes/classes/PriceFormatter. That will probably do it. No need to add it to the admin section in the class PriceFormatter. Quote Link to comment Share on other sites More sharing options...
mocall Posted May 22, 2007 Author Share Posted May 22, 2007 Probably it will work again with a few small changes.In catalog/includes/classes/PriceFormatterStore.php add vendors_id to the $sql in function PriceFormatterStore. In the function addPriceBreakData ($products_id, $productinfo) add vendors_id like this: ... 'products_name' => $productinfo['products_name'], 'vendors_id' => $productinfo['vendors_id'], etcetera.... Similarly add vendors_id to the $sql in the function PriceFormatter in catalog/includes/classes/PriceFormatter. That will probably do it. No need to add it to the admin section in the class PriceFormatter. thank you so much. I will try to change soon. and I will tell you after done it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.