Guest Posted January 25, 2006 Share Posted January 25, 2006 For some reason when I click on an item to add to cart. When it goes to view shopping cart the price in the subtotal catagory is dubbled of what it should be. Can anyone help me with this. Thanks in advance Brad Quote Link to comment Share on other sites More sharing options...
Chefs'Toys Posted August 4, 2006 Share Posted August 4, 2006 Was there a solution to this problem? I am having the same trouble. BTW - this happens with all of my items, not just items with attributes. The cart page doubles the price, but at check-out the prices are correct. Quote Link to comment Share on other sites More sharing options...
ryanpaul Posted August 14, 2006 Share Posted August 14, 2006 I am having this same problem, and haven't been able to find a solution anywhere. Exact Details: Order Sub-Total appears correct everywhere until I get to the "Order Confirmation" page, the last step. Then the Sub-Total: value is double what it should be. I've taken alook at the code in "checkout_confirmation.php", and also in the class that it calls, "order_total.php" but cannot find anything anywhere. Has anyone had this problem, and found a solution? My store front where I am noticing this problem: http://www.enterinside.com/shopping/ Thanks RyanPaul Quote Link to comment Share on other sites More sharing options...
blinxdk Posted October 5, 2006 Share Posted October 5, 2006 Any ideas on this? I've just noticed the same in my shop. Quote Link to comment Share on other sites More sharing options...
ryanpaul Posted October 5, 2006 Share Posted October 5, 2006 I was able to solve this problem.. The problem came up when I INCORECTLY applied a mod to the store. I wish I had all my scripts in front of me, but I'm oversea's atm, so all I can suggest at the moment is to replace the "order_total.php" with a fresh one - (un-modded), and it should work correctly. Then if you have indeed aplied a mod to that script go back and do it again, - this time more carefully, and it should work. Good luck RyanPaul Quote Link to comment Share on other sites More sharing options...
averagejane Posted December 4, 2006 Share Posted December 4, 2006 I was able to solve this problem.. The problem came up when I INCORECTLY applied a mod to the store. I wish I had all my scripts in front of me, but I'm oversea's atm, so all I can suggest at the moment is to replace the "order_total.php" with a fresh one - (un-modded), and it should work correctly. Then if you have indeed aplied a mod to that script go back and do it again, - this time more carefully, and it should work. Good luck RyanPaul I tried to replace the order_total.php file, to no avail. I still have my subtotal double what it should be. Can anyone help with a fix or any suggestions?! I'm really in a jam. Quote Link to comment Share on other sites More sharing options...
ryanpaul Posted December 4, 2006 Share Posted December 4, 2006 If you're problem is with a fresh install then I'm not sure what to suggest. If you've applied mods, I would recommend reversing all mods, by uploading all the original files to your server. If you've done extensive changes, and don't want to lose all your work, isolate the problem by replacing sections at a time. This of course won't change any info that is in your database, so none of that work is lost. Ryan Quote Link to comment Share on other sites More sharing options...
supernoc Posted December 19, 2006 Share Posted December 19, 2006 Verify in /includes/classes/order.php that you do not have duplicates of this segment of code $shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty']; $this->info['subtotal'] += $shown_price; bugnet 1 Quote Link to comment Share on other sites More sharing options...
drrtybyl Posted March 30, 2007 Share Posted March 30, 2007 It's possible that you are entering the item price into "value price" with the + operator in the "prefix" field when adding attributes for items. This will increment the price of your item by whatever amount you have entered into "value price". This field should be left blank if the item is to be sold at the price originally entered at given selected attributes. Likewise, if you plan to sell the item for less than the original price for a certain attribute selection, enter a '-' in the "prefix" field and this will decrement the total price of that item by the value price of that selected attribute. It would be a nice standard feature if someone made a contribution that automatically refreshed the display price to reflect a given value price. Maybe I will do this once I finish the store I'm working on. Hope this helps! Quote Link to comment Share on other sites More sharing options...
gatortail80 Posted January 6, 2008 Share Posted January 6, 2008 I had the same exact problem. I just installed this software which is nice. But after reading myself I took the prices out of the attributes and bingo it worked. Thank you all for the help and I hope my input can help someone else. :thumbsup: Quote Link to comment Share on other sites More sharing options...
Patabugen Posted January 30, 2008 Share Posted January 30, 2008 Verify in /includes/classes/order.php that you do not have duplicates of this segment of code $shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty']; $this->info['subtotal'] += $shown_price; Many thanks! I had installed a discount coupon module which had a block of code that included another copy of that line, and I hadn't removed the original line. All working =) Quote Link to comment Share on other sites More sharing options...
Qim Posted July 13, 2008 Share Posted July 13, 2008 The problem is in the catalog/includes/classes/shopping_cart.php There are two lines 271 and 272 that calculates the price. Comment out the first one. // $this->total += tep_add_tax($products_price, $products_tax) * $qty; THIS IS WRONG!! IT DOUBLES THE PRICE IN THE CART!!! $this->total += $currencies->calculate_price($products_price, $products_tax, $qty); Regards Sara 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.