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

Prevent customer checking out 0 dollar value items

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-08-2003, 12:43 PM
 
turtle turtle is offline
 

Member
  
Join Date: Sep 2003
Posts: 23
 

Default Prevent customer checking out 0 dollar value items

I have a number of items at $0 value in the database, and display a message "Call for Price" to customers. However I've not been able to prevent the "Buy Now" or "Add to Cart" actions from showing under the $0 value condition. Anyone know how?
Reply With Quote
  #2  
Old 09-09-2003, 10:22 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

There is a setting in general settings for the minimum allowed order total - put in a value of higher than 0 and that will stop the checkout potential.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 09-10-2003, 05:58 AM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

I "think" whats he's saying is not being able to add them at all. If say set a $10 min order then you could add something thats $10 then you would be able to add every $0 product in the catalog. So what what I think he's saying is if price=$0 then add to cart doesn't even show up.
__________________
Kanyon71
http://www.web-wizards.com
For hosting solutions that fully support X-Cart!
Mention the forums for a discounted package!
Reply With Quote
  #4  
Old 09-10-2003, 09:55 AM
 
turtle turtle is offline
 

Member
  
Join Date: Sep 2003
Posts: 23
 

Default

Yes Kanyon71 is correct. I don't want add to cart or buy now to show up at all on the product screen when price=$0.

I already have a minimum order amount of $50 in the general settings. But if there is more than one item in the cart then the 0$ item goes through too.

This seems to work in the products.tpl now. I may have had a syntax error. Now I just need to fix the buy_now.tpl, and get the the wish list tpl to display Call for Price as well.

{if $js_enabled}
{if $product.price ne 0}
{include file="buttons/add_to_cart.tpl"}
{/if}

{if $login ne "" and $active_modules.Wishlist ne ""}
{include file="customer/add2wl.tpl"}
{/if}
{else}
{if $product.price ne 0}
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}
{/if}
{/if}
{/if}
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:30 AM.

   

 
X-Cart forums © 2001-2020