Quote:
Originally Posted by wjbrewer
Add this to the auth.php file
PHP Code:
$smarty->assign('basicmarkup', 1.2);
Add it after this code:
PHP Code:
x_session_register("logout_user"); x_session_register("session_failed_transaction"); x_session_register("add_to_cart_time");
|
I can't get variables to show it's modified value in other templates. ex:
in template_decide.tpl:
Code:
{if $customer eq "A"}
{assign var="basicmarkup" value=1.4}
{else}
{assign var="basicmarkup" value=1.6}
{/if}
and then I use product.tpl to display the result like:
Code:
markup: {$basicmarkup}
The output will be "markup: 1.2" as it is assigned with $smarty->assign('basicmarkup', 1.2) in auth.php
How do I pass the variable between templates with a new modified value ?
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x
Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE