Daniel Ciornei Posted March 8, 2010 Share Posted March 8, 2010 so this is what I am trying to do. I want to insert in search, homefeatured, categories etc, in all the places it could be inserted a mod for products displaymore specific:let's take one category and when i click on it it will show all the products in it. I want at each product to display an overlaping badge over the product thumb, if the product is new - a new badge, and if the product is reduced a promo badge.I sort of achieved that by placing this code {if $product.on_sale} {elseif $product.new == 1}{/if}in the foreach loopMy problem is that when i added a new product for example, it does not show a badge. It shows in the new product page, but if i check the {$product.new} for it, it shown nothing when it should be 1.Does anyone have an idea why this is happening? I use 1.2.5 Thank youi have a sceenshot attached. The second product is newer that the first ant i does not show the new badge. . Link to comment Share on other sites More sharing options...
Daniel Ciornei Posted March 9, 2010 Author Share Posted March 9, 2010 today I have a new issue on the problem .As i said i am displaying the value of {$product.new} to see what is going on. well if load a page with a list of products, some are with 1, meaning they are new, some don't.what happends is that if i refresh the page, other products have 1 value then the first time. that is weird....i am thinking is somethind\g to do with cache or cookies.... 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