我想在產品詳細信息頁面添加靜態塊4類我不喜歡這個附加在商品詳細頁靜態塊帶有URL和塊標題free_shipping_4
。 (free_shipping_4中的4代表類別4)。只對某些類別的
我得到錯誤:
Fatal error: Unsupported operand types in C:\wamp\www\mydomain\app\design\frontend\default\mytheme\template\catalog\product\view.phtml on line 140
線140是什麼樣子? –
'$ this-> helper('catalog/data') - > getProduct() - > getCategoryIds();返回一個包含當前產品關聯的所有類別的ID的數組,而不是一個ID,所以''free_shipping_「+ $ catid'無法工作(我想這是140行)。 – blmage
我正在使用我自己的主題。最初第40行是<?php $ blockID =「product-view-static-links_」。$ catid; ?>但現在我發現$ catid是數組。所以用$ catid [1]它現在正在工作。 – abagray