Menu Close
    Searching for an experienced eCommerce & Marketplace Development Company ?

    Frequently Bought Together for Magento 2


    Frequently Bought Together for Magento 2 give the solution to show how the admin can add frequently bought the product on the product page viewed by customers. 

    The Frequently bought product most of the time are similar on go with each other. The admin can select the frequently bought product on the considered product edit page and new product page.

    Summation of the pricing in the cart includes the price of the main product price and the product add-on.


    • The admin can add the frequently bought product on the product edit page and new product page.
    • Customers can select the addon by clicking on the checkbox of the product given in the Frequently bought Product.
    • Total pricing will consist of the price of the product and the price of the addon.
    • The admin can add any number of Frequently bought Products on the Product page.


    Customers will get a zip folder and they have to extract the contents of this zip folder on their system.

    The extracted folder has an src folder, inside the src folder you have the app folder. 

    You need to transfer this app folder into the Magento2 root directory on the server as shown below.

    After the successful installation, you have to run these commands in the Magento2 root directory: 

    First command –

    php bin/magento setup:upgrade

    Second Command –

    php bin/magento setup:di:compile

    Third Command –

    php bin/magento setup:di:deploy

    Installation using composer:

    If the module is purchased from the official Magento Marketplace then please follow the below process.

     Add the extension’s name and version to your composer.json file:

    1. Navigate to your Magento project directory and update your composer.json file.                                                                                                                                           

     composer require <composer name>:<version>

     For this module we need to run:

    composer require webkul/frequently bought together:5.0.0 
    1. Enter your authentication keys. Your public key is your username; your private key is your password.
    2. Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.

    Verify the extension

    To verify that the extension installed properly, run the following command:

    php bin/magento module:status Webkul_FrequentlyBoughtTogether

    By default, the extension is probably disabled:

    Module is disabled

    The extension name is in the format <VendorName>_<ComponentName> ; this is a different format from the Composer name. Use this format to enable the extension. If you are unsure of the extension name, run:

    php bin/magento module:status

    and look for the extension under “List of disabled modules”.

    Enable the extension

    Some extensions won’t work properly unless you clear Magento-generated static view files first.


     option to clear static view files when you’re enabling an extension.

    1.Enable the extension and clear static view files:

    php bin/magento module:enable Webkul_FrequentlyBoughtTogether --clear-static-content

    2.Register the extension:

     php bin/magento setup:upgrade

    3.Recompile your Magento project: In Production mode, you may receive a message to “Please rerun Magento compile command”. Magento does not prompt you to run the compile command in Developer mode.

    php bin/magento setup:di:compile

    4.Verify that the extension is enabled:

    php bin/magento module:status Webkul_FrequentlyBoughtTogether

    You should see output verifying that the extension is no longer disabled:

    Module is enabled

    5. Clean the cache:

    php bin/magento cache:clean

    6. Configure the extension in Admin as needed.

    Now, after running the commands, you have to flush the cache from the Magento admin panel by navigating through System>Cache management as shown below.

    Installation Of Magento2 Multi Vendor Marketplace

    Multi-Lingual Configuration of Frequently Bought Together Magento 2

    For Multilingual support, please navigate to Store > Configuration > General > Locale Options. And select your desired language from the Locale option.

    Language Translation Magento 2

    Language Translation of Frequently Bought Together for Magento 2

    If you need to do the module translation, please navigate to the following path in your system app/code/Webkul/FrequentlyBoughtTogether/i18n.
    Open the file named en_US.CSV for editing as shown in the below screenshot.

    Language Translation Magento 2 QuickBooks Desktop Connector


    Once you have opened the file for editing. Replace the words after the comma(,) on the right with your translated words.

    After editing and translating the CSV file, you need to save the translated file name according to your region language and country code such as – de_DE.CSV. Then upload the translated file to the same folder from where you have obtained it. Now your module translation is complete.

    Language Translation Magento 2 QuickBooks Desktop Connector

    Admin Process

    Add frequently Bought Product

    In existing products, the admin can select frequently add product in the product edit page as well as on the new product page, The option can be seen by navigating in the given process below.

    The admin will go to Catalog>Product. After this, the product grid will appear. In the action column click on Edit then scroll down on the same page then select Frequently Bought Together.

    Admin add Frequently add product

    After clicking on Frequently Bought Together select the option of Add Frequently Bought Products, then a list of products will appear. The admin will select the checkboxes of products that will be added in frequently bought together. Once the admin selected all the products that will be added, then click on  Add Selected Products. Hence we can add the Frequently Bought Product in any product.

    Add Product Frequently Brought Together for Magento 2

    So, we can see that the selected product added by the admin will appear on the product page which can be seen in the below image. To save this product click on the Save button.

    Frequently Brought Together for Magento 2 Add product

    Customer Process

    When a customer clicks on any product on the storefront view, the product view page appears with all its details. Below of the same product page customer will see the section of Frequently Bought Together.

    Product Page Frequently Bought

    On this product page, when we will see the Frequently Bought Together options, we can see that these are very similar to the main product. These are those Frequently Bought Product options that are added by the admin while adding and editing the product. 

    In the given below image, on each Frequently Bought Together Product, there is the check box on the right top. Once the check box is selected, the price with addon(additional product) is added to the order summary which can be seen in the below image.

    Addon Frequently Brought Together Magento 2

    In this case, when the main products are added to the cart the total billing amount was consisting only of the main products. When customers select the product’s checkboxes of Frequently Bought Together, the addon price will be added in the summary.

    Selecting Frequently Bought Together Products

    After clicking on the checkbox of Frequently Bought together product when the customer selects the button of Add Selected Items to Cart then the addon(additional product) will be added as per the given below image.

    Added Frequently Bought Together

    Now go to the Cart, customers can see that when selected Addons are added, a total number of items will consist of the main product and add-ons.

    Addon Frequently Bought Together

    When Customer clicks on Proceed to Checkout. Then they can place their order after filling required details. Customer can see the shopping cart with the main product and frequently bought  product as the given image below

    Shopping cart Frequently Bought Product

    This is how via  Frequently Bought Together Magento 2 we can see that how similar kind of products which can be used together can be shown and sell out to increase the sale. How the admin sales are increased and more products are sold out.

    A customer might or might not add the addon so to increase, the chance of adding the addon one the admin can select a similar or ongoing product.

    That’s all in Frequently Bought Together Magento 2. Still, have any issue, feel free to add a ticket and let us know your views at

    Current Product Version - 5.0.0

    Supported Framework Version - 2.0.x , 2.1.x, 2.2.x, 2.3.x, 2.4.x

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Table of Content

    Hide Index