Jump to content

if product issue


Recommended Posts

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 display

more 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}%7B$img_ps_dir%7Dpromo_icon.gif

{elseif $product.new == 1}%7B$img_ps_dir%7Dnew_icon.gif{/if}

in the foreach loop

My 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 you

i have a sceenshot attached. The second product is newer that the first ant i does not show the new badge.
.

20025_AzK0ZRqxwBKVZWIO6XCf_t

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...