Magento Adobe Commerce Magento 2 Direct add to cart from external link 2 ANOWAVE 0 9 7 7 1 1 Magento 2 ™ €79 90

Magento 2 Direct add to cart from external link

  • In Stock
  • Price:
  • €79 90
  • SKU:
  • Free installation
  • Customer choice
  • Add to Cart

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.

Multiple products can be added using single link. All types of products supported including simple, configurable, bundle, virtual and such with custom options.

Check also version for Magento 1

Built for Magento 2

This extension for Magento 2 allows site owners to generate special links that if clicked/followed will add desired products to cart automatically.

It works with all types of products including simple, configurable, bundle, virtual and with custom options as well.

It comes with super flexible interface packed with multiple Mass action tools which ease the link generation. Supports mutiple products added at once, supports automatic coupon code/discounts and much more.


Multiple options supported

There are multiple configuration options to chose from, you can pick module behaviour, define cart/checkout automatic redirects, pick designed product identifier e.g. SKU or Internal Product ID, including custom attribute.




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


Key features

  • Automatically adds product to cart
  • Supports simple products
  • Supports configurable products
  • Adds a quick mass action for generating direct links BRAND NEW
  • Automatically redirects visitor to cart page
  • Adds confirmation for automatic product addition
  • Ability to add  multiple products to cart via single URL BRAND NEW
  • Automatically add product to cart and apply discount BRAND NEW
  • Ability to empty cart before adding products automatically
  • Ability to remove previous non-direct products from cart
  • Ability to empty cart if URL parameter is present
  • Adds notification to customer if coupon has been applied
  • Automatically redirects to product page in case of required cystom options
  • Can be turned on or off on demand
  • Does not rewrite existing blocks, modules etc.
  • Compatible with custom Magento themes
  • No monthly fees


Link generator

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


Actions 92 records found Filters Default view Columns ID Thumbnail Name Type Attribute set 271 Test product 14 Sample product Simple Product Default 351 Test product 4 Sample product Simple Product Default 443 Test product 18 Sample product Simple Product Default 140 Test product 5 Sample product Simple Product Default 167 Test product 9 Sample product Simple Product Default Delete Change status Update attributes Get link Get link + coupon Get combined link Get combined link + coupon No discount 10% OFF You can generate direct link via Mass action Add to cart and apply discount simultaneously
Magento platform version
2.0.*,2.1.*,2.* EE,2.2.*,2.3.*,2.4.*
Conversion rate
Latest version
## [100.2.0]

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.

Customer review(s)

Purchased Magento 2 Direct add to cart from external link

Works as expected, support is perfect. The built-in mass action is super handy. Keep up the good work guys!

Yes, I recommend this product

Note: By submitting a review you agree to our Terms and Conditions.

User Guide & Documentation

Installation from Command Line (Recommended)

This extension can be installed in a few minutes, by going through the following steps:

  • Download/purchase the extension
  • Unzip the file in a temporary directory
  • Copy directory contents and paste it in your Magento installation root directory. This extension will not replace existing code or file structure
  • Enter the following at the command line:

    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy (only if site is in production mode)


Creating links

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>


Automatic discount

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>


Automatic cart empty

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.


Automatic cart empty by URL parameter

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


Now: Next:

If you like this product, share it with your friends

Extensions for Magento

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.