Menno99 Posted December 8, 2014 Share Posted December 8, 2014 Hello, I show the weight of the product page using: Weight: {$product->weight*100/100} and this works like a charme. Now i added the same to the product-list.tpl but it return Weight: 0 Anyone an idea how to fix this? I use PrestaShop 1.5.3.1 Thanks. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 8, 2014 Share Posted December 8, 2014 In product page, var $product is an object but in product list var $product is an array. Therefore you should use dot(.) instead arrow(->) {$product.weight} 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now