Back to Top

Shopware 6 Tier Pricing Akeneo Extension

Updated 3 October 2024

Introduction

Shopware 6 Tier Pricing Akeneo Extension allows the admin can manage tier pricing information in Akeneo for simple and variant products.

Further, now the admin can export the advanced tier pricing information from Akeneo to Shopware 6 store.

In addition, this module sync all Shopware 6 standard tier pricing fields such as quantity, and price in Akeneo and export them to Shopware 6.

With the help of this module, the admin can create their own price rule from Shopware 6 end and create various types of Tier pricing and initiate different offers.

Check a brief overview of the plugin –

Searching for an experienced
Akeneo Company ?
Find out More
vjQGDN-3v9o

Please note –

This module is an add-on to the Shopware 6 Akeneo Connector, so for using this module you need to install the Shopware 6 connector first.

Basic Requirements

  • This module works with Akeneo 4.0.x, 5.0.x, 6.0.x and 7.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.
  • For the Akeneo installation, your Akeneo server should meet these system requirements.

Features

  • Export the Tiered Pricing to Shopware 6 store.
  • Synchronize all Shopware 6 standard tier pricing fields.
  • The admin can create the price rule in Shopware 6 backend and these rules can be then imported to apply in Akeneo.
  • The admin can initiate different offers.
  • Moreover, the admin can manage the tiered pricing for simple and variant products both from Akeneo. 

Shopware 6 Credentials

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

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.x and 7.x

{
  "scripts": {
        "post-update-cmd": [
           "vendor/webkul/tierpricingbundle/src/Webkul/TierPricingBundle/install/config.sh COMPOSER=true NO_DOCKER=true"
        ],
        "post-install-cmd": [
           "vendor/webkul/tierpricingbundle/src/Webkul/TierPricingBundle/install/config.sh COMPOSER=true NO_DOCKER=true"
        ],
        "post-create-project-cmd": [
          "vendor/webkul/tierpricingbundle/src/Webkul/TierPricingBundle/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/tierpricingbundle/composer_install.sh"
        ],
        "post-install-cmd": [
           
"vendor/webkul/tierpricingbundle/composer_install.sh"
        ],
        "post-create-project-cmd": [
         
"vendor/webkul/tierpricingbundle/composer_install.sh"
       ]
   },
  "repositories": [{
    "type": "composer",
    "url": "https://akeneorepo.webkul.com/"
  }]
}

3: Use composer to install the extension.

         composer require webkul/tierpricingbundle

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

Installing Module for Version 6.0.x and 7.0.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/TierPricingBundle/install/config.sh COMPOSER=false NO_DOCKER=true
  •  Run the command below over the PIM directory’s DOCKER instance.
./src/Webkul/TierPricingBundle/install/config.sh COMPOSER=false NO_DOCKER=false

Module Installation for Version 4.0.x to 5.0.x

With the help of this Addon, You can configure the tiered pricing in the simple product/variant products at the Akeneo side and export the Tierpricing to your Shopware6 store.

Please follow these steps for installing the Shopware6 Akeneo Tier Pricing Bundle Addon module. Also please note that this plugin requires Shopware6 Akeneo Connector. 

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

src-1

2 – Goto config/Bundles.php then add the line:

Webkul\TierPricingBundle\TierPricingBundle::class => ['all' => true],

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

config

Step 4 – Run this command after ssh to your Akeneo server by the terminal

rm -rf ./var/cache/** && php bin/console cache:clear && php bin/console pim:installer:assets --symlink --clean && php bin/console d:s:u --force && yarn run webpack && yarnpkg run less && yarnpkg run update-extensions


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;

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:
  • It means that the 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 and 7

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

Create Attribute for Tier Pricing

To create attribute simply go to Settings and click Create Attributes. 

Attributes-13

Now tap the icon with Tier pricing as shown in the below image.

Attributes-2

Once you will click on the tier pricing attribute you need to add the code and label for the attribute you are creating.

Attributes-15

Properties

In the properties, section Tier pricing will be the input for all the fields such as Code and Type by default.

Further, the user can choose any of the Attribute group options available in the drop-down menu.

Attribute-Shopware-Tier-Pricing-Edit

Label Translations 

Here, you may add the label translation for the attribute in the desired language. 

Attribute-Shopware-Tier-Pricing-Edit-1-1

Lastly, click the Save button. 

Next, this is how your saved attribute will appear for this go to Attributes again and search for the Tier pricing attribute. 

Attributes-16

Now you may also edit or delete this attribute as per requirements. 

Setup Attribute Mapping

For the attribute, mapping please navigate to the Shopware 6 Connector  > Setup Attribute Mapping. 

Shopware-6-Akeneo-Connector-dfssdf-12

Here, along with all the mandatory fields you also need to do the mapping for the fields List Price(net) and List Price(gross).

Without mapping, all these fields the Tier Pricing value won’t be fetched. 

Shopware-6-Akeneo-Connector-dfssdf-13

In the Other mapping, For the use of tier pricing, you must have to select the Rule. 

Shopware-6-Akeneo-Connector-dfssdf-15

Please Note – The user has to create a simple select type attribute name as Rule or pricing rule and needs to map it.

Perform Rules Import

Now to access the tiered pricing functionality you need to import the Rules first for this navigate to the Import section. 

Find and click the Shopware6 option import as shown in the below image. 

Import-profiles-management

Click the Import button to import the data from Shopware 6 to Akeneo. 

Import-profile-ShopWare6-Attribute-And-Attribute-Option-Import-Show

Now, wait for the complete import to be done as shown in the below image. 

Process-tracker-Show-job-3

Settings

Before creating a product in Akeneo we need to create a family in Akeneo. For this go to Settings > Families. 

Settings-3

Click Create Family. 

Families-1

Now in the attributes section, you may find the Tier Pricing attribute as you may find in the below snapshot. 

Please note – If the user does not find the tier price attribute in the related product family then the user needs to add it.

Family-Accessories-Edit-2

At last click the Save Button.

Tier Pricing for Simple/Variant Product in Akeneo

Add Tier Pricing for Simple Product

Now go to the Products open any Simple product to Edit. You may also add tier pricing while adding a new product. 

Product-Sunglasses-Edit

Firstly, you need to click on the Add Tier Button.

Further, you can select a Rule for Tier pricing from Shopware, set the quantity, and then click on the Add Row button

Product-Sunglasses-Edit-1

Now after you save the product. 

The Net prices, Gross prices are then calculated based on the rule for the Tier Pricing set.

Product-Sunglasses-Edit-2

Moreover, the prices can be viewed in multi-currency as shown below. 

Product-Sunglasses-Edit-4

Add Tier Pricing for Variant Product

 Similarly, you can add tiered pricing for a variant product as well. 

Product-Braided-hat-Tier-pricing-data-Edit

Exported Tier Pricing at Shopware

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 Shopware 6Akeneo Connector User Guide.

Export-profiles-management-5

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 Shopware 6.

Process-tracker-Show-job-2

Tier Pricing in Shopware

Now go to Catalogues > Products. 

Braided-hat-_-Products-_-Shopware-Administration-2

Go to Advanced Pricing here, you may find that the Tier pricing has been exported from the Akeneo for simple and variant products both. 

Braided-hat-_-Products-_-Shopware-Administration-1-1

Rule Builder  – 

Please note that the rule for tier pricing is created in the Shopware itself and it is mapped and imported in the Akeneo. 

Further, you can go to Settings > Rule Builder and create or edit an existing rule. 

Settings-_-Shopware-Administration-1

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]

Further, please explore our Akeneo Development Services and Quality Akeneo Extensions.

Current Product Version - Akeneo 2 to 5 || 1.0.0 and Akeneo 6 || 2.0.0 and Akeneo 7 || 3.0.0

Supported Framework Version - 4.x.x, 5.x.x, 6.x.x and 7.x.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