Add to cart via QueryString

Jul 30, 2009 at 11:59 PM

Is it possible to add a product to the cart via querystring link on an image?

I want to add an image to the frontpage (which is not part of the shop) that offers a special priced product - simple one click to add to cart...

I don't want to send them to the shop, just add the product.

Thanks in advance.


Jul 31, 2009 at 1:30 PM

Hi Pete,

Basically No!..this is because the add to cart needs to check if models and options (which it currently does by looking at the web control on postback).  Although I can see that this would be a nice feature, and could be done by passing in the needed option via a URL.

Only way around this could be to place a product list module on the front page with a bespoke template and a special css on the buy button to display your image.  A bit of a nasty work around and I'm unsure if it would work correctly, but you could give it a try....