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

Adding an Image to Product info for FREE SHIPPING...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-23-2004, 01:07 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default Adding an Image to Product info for FREE SHIPPING...

Does anyone know which code is required to add an image to product.tpl and products_t.tpl to display an small image that only shows up if the FREE SHIPPING option is selected for that item in admin under product_modify.php?

At the moment there is no way for a customer to see that the item has free shipping on it, until they add it to their cart, so this cant be used as a promo idea unless displayed as such, hence why we want to add an image to show free shipping on that item if it is available.

We have been searching, but not yet found the correct code.
Any ideas?
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #2  
Old 12-23-2004, 01:30 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Ignore me, once again just after I posted this I was hit by inspiration and worked it out.

If anyone else wants to do it, here is the code for product.tpl:
Code:
{if $product.free_shipping ne "N"} [img]{$ImagesDir}/free_shipping_small.gif[/img] {/if}

Here is the code for products_t.tpl:
Code:
{if $products[product].free_shipping ne "N"} <td width="40%" align="center">[img]{$ImagesDir}/free_shipping_small.gif[/img] </td> {/if}

Hope it helps...
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #3  
Old 12-23-2004, 03:41 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default

Thanks for the info, hopefully similar types of features will be in the upcomgin Special Offers add-on module....
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #4  
Old 12-23-2004, 07:32 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

No probs.

Do you know what is actually in the Special Offers mod as yet?

I have been trying to find out what that and the feature comparison mod will be about, but I cant find any info on them...
__________________
XC 4.2 inc (unofficial) patch release.
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 04:36 AM.

   

 
X-Cart forums © 2001-2020