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

"Enter your price" fix on zero priced items

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2004, 04:36 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default "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
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 08-02-2004, 05:27 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

i think buy now takes you to a detailed view if the product has options
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-02-2004, 05:49 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

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
__________________
4.4.2

and

4.6.1
Reply With Quote
  #4  
Old 08-02-2004, 06:30 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 08-02-2004, 06:42 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

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

Thanks again,

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:00 PM.

   

 
X-Cart forums © 2001-2020