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

Hide price and add to cart button

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-03-2014, 10:21 AM
 
mpwebber mpwebber is offline
 

Member
  
Join Date: Jan 2014
Posts: 26
 

Default Hide price and add to cart button

I have some products that are informational only and would like to be able to disable showing a price and adding them to the cart.

How would I edit a template so that any item with a certain price (0.00 for example) would not display the price and button?
__________________
xcart v 5.1.3
Reply With Quote
  #2  
Old 07-03-2014, 11:11 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Hide price and add to cart button

Would not it work if you simply define this product as out of stock?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 07-03-2014, 12:11 PM
 
mpwebber mpwebber is offline
 

Member
  
Join Date: Jan 2014
Posts: 26
 

Default Re: Hide price and add to cart button

Out of stock does remove the add to cart button as desired, but it still shows a price.

I also do not care to see these informational items appeared greyed-out, but would rather them appear like any other item just without pricing.
__________________
xcart v 5.1.3
Reply With Quote
  #4  
Old 07-07-2014, 01:55 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Hide price and add to cart button

OK, I see. This is typical task for developers, so I will cover this point in docs during next couple of weeks and then publish a link to the article here.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


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 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 02:25 PM.

   

 
X-Cart forums © 2001-2020