Martino00 Posted September 26, 2017 Share Posted September 26, 2017 Hello all. In my PrestaShop 1.6 i'm using two kinds of catalogue discounts. One of 2% another one 12% discount. The discount percentage is in the catalog price rule. The users are in a group and the group is connected with the catalog price rule. So the discount is not in the group itself. On my product page (in product.tpl) and on my product-list page (product-list.tpl) i can see the catalog price rule discount percentage. In the product--list it's showing because of {if $product.specific_prices.reduction_type == 'percentage'} <span >-{$product.specific_prices.reduction * 100}%</span> {/if} and in the product page it's showing because of <p id="reduction_percent" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none; "{/if}> {strip} <span id="reduction_percent_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}Uw korting: {$product->specificPrice.reduction*100}% {/if} </span> {/strip} </p> My question is... How can i show this discount percentage in my order-detail. At this moment i have a calculated discount in my order detail.I have an old price (striped through) and a discount value (so not a percentage) and then the new price.I can delete it from my shopping-cart-product-line.tpl that's no problem. But i want to display only the discount percentage. In the database you can find the discount percentage in the ps_specific_price_rule table in the field "reduction" Who is able to give me a good start? 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