【发布时间】:2020-02-19 21:49:19
【问题描述】:
在我的 prestashop 商店中,我有两个变量 per_sqft_price 和 per_box_price。 per_sqft_price 之前有货币 ($) 签名。我正在尝试打印这两个变量的乘积。但它总是打印 0。
{assign var = per_sqft_price value = $product.price}
{assign var = per_box_price value = $product.features[0].value}
<meta itemprop="per_sqft_price" content="{$per_sqft_price|replace:'$':''}"/>
{math equation = "x * y" x = $per_sqft_price y = $per_box_price }
请帮助我如何解决这个问题。在此先感谢
【问题讨论】:
-
你能不能 var_dump
per_sqft_price和per_box_price(在assing之后)
标签: php prestashop smarty