| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
"Enter your price" fix on zero priced items | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
"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 |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
#4
|
|||||||||
|
|||||||||
Take a look at buy_now.tpl
find this Code:
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 |
|||||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|