在我的Magento應用程序創建的模板/網頁/文件夾PHTML網頁..
這裏顯示的產品......然後有需要顯示
$this->getAddToCartUrl($product)
但它返回空值......這意味着沒有返回值吧.....
我怎樣才能得到它在我的PHTML頁面.......
這是一個html代碼:
<input id="url_<?php echo $_iterator;?>" name="url_$_iterator;" type="text" value="<?php echo $this->getAddToCartUrl($product) ?>">
anyboady有任何解決方案....
它的工作......你能解釋一下爲什麼我們需要用戶幫手吧... – user1493023 2013-07-15 06:35:26
你不要將你的模板定義爲'catalog/product_list' – 2015-07-23 14:12:47