Masocrate Posted October 7, 2021 Share Posted October 7, 2021 Hi, i would like to show some custom content below products with spefic tags on product-list.tpl. Already have tried two things: https://stackoverflow.com/a/45283123/2375074 On the first case - it simply doesn't work. I guess it's for single product? On the second - the part: {if $value=="mytag"} - doesn't work. I have tag named "puch" with ID 1, so i would like to show custom text below it in product-list.tpl, so what i have tried is: {if $value=="puch"} test 1 {/if} - but nothing shows up... The tags have allocated products to it, i have no idea what might be wrong here. It doesn't matter if the check would be for tag ID or tag value. Any help would be much appreciated. Link to comment Share on other sites More sharing options...
Masocrate Posted October 7, 2021 Author Share Posted October 7, 2021 Figured it myself, "from" needs proper variable for products listing, which was: Tag::getProductTags($product.id_product) 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