Extension for Magento by Anowave
Allows store owner to create external links that add product directly in cart and redirect customer to checkout immediately. You can create direct links to products from your catalog by SKU, variant SKU and/or a combination of them. It supports automatic discounts links based on cart rule coupon code.
Check also version for Magento 1
Magento 2 Direct add to cart from external link is an extension that allows site owner to generate links that will automatically add the desired product to customer cart. It supports both simple and configurable products
The extension comes with a handy mass action that allows for quick link generation. That also comes combined with a built-in "Copy to clipboard" feature which adds extra comfort when generating and copying direct add to cart links.
The generator supports both product based direct links and a combination of product and coupon code for automatic discount.
Fig. 1 - Mass action link generator
All our products come with a 6 full months (180 days) of premium support. To report a bug, use our Premium Help Desk available in your account at Anowave.
This extension can be installed in a few minutes, by going through the following steps:
You can generate direct link by using the following structure:
With quantity:
http(s)://<your domain>/direct/index/add?product=<sku>&qty=<qty>
Without quantity (it defaults to 1):
http(s)://<your domain>/direct/index/add?product=<sku>
Configurable product
http(s)://<your domain>/direct/index/add?product=<configurable sku>&qty=<qty>&variant=<variant sku>
Direct configurable variant
http(s)://<your domain>/direct/index/add?product=<variant sku>&qty=<qty>
You can also generate links that will not only add the product to cart but automatically apply a discount for the customer as well.
You can generate direct link by using the following structure:
http(s)://<your domain>/direct/index/add?product=<variant sku>&qty=<qty>&coupon=<coupon code>
It is possible to set cart empty feature. This allows you to have customer's cart emptied prior to adding product to cart. This can be done by global configuration or URL parameter based.
1. Global configuration
Go to Stores -> Configuration -> Anowave Extensions -> Direct Cart Link -> Preferences panel and set Clear cart rule. You can pick one of 4 choices:
a) Do not empty cart - If set, cart will not be emptied automatically
b) Always empty cart before adding - If set, cart will always be emptied
c) Remove only non-direct products - If set, the module will remove all products from cart that were not added automatically. This is conventient if you want to remove previous products but add more than one direct products
d) Empty cart only if URL parameter is present - If set, the module will empty cart only if you add a specific URL parameter as described below.
To empty cart via URL parameter you should pass 'empty' parameter to URL
http(s)://<your domain>/direct/index/add?product=<variant sku>&qty=<qty>&empty=true
If you like this product, share it with your friends
Anowave is an extension developer for Magento 1.x and Magento 2.x platforms. We provide a wide range of premium extensions for our in-house and public clients. The extensions that we offer extend the capabilities of Magento and provide a bespoke functionality. They also fill some missing gaps in the functionality provided by the base platform and help customers in chosing Magento as prefered ecommerce platform.
The extensions that we offer are part of our full range Magento service which includes also a Premium Helpdesk where customers get to speak with actual software engineers and get their issues resolved without hussle. Premium labeled modules also include free installation, confiuration, testing etc.