Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5553

Shopware 6 Tier Pricing Akeneo Extension

$
0
0

Introduction

The Shopware 6 Tier Pricing Akeneo Extension allows the admin can manage tier pricing information in Akeneo for the 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 website, customer group, quantity, and price in Akeneo and export it to Shopware 6.

With the help of this module, the admin can create their own price rule and create various types of Tier pricing and initiate different offers. system requirements.

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

  • Export the Tier Pricing to Shopware 6 store.
  • Synchronize all Shopware 6 standard tier pricing fields.
  • The admin can create their own price rule.
  • 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 Magento2 credentials setup, you can follow our Akeneo Magento2 user guide. Click here Akeneo Shopware 6 User Guide.

Module Installation for Version 4.0.x to 5.0.x

1- Composer Installation

Read this blog to know how to install Webkul Akeneo Connector via Composer?

2- Manual Installation

Please follow these steps for installing the Shopware6 Akeneo PIM Connector 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-1

Step 2 – Goto config/Bundles.php then add the line: in the return array.

Webkul\ShopWare6Bundle\ShopWare6Bundle::class => ['all' => true],
shopware-6

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

php bin/console cache:clear--env=prod && php bin/console shopware6: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

To run the Quick export in Akeneo 5.0.x, you need to run the below command.

Install composer dependency

php -d memory_limit=4G /usr/local/bin/composer --prefer-dist --no-scripts require navneetbhardwaj/akeneo-quickexport-configurator;

After that, register bundle in config/bundles.php

return [
    \WebkulQuickExportConfiguratorBundle\QuickExportConfiguratorBundle::class => ['all' => true],
];

Define routing to create a file in the config/routes/wk_quick_export.yml

wk_quick_expoort:
    resource: "@QuickExportConfiguratorBundle/Resources/config/routing.yml"
    prefix: /

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:
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.

Basic Set up – Akeneo – Admin End 

Simply go to Settings click Create Attributes. 

Attributes

 

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

Attributes-1

Create Attribute for Tier Pricing

Now we will create an attribute for tier pricing. 

Properties

Give input for all the fields such as Code, Select Type, and choose the Attribute group. 

Attributes-_-Create

Label Translations 

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

Attributes-_-Create-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-2

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

Setup Credential in Akeneo

Once you successfully install the Akeneo Shopware 6 connector and Shopware 6 Tier Pricing Akeneo Extension in Akeneo, then you need to set up credentials in Akeneo.

ShopWare6-Connector-2

Go to the Shopware 6 Connector > Setup Credentials.

In Hostname, you need to enter your website URL after that enter the Magento API Integration Tokens as created.

  • URL
  • Access Key ID
  • Secret access key 
  • Shopware Version
ShopWare6-Connector-1-1

For more details about the setup credentials in Akeneo, you can refer Akeneo Shopware 6 connector user guide. 

Setup Attribute Mapping

Now go to the Shopware 6 Connector  > Setup Attribute Mapping after completing the mapping for all the fields. 

In the Other mapping, section select the Rule.

 

ShopWare6-Connector-2-1

Import Settings

Here, simply set the family for import Products. 

ShopWare6-Connector-3

Click Change Family. 

Now go to Imports and click Create Import Profile. 

Import-profiles-management

After this, in the import section, you can find the import profile. 

Settings

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

Families

Click Create Family. 

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

Family-Accessories-_-Edit

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-5

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-_-Editgk

Now after you save the product. 

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

Moreover, the prices are available to be viewed in multi-currency as shown below. 

 

Product-Sunglasses-_-Edithkkj

Add Tier Pricing for Variant Product

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

Product-model-Braided-hat-_-Edit

Exported Tier Pricing at Shopware

Now go to the 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 the 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 support@webkul.com

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


Viewing all articles
Browse latest Browse all 5553

Trending Articles