Magento Adobe Commerce Magento 2 Add Extra Product to cart 2 ANOWAVE 0 9 7 7 1 1 Magento 2 ™ €79 90

Magento 2 Add Extra Product to cart

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

This module can be used to automatically add an extra product to customer's cart. It is suitable for cases when store owner has to charge a refundable core product prior to purchase.

A pre-defined product will get added to cart whenever customer adds product to cart. It will not only add an extra product to cart but set it's price based on main product attribute.


This module can be used to add an extra product to cart whenever customers add product to cart. It automates the process of adding a core and/or refundable product in cart. It is suitable in cases when you want to have a refundable part added to order automatically. You can use the module as a flexible surcharge.


Key features

  • Automatically adds extra product to cart once main product is added
  • Each product can define what extra product gets added to cart (main to pair correlation is possible)
  • Extra product cannot be removed from cart separately. It gets removed once the main product is removed
  • Extra product quantity can be updated with the main product added to cart
  • Suitable for refundable core products
  • Does not rewrite existing blocks, modules etc.
  • Compatible with custom Magento themes
  • No monthly fees


Non-removable extra product

The extra product that gets added to cart automatically cannot be removed

It is linked to the main product and can be removed only if main product is removed.

Same applies to quantities as well, the extra product cannot be updated in terms of quantity, the quantity is linked to the quantity of the main product and can be set only if main product quantity is updated.

Magento platform version
2.0.*,2.1.*,2.* EE,2.2.*,2.3.*,2.4.*
Conversion rate
Latest version
## [100.2.2]

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)

No product reviews yet. Be the first to write a review.

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.
  • Disable the cache under System->Cache Management
  • Enter the following at the command line:

    php -f bin/magento module:enable --clear-static-content Anowave_Pair
    php -f bin/magento setup:upgrade
  • Check under Stores->Configuration->Advanced->Advanced that the module is present.


Upgrading database

If you need to upgrade the database, run the following command line:

php -f bin/magento setup:db-schema:upgrade



Extension configuration is done in 3 steps

1. Step 1 - Create EAV attribute

Go to Stores -> Attributes -> Product and create a new text attribute e.g. Pair SKU (pair_sku). Once attribute is created go to Stores -> Attributes -> Attribute set and assign the newly created attribute to your attribute sets

2. Step 2 - Create Core/Pair product

Create a new extra product (simple product) that will be the product automatically added to cart when your main product is added

3. Step 3 - Assign core to main product

Edit your main product and enter the SKU of the core product (see pt. 2 above) into the newly created attribute (see pt. 1) and save main product.


Once these are done, the core product should be automatically added to cart when main product is added.


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.