Hi,
Could you please help me adding product to cart via an external link. i wan to add a product link on ad-words website so customer can click on the link and directly go to magento basket page.
Thanks
Mazhar
Hi @Bestsleepever!
What version of Magento are you on?
Since Magento 1.8, it's no longer possible to add a product to the cart via an external link.
It may be possible to achieve this with some custom development, please see this answer on the Magento Stack Exchange:
Any further questions, let me know
Hi @Bestsleepever!
I think you can do via core php using iframe.
it is just an idea.
create a module and pass the $product object in the phtml file. after that create only "add to cart" like:
@vishalsanwar86 How can i add add-to-cart button on below code
<div class="thumb col-md-2 col-xs-6" data-target="#carousel" data-slide-to="15"> <a itemprop="name" href="https://abc.com/apple"> <img class="img-responsive" alt="apple" src="https://abc.com/media/catalog/product/cache/1/image/700x700//9/1/111111111111001441-1.jpg" /></a><br /> <p>Apple</p> </div>
I am using above code in my blog post, here how can i add addtocart button