What's New
Viewing 16 posts - 1 through 16 (of 16 total)
Viewing 16 posts - 1 through 16 (of 16 total)
You must be logged in to reply to this topic.
Hi,
would it be possible to add a text with the money saved from the cart like this page -> https://prnt.sc/srzh6y?
You can do this without using the module in the product.tpl file, in the place where you want to display this information, paste the following code:
<p id="reduction_amount" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if} class="fl">{strip}
<span id="reduction_amount_display" class="sale_percentage">
{if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|intval !=0}
{l s='You will save '}-{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval}
{/if}
</span>
{/strip}</p>
Best Regards.
Hi,
@gracjansikora, awesome, good solution. the module was prepared, just need some time to release it.
Best regards.
You can do this without using the module in the product.tpl file, in the place where you want to display this information, paste the following code:
<p id="reduction_amount" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if} class="fl">{strip} <span id="reduction_amount_display" class="sale_percentage"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|intval !=0} {l s='You will save '}-{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval} {/if} </span> {/strip}</p>
Best Regards.
in this folder?
templates\catalog\_partials\miniatures\product.tpl ??
And in which sections or part of the code, I can put those lines?
thank you very much!
Hi,
Please take a look at the following modules: https://addons.prestashop.com/en/search?search_query=total%20saved
Best regards.
You must be logged in to reply to this topic.