X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Prevent customer checking out 0 dollar value items (https://forum.x-cart.com/showthread.php?t=4276)

turtle 09-08-2003 12:43 PM

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?

funkydunk 09-09-2003 10:22 PM

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.

Kanyon71 09-10-2003 05:58 AM

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.

turtle 09-10-2003 09:55 AM

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}


All times are GMT -8. The time now is 09:49 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.