Zenzation Posted March 3, 2010 Share Posted March 3, 2010 After updating from 1.2.5. to 1.3 I have a problemWhen a customer puts someting in the cart everything goes in the cart. In the top right corner (the cart) it shows how many items he did put in to the cart, i.e. 3 x Eider. Now comes the problem / error: When he goes to the cart (button: cart) it shows at the quantity / number not " 3 " but it shows how much I have in stock (10).I put a screendump with the problem!Can anyone help me with this?Extra info:I think the problem is in this part of the code in order.php:// for compatibility with 1.2 themes foreach($summary['products'] AS $key => $product) $summary['products'][$key]['quantity'] = $product['cart_quantity']; $smarty->assign($summary); $token = Tools::getToken(false); $smarty->assign(array( 'token_cart' => $token, 'isVirtualCart' => $cart->isVirtualCart(), 'productNumber' => $cart->nbProducts(), 'voucherAllowed' => Configuration::get('PS_VOUCHERS'), 'HOOK_SHOPPING_CART' => Module::hookExec('shoppingCart', $summary), 'HOOK_SHOPPING_CART_EXTRA' => Module::hookExec('shoppingCartExtra', $summary), 'shippingCost' => $cart->getOrderTotal(true, 5), 'shippingCostTaxExc' => $cart->getOrderTotal(false, 5), 'customizedDatas' => $customizedDatas, 'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_, 'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_, 'lastProductAdded' => $cart->getLastProduct() )); Link to comment Share on other sites More sharing options...
tomerg3 Posted March 3, 2010 Share Posted March 3, 2010 This is EXACTLY why you should not upgrade to anything other than a STABLE version.I sure hope you did not do it on a production site, and if you did, I hope you either have a backup, or someone to help fix bugs.I'm sorry I cannot offer any more help, hopefully this will be yet another warning to people with live shops who think it's a good idea to upgrade to an alpha version. Link to comment Share on other sites More sharing options...
Zenzation Posted March 4, 2010 Author Share Posted March 4, 2010 I fixed the problem....I get it ... STABLE stands for no errors anymore....but there were more problems in 1.2.5 then there are in 1.3...so I needed the update...But do you want to know what i've changed? Link to comment Share on other sites More sharing options...
rylersbud Posted March 8, 2010 Share Posted March 8, 2010 Yes I do I had similar trouble with google checkout and still testing and verifying it is the right fix so let me know Link to comment Share on other sites More sharing options...
Kormeseth Posted March 14, 2010 Share Posted March 14, 2010 :-) I fixed the problem....I get it ... STABLE stands for no errors anymore....but there were more problems in 1.2.5 then there are in 1.3...so I needed the update...But do you want to know what i've changed? Yes please, what did you change. I have the same problem as you. Please respond!Have a nice day :-) Link to comment Share on other sites More sharing options...
kouzen Posted March 18, 2010 Share Posted March 18, 2010 I'm using 1.2 and my summary displays the items that have reduction price,, when i removed all my reductions price it displays totally none,,can they fix this? i'm using a STABLE VERSION Link to comment Share on other sites More sharing options...
Kormeseth Posted March 26, 2010 Share Posted March 26, 2010 Please tell me what you did to fix this problem!!! Link to comment Share on other sites More sharing options...
aaronmarp Posted June 30, 2010 Share Posted June 30, 2010 For those of you who still want to know how to fix this, I simply uploaded the original order.php from my 1.3 install. It happened to me when attempting to get a USPS module to work. Hope this helps! And as always, when you try to fix stuff always keep a backup of your original files.CHEERS! Link to comment Share on other sites More sharing options...
martechusa Posted September 26, 2010 Share Posted September 26, 2010 I had this problem on the "Stable Version" as well, it is due to POOR VARIABLE DOCUMENTATION.HOW TO FIX STOCK QUANTITY BEING DISPLAYED INSTEAD OF CART QUANTITY:open prestashop\themes\yourtheme\shopping-cart-product-line.tplChange: {$product.quantity-$quantityDisplayed} Into: {$product.cart_quantity-$quantityDisplayed} Hope this helps, this is a very annoying bug. 1 Link to comment Share on other sites More sharing options...
xag2910 Posted September 15, 2011 Share Posted September 15, 2011 On version 1.3.1.1 that works perfect. Thanks for this post. Link to comment Share on other sites More sharing options...
rappin Posted October 13, 2011 Share Posted October 13, 2011 Thanks martechusa, your fixed solved my problem as well and I was using version 1.3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now