I'm using magento 1.9.1 and on a custom listing page I'm trying to add an add to basket form. This is supposed to add to the basket using a query string.
<?php $formKey = Mage::getSingleton('core/session')->getFormKey();?> <form action="/shop/checkout/cart/add?product=4149&qty=1&super_attribute=147?super_attribute=1636" method="post"> <input type="hidden" name="form_key" value="<?php echo $formKey; ?>" /> <input type="submit" value="Add to basket" /> </form>
I've tried a few variations on how the url is formatted and I will look at Un-hardcoding it once ,i have got a working format.
But for now it just keeps directing to the product page and asking me to select options.
I need to add it as a config product and set the options rather than add the simple directly.
All help welcome.