VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kevinburk on March 25, 2012, 08:41:37 AM

Title: Buy Now Feature/Hack?
Post by: kevinburk on March 25, 2012, 08:41:37 AM
Is there any way to create a buy now function? Ideally, I'd like to be able to create a custom url that when clicked automatically adds a product to the cart and goes directly to the checkout page. I found what was supposed to be a hack for this in the older forums, but it only seems to apply to VM 1.x because I can't find any of the files I'm supposed to modify in the 2.x version.

I can't be alone in needing this — it would allow me (and others) to embed product purchase links in eMails, newsletters, or even off-site sales pages.

A one click, direct to checkout feature would be a huge benefit. I've found it in another product, but that product lacks the ability to customize shipping (via product-specific options that affect price), which I rely on in VirtueMart.
Title: Re: Buy Now Feature/Hack?
Post by: SpaceRabbit on March 25, 2012, 10:48:08 AM
If I understand you correctly you want the button 'Buy now' near 'Details' button on items in categories.., if it is
You must add code of 'Add to cart' button in that file: components/com_virtuemart/views/category/tmpl/default.php
Title: Re: Buy Now Feature/Hack?
Post by: kevinburk on March 25, 2012, 17:13:38 PM
No. You misunderstand what I need. This isn't a template issue or a display issue, and I don't need a new button. I need new functionality.

I need to be able to get code for a URL that, when clicked from outside of the website 1) adds the product to the cart and 2) immediately opens the checkout page.

I can do this with HikaShop quite easily; however, HikaShop has bigger issues that make it a less than ideal choice for me.
Title: Re: Buy Now Feature/Hack?
Post by: robert on November 13, 2012, 23:53:00 PM
Did you ever figure this out? I would also like to add similar functionality.

Any insight would be appreciated.