m3442a Posted October 21, 2017 Share Posted October 21, 2017 Hello, I have a special category (ID 1) and always change the positions of the products positions manually in the BO. i would to Display the Position number in the product-list.tpl like Product 1 is in BO at Postion1 so = No.1 Product 2 is in BO at Postion2 so = 2, If i sort in the Backoffice the products then also want to change the numbers in the frontend. For detail: i would to see the sql entry from ps_category_products column position for this category only. I try in the frontend like this: {if $product.id_category_default == '1'} <p class="ranking">{$product.id_product.position}</p> {/if} Category filter working ( the placeholder shows only in that category ) But the numbers not working, the smarty $product.id_product.position not working. is there another option how this possible? Prestashop 1.7 thanks for help Link to comment Share on other sites More sharing options...
jayb174 Posted April 26, 2020 Share Posted April 26, 2020 Hello, Did you ever got to figure out what code to use to show the number of the product's position? As you mentioned, $product.id_product.position doesn't work. 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