View Single Post
  #2  
Old 11-02-2011, 09:28 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Urgent! How to change "add-to-cart" to "contact us" if price is 0

I haven't played with this in quite awhile but in earlier versions of x-cart if you gave a product a price of $0.00 it would display "Call for Price". I can't remember if it still displayed the "add to cart" button or not (I don't think it should).

Anyway, you should be able to use the "price = $0.00" part of the code to display the "ask a question about this product" link in the product details using a if/else routine.

http://forum.x-cart.com/showthread.php?t=61432 discusses hiding the "add to cart" button.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote