X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Displaying a title image for reduced price items (https://forum.x-cart.com/showthread.php?t=27930)

MCM 01-10-2007 12:29 PM

Displaying a title image for reduced price items
 
Hi,

I was wondering if there's a way to do the following:

When an item's price is reduced, a small image that says reduced is appended to the beginning of the product title wherever it appears. Ideally, this would only last a certain amount of time after the reduction took place. If it's not possible to do this, can I assume an extra field could be added for reduced items, that, if checked, could add this image indefinitely (until unchecked) with a simple logical statement?

Thanks,

Jeremy

balinor 01-10-2007 01:20 PM

Re: Displaying a title image for reduced price items
 
Take a look at the code for the little 'save xx%' icon on the product detail page. You could use something similar to have it show an image in the product title.

MCM 01-14-2007 09:27 PM

Re: Displaying a title image for reduced price items
 
Hi,

I've tried adding this to the title of the item in customer/main/products.tpl:

Code:


{if $products[product].Reduced ne ""}*Reduced*{/if}


I've created an extra field called Reduced. The problem I'm facing now is how to get the logic to work. I've tried the following:

-Set the default Reduced to N, and the expression ne "N" This caused every item to show "*Reduced*" including the one I changed from N to y.

-Set the default Reduced to nothing, using the code above. This doesn't display *Reduced* for any item, even if I put text in the field.

Do you have any suggestions?

Thanks!

Jeremy


All times are GMT -8. The time now is 12:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.