Magento 2 Direct add to cart from external link

Extension for Magento by Anowave

  • In Stock
  • Price:
  • €79 90
  • SKU:
  • MAGE2-DIRECT
  • Free installation
  • Customer choice
  • MADE IN



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

Overview

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
  • Supported product types: SIMPLE, CONFIGURABLE, DOWNLOADABLE, VIRTUAL
  • 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
  • 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

 

Magento platform version
2.0.*,2.1.*,2.* EE,2.2.*,2.3.*,2.4.*
Application/Purpose
Conversion rate
Type
Commercial
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

Installation

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.