Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Displaying a title image for reduced price items

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-10-2007, 12:29 PM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default 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
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #2  
Old 01-10-2007, 01:20 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-14-2007, 09:27 PM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default 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
__________________
Version 4.0.17/4.0.18
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:00 PM.

   

 
X-Cart forums © 2001-2020