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

{if $product.price eq 0} ....

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-05-2010, 04:19 PM
 
ROIMasterGuru ROIMasterGuru is offline
 

Newbie
  
Join Date: Jan 2010
Location: Canada
Posts: 3
 

Wink {if $product.price eq 0} ....

If a product is priced at 0, I need there to be a message stating 'Contact For Current Pricing'.

The closest I have found is the post below, however it didn't apply to my Xcart 4.3.0 because
I did not find a price section in customer/main/product.tpl, nor an 'add to cart' section???

Please help.

"I tried several variables to find the one for price and the following is what I came up with. I changed the product price to zero 0, then I created a label as Available Soon, and added the following in customer/main/product.tpl before the Price section as.....

{if $product.price eq 0}<div><font class="ProductDetailsTitle">{$lng.lbl_available_so on}</font></div>
{else}

I closed the {/if} after my add to cart, this way I removed the price, quantity and add to cart for those products that are not available for sale, but allows them to show on our store."

__________________
--
Christopher
XCart 4.3.0 Windows

"Do or do not; there is no try.
" Yoda
Reply With Quote
  #2  
Old 01-05-2010, 06:26 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: {if $product.price eq 0} ....

for 4.3 look in skin1/customer/main/product_details.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
ambal (01-06-2010)
  #3  
Old 01-05-2010, 07:02 PM
 
ROIMasterGuru ROIMasterGuru is offline
 

Newbie
  
Join Date: Jan 2010
Location: Canada
Posts: 3
 

Default Re: {if $product.price eq 0} ....

Thank you very much!!! I owe you one. You rock!
__________________
--
Christopher
XCart 4.3.0 Windows

"Do or do not; there is no try.
" Yoda
Reply With Quote
  #4  
Old 01-05-2010, 10:47 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: {if $product.price eq 0} ....

buy him a steak! or just hit the little thanks button
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 01-06-2010, 01:07 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,121
 

Default Re: {if $product.price eq 0} ....

Moved this to X-Cart Customization > Storefront Design & Template Editing in v 4.2.x and 4.3.x
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
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 11:12 PM.

   

 
X-Cart forums © 2001-2020