能用聪明来制造条件吗?在.tpl文件中,我只有{cart_product_price}来打印当前的点菜价格。例如:
if ({cart_product_price} > 350){
echo 'shipping free';
}发布于 2016-01-15 01:20:25
你当然可以。检查一下这个:
{if $cart_product_price > 350}
something...
{else}
something else...
{/if}或
{if ( $cart_product_price < 0 or $cart_product_price > 350 ) }
...
{/if}查看更多关于智能文档页面:http://www.smarty.net/docs/en/language.function.if.tpl
https://stackoverflow.com/questions/34354698
复制相似问题