Last active
December 13, 2015 17:39
-
-
Save fjaguero/4950012 to your computer and use it in GitHub Desktop.
Smarty: Simple Prestashop aritmetic operation with variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{if $feature.id_feature == 16 } | |
{assign var="shopPrice" value="`$feature.value`"} | |
{/if} | |
{if isset($shopPrice)} | |
<div class="tienda-discount"> | |
{if $feature.id_feature == 16 } | |
{assign var="shopPrice" value="`$feature.value`"} | |
{/if} | |
{assign var="save" value="`$shopPrice-$productPrice`"} | |
Precio en tienda {$shopPrice}€ - Ahórrate {$save}€ | |
</div><!-- tienda-discount --> | |
{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment