ptityop Posted September 10, 2022 Share Posted September 10, 2022 Hello, We used to have the following this piece of code on our presta 1.6 to show the discount % of a product , but this is not working on the new version, I tried to add it to the tpl file but everything disappears when adding it ... any help would be appreciated. Thanks in advance <td style="border-bottom: solid 0px black; text-align: top ; width: 10% ; line-height:20px;font-size:8px; "> {if isset($order_detail.unit_price_tax_excl_before_specific_price)} {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl_including_ecotax} {else} {if $tax_excluded_display} {displayPrice price=$order_detail.unit_price_tax_excl} {else} {displayPrice price=$order_detail.unit_price_tax_excl} {/if} {/if} </td> <td style=" border-bottom: solid 0px black;text-align: right; width: 10%"> {if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)} -{displayPrice price=$order_detail.reduction_percent}% {elseif (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)} -{$order_detail.reduction_percent}% {else} {if ($order_detail.reduction_amount > 0)} {$order_detail.reduction_amount} {else} - {/if} {/if} </td> And also this on the table header is not working anymore <td style="border-bottom: solid 0px black; text-align: top ; width: 10% ; line-height:20px;font-size:8px; "> {if isset($order_detail.unit_price_tax_excl_before_specific_price)} {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl_including_ecotax} {else} {if $tax_excluded_display} {displayPrice price=$order_detail.unit_price_tax_excl} {else} {displayPrice price=$order_detail.unit_price_tax_excl} {/if} {/if} </td> <td style=" border-bottom: solid 0px black;text-align: right; width: 10%"> {if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)} -{displayPrice price=$order_detail.reduction_percent}% {elseif (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)} -{$order_detail.reduction_percent}% {else} {if ($order_detail.reduction_amount > 0)} {$order_detail.reduction_amount} {else} - {/if} {/if} </td> 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