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

Displaying price as "Please call For Low Price"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-15-2003, 08:47 PM
 
gbuecker gbuecker is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 1
 

Default Displaying price as "Please call For Low Price"

Is there a way to modify X-cart so I can display a text message instead of price? We cannot list some prices because they are below manufacturers price and they forbid it. I tried the modification to leave out the price altogether if I entered zero but I had no luck. I still get the "Enter a price" line. Also if anybody knows were the text labels are definded, I would like to know (ie. the text for labels in the templates).

Thanks for your help.
Glen
Reply With Quote
  #2  
Old 02-15-2003, 09:20 PM
 
vincentjiang vincentjiang is offline
 

Member
  
Join Date: Dec 2002
Posts: 29
 

Default

you could add a condition in products.tpl and product.tpl when the price is equal to zero...
Reply With Quote
  #3  
Old 02-15-2003, 11:00 PM
  disneyana's Avatar 
disneyana disneyana is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Columbus, OH
Posts: 116
 

Default

vincent,

could you possibly provide an example on how to do this? Thanks!
__________________
- disneyana
4.0.17
Reply With Quote
  #4  
Old 03-03-2003, 11:38 AM
 
davidgreenberg davidgreenberg is offline
 

Member
  
Join Date: Jan 2003
Posts: 15
 

Default same pricing prob

I would like to be able to have people call for pricing for the really expensive items ya know?

how do put text (call for pricing) in the price variable box?
Reply With Quote
  #5  
Old 03-03-2003, 12:02 PM
 
usermike usermike is offline
 

Advanced Member
  
Join Date: Jan 2003
Posts: 41
 

Default

You could provide a condition such as the following:

Code:
{if $product.price > 50000} {$lng.lbl_call_for_price} {else} blah blah {/if}
Reply With Quote
  #6  
Old 03-05-2003, 09:16 PM
 
davidgreenberg davidgreenberg is offline
 

Member
  
Join Date: Jan 2003
Posts: 15
 

Default

usermike and all -
thank you for the help. though i dunno how to script php code. i want to learn. books? websites? thank you again
Reply With Quote
  #7  
Old 03-05-2003, 10:04 PM
 
blane blane is offline
 

Member
  
Join Date: Feb 2003
Posts: 13
 

Default Smarty PHP Documentation

David,
This scripting is actually Smarty PHP template engine. It is actually quite a nice tool, but a little confusing at first glance. You can learn more at this site and get some good documentation that is instructional.

http://smarty.php.net/manual/en/

I found it helpful.
__________________
............. Blane
<Matthew 28:18-20>Life</Revelation 3:20>
Reply With Quote
  #8  
Old 03-10-2003, 12:04 PM
 
davidgreenberg davidgreenberg is offline
 

Member
  
Join Date: Jan 2003
Posts: 15
 

Default

i still dont know what smarty does. do i create my own template by using smarty coding? it doesnt have a front end right? the manual tells me how to script, so i figure i have to go in and try things myself, but it seems more trouble than its worth. i dunno
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 02:19 PM.

   

 
X-Cart forums © 2001-2020