Back to Top

Magento 2 Akeneo Tier Pricing

Updated 14 September 2022

Introduction

With the help of this Akeneo Connector Add-On, you can manage tier pricing information in Akeneo for simple and variant products. Now you can export the advanced tier pricing information from Akeneo PIM to Magento 2 store.

Please Note:

Watch the below video tutorial to understand the extension workflow:

Basic Requirements

  • This module works with Akeneo 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x, 3.2.x, 4.0.x ,5.0.x and 6.0.x. Download Akeneo from here
  • Node and Yarn packages need to be installed.
  • This module is compatible with the Akeneo community and Enterprise(Flexibility) edition.
  • If you want to use this extension on Akeneo EE Serenity mode, please contact us.
  • For the Akeneo installation, your Akeneo server should meet these system requirements.

Features

  • UI provided to manage the Tierpricing at Akeneo simple/variant products.
  • Export the tier Pricing to the Magento 2 store.
  • The admin can enter the quantity for a product on which tier pricing will be applicable.
  • The admin can select the website and the Tierpricing will be applied only for the products of that website.
  • All the active websites on the configured Magento2 store will be dynamically fetched.
  • This module is compatible with the latest Akeneo version 6.0.x
  • The admin can select the customer group for which the Tierpricing will be applicable.
  • supports countless rows of tier pricing options.
  • The admin can select a Fixed/Discount price type for applying the tier price.
  • Create product Tier pricing In Akeneo then export to Magento using Quick Export Job or any export job.
  • The admin can filter the products to export tier pricing at Magento 2 store.

Magento2 Credentials

For the Magento2 credentials setup, you can follow our Akeneo Magento2 user guide. Click here. Akeneo Magento2 User Guide

Searching for an experienced
Akeneo Company ?
Find out More

Installation

Two different types of module installation processes are available for the module.

  1. Composer Installation
  2. Manual Installation

Installation using Composer Installation

Read This Blog

Before beginning the composer installation

1: Get the ACCESS KEYS [Create a support ticket]
2: In Akeneo composer.json, add our repository as well as the installation script.

For Akeneo 6:

{
  "scripts": {
        "post-update-cmd": [
           "vendor/webkul/magento2tierpricing/src/Webkul/Magento2TierPricingBundle/install/config.sh COMPOSER=true NO_DOCKER=true"
        ],
        "post-install-cmd": [
           "vendor/webkul/magento2tierpricing/src/Webkul/Magento2TierPricingBundle/install/config.sh COMPOSER=true NO_DOCKER=true"
        ],
        "post-create-project-cmd": [
          "vendor/webkul/magento2tierpricing/src/Webkul/Magento2TierPricingBundle/install/config.sh COMPOSER=true NO_DOCKER=true"
       ]
   },
  "repositories": [{
    "type": "composer",
    "url": "https://akeneorepo.webkul.com/"
  }]
}

For Akeneo <=5.x 

{
  "scripts": {
        "post-update-cmd": [
           
"vendor/webkul/magento2tierpricing/composer_install.sh"
        ],
        "post-install-cmd": [
           
"vendor/webkul/magento2tierpricing/composer_install.sh"
        ],
        "post-create-project-cmd": [
         
"vendor/webkul/magento2tierpricing/composer_install.sh"
       ]
   },
  "repositories": [{
    "type": "composer",
    "url": "https://akeneorepo.webkul.com/"
  }]
}

3: Use composer to install the extension.

         composer require webkul/magento2tierpricing

4: Complete the authentication form.
5: Send a Message of Success
6: Delete your browser’s cache.

Manual Installation for Version 6.x

  •  After unzipping the appropriate extension zip, merge the “src” folder into the akeneo project.
  • From the PIM directory, run the following command over the NO-DOCKER Instance.
./src/Webkul/Magento2TierPricingBundle/install/config.sh COMPOSER=false NO_DOCKER=true
  •  Run the command below over the PIM directory’s DOCKER instance.
./src/Webkul/Magento2TierPricingBundle/install/config.sh COMPOSER=false NO_DOCKER=false

Manual Installation for Version 4.0.x to 5.0.x

Magento Akeneo Connector Installation:

Please follow these steps for installing Magento 2 Akeneo Connector Add-on module in your Akeneo PIM platform.

Step 1 – Unzip the respective extension zip then merge the “src” folder into the akeneo project root directory.

src-trier-pricing

Step 2 – After that goto config/Bundles.php then add a line:

Webkul\Magento2TierPricingBundle\Magento2TierPricingBundle::class => ['all' => true]
app-kernal-tier-pricing

in the return array.

Step 3 – Copy the “config” folder into the akeneo project root directory for routing.

conf-tier-pricing

Step 4. After that, run this command after SSH to your Akeneo server by terminal then navigating to the Akeneo installation directory (ex. cd /opt/bitnami/apps/akeneo/htdocs)

rm -rf var/cache/ && php bin/console magentotierprice:setup:install

Step 5. If you are using php-fpm. Then you need to restart the php-fpm services and apache web server.

For Akeneo 5

sudo service php-fpm7.4 restart

For Akeneo 4

sudo service php-fpm7.3 restart

Docker Installation Command:

For Akeneo 5

alias docker_php='docker-compose run -u www-data --rm php php';
alias docker_yarn='docker-compose run -u node --rm node yarn';
docker_php bin/console cache:clear --env=prod;
docker_php bin/console pim:installer:assets --symlink --clean --env=prod;
docker_php bin/console d:s:u --force;
docker_yarn run webpack;
docker_yarn run update-extensions;
docker_yarn run less;

For Akeneo 4

alias docker_php='docker-compose run -u www-data --rm php php';
alias docker_yarn='docker-compose run -u node --rm node yarn';
docker_php bin/console cache:clear --env=prod;
docker_php bin/console pim:installer:assets --symlink --clean --env=prod;
docker_php bin/console d:s:u --force;
docker_yarn run webpack;
docker_yarn run less;

Manual Installation For Version 2. x to 3. x

Magento Akeneo Connector Installation:

Please follow these steps for installing Magento 2 Akeneo Connector Add-on module in your Akeneo PIM platform.

After that, unzip the respective extension zip then merge the “src” folder into the Akeneo project root directory.

Step 1. Goto app/AppKernel.php then add below the line -:

new Webkul\Magento2TierPricingBundle\Magento2TierPricingBundle(),

in function registerProjectBundles()

Installation1

Step 2. Goto app/config/config.yml then add these lines at top of the file

Version Akeneo 2.x

{ resource: "@Magento2TierPricingBundle/Resources/config/config.yml" }

Version Akeneo 3.x

{ resource: "@Magento2TierPricingBundle/Resources/config/3.x/config.yml" }
Installation2

Step 3. Goto app/config/routing.yml then add these lines at top of the file

magento2_tier_pricing:
        resource: "@Magento2TierPricingBundle/Resources/config/routing.yml"
        prefix:   /
Installation3

Step 4. After that, run this command after SSH to your Akeneo server by terminal then navigating to Akeneo installation directory (ex. cd /opt/bitnami/apps/akeneo/htdocs)

rm -rf var/cache/ && php bin/console magentotierprice:setup:install

Step 5. If you are using php-fpm. Then you need to restart the php-fpm services and apache web server.

sudo service php-fpm7.2 restart

Common Issues After Installation

It might happen that even after proper installation, upon opening your Akeneo admin dashboard, you see a loading screen. In that case, do check for the following solution:

  • Webpack Installation: If you get the below error:
Webpack error
  • It means that web pack is not installed in your system. Run the following command
npm install --save-prod webpack 
npm install
  • Module routing.yml is not configured properly. Re-check the routing.yml file as mentioned in the 3rd step of Module Installation
  • Clear your browser cache.

Uninstall Module: For Akeneo 6

  • From the PIM directory, run the command below over the NO-DOCKER Instance.
./src/Webkul/Magento2TierPricingBundle/uninstall/uninstall.sh COMPOSER=false NO_DOCKER=true
  • Then run the command below over the PIM directory’s DOCKER instance.
./src/Webkul/Magento2TierPricingBundle/uninstall/uninstall.sh COMPOSER=false NO_DOCKER=false

Setup Credential in Akeneo

Once successfully installing the Akeneo Magento2 connector and Akeneo TierPricing for the Magento2 module in Akeneo, then you need to set up the Magento API credentials in Akeneo.

tierpricing1.2

Please log into Akeneo after that follow Magento 2 Connector>Setup Credentials. In Hostname, you need to enter your website URL after that enter the Magento API Integration Tokens as created.

  • Hostname
  • Access Token
tierpricing2

For more details about the setup credentials in Akeneo, After that, you can refer Akeneo Magento2 connector user guide. Click here to know more. Akeneo Magento2 Connector

Video Tutorial

Tier Pricing in Akeneo

Tier Pricing can be applied for simple and variant products from Akeneo to Magento2.

Note: Akeneo Magento2 TierPricing Add-on supports the Magento tier pricing standard fields likewise below:

  • Active Website
  • Customer group
  • Quantity
  • Price type

After that, you can export then manage discounts(tier pricing) such as for specific store view or customer groups from Akeneo to Magento2.

Tier Pricing for Simple/Variant Product in Akeneo

In order to create TierPricing navigate through Dashboard –> Products.

tierpricing3

For Simple Product:

Select a specific simple product you want to add tier price, you will see the Advanced/ Tier Pricing (Magento2) tab below categories.

tierpricing4

For Variant Product:

After that you can also add a tier price for variant products from Akeneo. Same as simple product, select a variant product you want to add tier price then navigate to Advanced/ Tier Pricing (Magento2) tab.

tierpricing5

Here, we’re demonstrating tier pricing with the simple product from Akeneo.

After tapping on the Advanced/ Tier Pricing (Magento2) tab will bring you to the Advanced/ Tier Pricing page.

In order to add tier price click on the Add button similarly as highlighted below:

tierpricing6

After that when you will click on the Add button it shows below respective fields to add tier price. Here, you can see each standard field followed in Magento2.

tierpricng7
  • Website: Select the Website(all pre-configured store will show in the dropdown) you want the tier price to be available for.
  • Customer group: Choose the dynamic Customer Groups (you also can choose ALL GROUPS) that will receive the discounted price.
  • Quantity: In the Quantity field, enter the number of products the discount to be applied.
  • Price type: Select price type Fixed or Discount.
  • Price: In the Price field, enter the discounted price for the product with active currency selection.

As similar as you can set many Tier Price conditions by clicking on the add button again as you need for each product from Akeneo itself.

Once you will be done with the required information, hit on the Save button from the top right corner. Finally, Tierpricing has been applied from Akeneo.

Moreover, in order to delete the current rule in Akeneo, click on the delete icon similar to the below-attached screenshot.

tierpricing8

Export the TierPricing

Now to export your product data you need to create a job profile then execute it. Firstly, go to Exports>Create Export Profile then enter a unique code, the label then select a job profile.

To know more about the Export profile, you have to follow our Magento2 Akeneo User Guide.

For the TierPricing export process, you can create a simple export process.

tierpricing9

To know more about the creating export profile follow our Akeneo Magento2 User Guide.

Execution Process

After that wait for the execution process to complete then check the errors. Then after the completion of the export job, the Tier pricing will appear in Magento2.

tierpricing11

Tier Pricing in Magento2

As you can see that the following Tierpricing has been exported from Akeneo. The admin can view product Tier price then make any changes in the Tier pricing edit from Magento.

image-109

After that click on advanced pricing after that, you can see tier pricing has been exported from Akeneo to Magento2.

Tier Pricing export on Magento2

Support

Moreover, for any issues related to this module, please create a support ticket at- https://webkul.uvdesk.com/en/customer/create-ticket Also, for any pre-sales queries or customization discussion, please drop an email to [email protected]

Please explore our Akeneo Development Services and Quality Akeneo Extensions.

Current Product Version - 3.0.0

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

Blog Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x
  • Version Magento 2.0.x, 2.1.x, 2.2.x,2.3.x Akeneo PIM 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x, 3.2.x, 4.0.x and 5.0.x
  • Version Magento 2.0.x, 2.1.x, 2.2.x,2.3.x Akeneo PIM 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x, 3.2.x and 4.0.x
  • Version Magento 2.0.x, 2.1.x, 2.2.x,2.3.x Akeneo PIM 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x and 3.2.x
. . .

Leave a Comment

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


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content