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)
-   -   'One-Click' 'Buy-Now' links from website to xcart (https://forum.x-cart.com/showthread.php?t=1924)

suisse 03-19-2003 06:18 AM

'One-Click' 'Buy-Now' links from website to xcart
 
Hi all,

I was wondering if anyone has found a way to implement a 'One-Click' or 'Buy-Now' functionality for X-cart? What we'd like to do is have links from our corporate website that when clicked will bring the user to the cart with an item already placed in it. You know, kind of like Amazon's one-click shopping feature. Any code snippets out there?

J

funkydunk 03-19-2003 07:11 AM

yeah, put in a link like:


where the 12345 is the product id of the item you want to link to.

suisse 03-19-2003 08:57 AM

dunka funkydunk! (i.e. thank you)

That works nicely!

J

suisse 04-28-2003 08:53 AM

one-click shopping -- Part II...
 
Hi all,

OK -- now how do you call the cart to not only ADD a product, BUT to also specifiy any selected option(s)??? This is a little more elusive from what I can see...

J

funkydunk 04-28-2003 10:33 AM

good luck :D

lot of work I reckon.

best way to do it is look at the product detail page for the product concerned and see if you can add all the elements of the choice you want to specify as get variables...ie as part of the query string and make that the link.

eg:

But this product now


All times are GMT -8. The time now is 09:26 AM.

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