Eva Martin Posted February 22, 2016 Share Posted February 22, 2016 Hello ! I've got a problem with my prices drops by quantity. For exemple, with this product : http://directpoissons.com/fr/discus-elevage-hong-kong/1816-discus-hong-kong-assorti-5-6-cm-lot-de-5.html You've got a discount if you buy at least 3 products. On the product page, the discount appears clearly, and if you set the amount to 3+, you can see the discounted price appear with the %age discount label, etc... BUT If you add those 3 products and go to "see my cart", the the price is correctly discounted but the dicount %age and the money you are saving by ordering 3+ quantity is not appearing anywhere. I suppose this has to be set in the tpl file, but I can't find what to add or where. I tried to replace the tpl file shopping-car-.tpl & shopping-cart-product-line by the ones I found on the default theme, but except trashing the visual aspect, it didn't show the discount. Also, I've another issue with the cart-summary (but not sure if the two issues are linked) : When viewing the cart summary, I randomly have two views, which are both wrong : Either I see fort each product the quantity i added to the cart x the total price (instead of seeing the quantity x the unit price), either I see the quantity x blank space. thank you all for helping Link to comment Share on other sites More sharing options...
Eva Martin Posted March 7, 2016 Author Share Posted March 7, 2016 Hello there, I'm upping this topic, cause I'm still struggling with my issue ... I thought my problem may come from my custom theme, so I tried to update my blockcart.tpl with the default prestashop one. Unfortunately nothing changes. I can't find in any of these two tpl files the "quantityDiscount" lines I could find in the "product.tpl" file : {if (isset($quantity_discounts) && count($quantity_discounts) > 0)} <!-- quantity discount --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='Volume discounts'}</h3> <div id="quantityDiscount"> <table class="std table-product-discounts"> <thead> <tr> <th width=100>{l s='Quantity'}</th> <th width=100>{if $display_discount_price}{l s='Price'}{else}{l s='Remise'}{/if}</th> <th width=100>{l s='Vous économisez'}</th> </tr> </thead> <tbody> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {$realDiscountPrice=$productPriceWithoutReduction|floatval-$quantity_discount.real_value|floatval} {else} {$realDiscountPrice=$productPriceWithoutReduction|floatval-($productPriceWithoutReduction*$quantity_discount.reduction)|floatval} {/if} <tr id="quantityDiscount_{$quantity_discount.id_product_attribute}" class="quantityDiscount_{$quantity_discount.id_product_attribute}" data-real-discount-value="{convertPrice price = $realDiscountPrice}" data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value|floatval}" data-discount-quantity="{$quantity_discount.quantity|intval}"> <td> {$quantity_discount.quantity|intval} </td> <td> {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {if $display_discount_price} {if $quantity_discount.reduction_tax == 0 && !$quantity_discount.price} {convertPrice price = $productPriceWithoutReduction|floatval-($productPriceWithoutReduction*$quantity_discount.reduction_with_tax)|floatval} {else} {convertPrice price=$productPriceWithoutReduction|floatval-$quantity_discount.real_value|floatval} {/if} {else} {convertPrice price=$quantity_discount.real_value|floatval} {/if} unfortunately, even if I'm able to understand that something here is saying "if there is a quantity discount that is set, display it", I'm definitely not able to pick the lines that I should copy in the blockcart.tpl in order to get a "discounts" column that would say to the customer how much he's saving by buying my products. Even if, as said before, the total amounts are correctly calculated and de discounts are correctly applied. Anybody to help ? Or maybe I'm in the wrong section ?? Link to comment Share on other sites More sharing options...
Eva Martin Posted March 9, 2016 Author Share Posted March 9, 2016 Upping again ... I just discovered that if I set the default theme, the quantity discounts are showing perfectly well. Unfortunately, my custom theme seems to simply hide them. Is there any chance I could "copy" the default theme cart configuration and "paste" it somewhere inside my customized theme ? Thx 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