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

Add Image below price on product details page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-17-2009, 12:30 PM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Add Image below price on product details page?

I've managed to add the free shipping code to show a free shipping image for products marked as free shipping on the main home page, is it possible to do the same for the product details page?

Main page that has free shipping: http://www.royalepro.com/

Page(s) I want to have free shipping under price(example): http://www.royalepro.com/CasinoRoyaleClay300.html

__________________
X-Cart Pro 4.2.2
Reply With Quote
  #2  
Old 12-17-2009, 03:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Add Image below price on product details page?

You have to edit skin1/customer/main/product.tpl and insert that code in there under the code for price. Is it an extra field? How do you check if product has free shipping?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 12-18-2009, 06:44 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Re: Add Image below price on product details page?

cflsystems: I added the following to my products_t.tpl

Quote:
{if $product.free_shipping eq "Y"} <img src="http://www.royalepro.com/skin1/images/free_shipping.gif" border="0">{/if}

Which shows the free shipping image on the main page if a product is flagged for free shipping. What I'm trying to do, is also have it show on the product details page when you click on a product.

Thanks.
__________________
X-Cart Pro 4.2.2
Reply With Quote
  #4  
Old 12-18-2009, 06:51 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Add Image below price on product details page?

You have to add this code to skin1/customer/main/product.tpl where you want it to show
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 12-18-2009, 06:55 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Re: Add Image below price on product details page?

I'm trying to find the line of code that has the price labels, but for the lfie of me I can't. I must be blind!

EDIT: Nevermind, I found it, starts on line 83
__________________
X-Cart Pro 4.2.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:15 AM.

   

 
X-Cart forums © 2001-2020