| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
adding a buy button | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
adding a buy button
I've searched the forum but can't find the answer...
I'm trying to add a 'buy now' button, but I can't work out how to call it. I can do the basic include Code:
but it doesn't actually do the add to cart bit. I think I need a href value, but how do I do this? thanks,
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#2
|
|||||||
|
|||||||
Hey Amy, there is already a buy now button in the products.tpl and product_t.tpl templates...you just need to un-comment it.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
this isn't for thise templates. It's for a new menu I've created for basic products that will stay the same on each page, but will contain half a dozen or so products that people will hopefully add to their cart, kind of like clip striops in retail I suppose.
Anyway, I've set up an extra table in the database, and I've pulled the thumbnail etc and links to each product, but I wanted to add a buy button too but O'm stuck on the href bit. I'm not sure if I need to query the database to get this or how to go about it.
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#4
|
|||||||||
|
|||||||||
The easiest way would be to add a link to the button for example:
Just change the productid to whatever the product is. The good thing is there is no JavaScript involved. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|