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)
-   -   "Enter your price" fix on zero priced items (https://forum.x-cart.com/showthread.php?t=8726)

DanUK 08-02-2004 04:36 AM

"Enter your price" fix on zero priced items
 
I've found and utilised the modifications to product.tpl and products.tpl to remove those "enter your price" fields on zero priced items i.e. my freebies, BUT the "buy now" buttons still take me to the product details rather than adding straight to cart. Where is this behaviour defined for zero priced items and can it be changed easily?

Thanks

Dan

shan 08-02-2004 05:27 AM

i think buy now takes you to a detailed view if the product has options

DanUK 08-02-2004 05:49 AM

Thanks Shan, this product that I'm testing has no options so I'm not sure. In fact, it is a clone of an existing priced item and I get different behaviour depending on which of the products I choose i.e. the zero priced clone takes me to a detailed view whereas the priced original item goes straight into the cart.

Thanks

Dan

shan 08-02-2004 06:30 AM

Take a look at buy_now.tpl

find this

Code:

{* $Id: buy_now.tpl,v 1.8 2003/11/14 14:41:51 svowl Exp $ *}
{if $js_enabled}
<table border=0 width=100% cellpadding=0 cellspacing=0>
{if ($active_modules.Product_Options ne "" and $product.product_options) or $product.price eq 0}


notice the

or $product.price eq 0

at the end

DanUK 08-02-2004 06:42 AM

Thanks Shan! Works like a charm, simply deleted "or $product.price eq 0". Now it adds straight to cart.

Thanks again,

Dan


All times are GMT -8. The time now is 12:16 PM.

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