Introduction
With the help of this module, the merchants can generate the SKU automatically in Akeneo. This module will help the merchants to save lots of time and manual work to generate the SKU in Akeneo. If the store owners generate the SKU automatically in Akeneo then they can easily add the other product details and increase the efficiency of creating products. This module will work for product and product variants in Akeneo to generate the product SKU.
Please Note – Akeneo Auto SKU Generator module is compatible with Community Edition, Enterprise Edition, and Cloud (PaaS/Flexibility) Edition of Akeneo.
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 and 3.2.x. Download Akeneo from here
- Node and Yarn packages need to be installed.
- Also works with Akeneo Cloud Flexibility Mode which is a PAAS Edition of Akeneo
Features
- It will reduce the duplicity of the products.
- It will save time and reduces manual work.
- The user can predefine the prefix and suffix to generate the SKU.
- The modules will be helpful in generating thousand of SKU in less time that will increase productivity.
- The user can generate the SKU for simple and variant both types of products.
- The user can set the pattern for generating the SKU.
Module Installation
Please follow below steps for installing the Akeneo Auto SKU Generator module in your Akeneo PIM platform.
- Unzip the respective extension zip and then merge the “src” folder into Akeneo project root directory.
- Goto app/AppKernel.php and add the following line in function registerProjectBundles()
new Webkul\AutoSkuGeneratorBundle\AutoSkuGeneratorBundle(),
- Goto app/config/routing.yml and add these lines at top of the file
autoSkuGenerator: resource: "@AutoSkuGeneratorBundle/Resources/config/routing.yml" prefix: /auto-sku-generator
You have to navigate first to Akeneo installation directory (Ex: cd /opt/bitnami/apps/akeneo/htdocs). After SSH, you have to run the command to your Akeneo server by the terminal.
php bin/console cache:clear --env=prod --no-warmup && php bin/console pim:install:asset --env=prod && php bin/console assets:install web --symlink --relative --env=prod && yarn run webpack && php bin/console d:s:u --force
After that, you need to restart your web server like Apache, Nginx. Run the below command for Apache web server.
sudo service apache2 restart
If you are using php-fpm. Then you need to restart the php-fpm services.
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
It means that a 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.
Module Configuration
After successfully installing the module in Akeneo, you need to set up the Auto SKU Generator configuration first.
You will see the Auto Sku Generator icon in Akeneo from the bottom left as shown below.
After clicking on the Auto SKU generator, you can see the Auto SKU Generator page.
So here, you have to follow the below settings:
- Auto SKU Start Sequence From: Here, you have to define the number in digit from where SKU should start.
Note: Given SKU Sequence must be greater than created SKU.
- Autogenerate SKU Options: Select the attribute label for autogenerating SKU. A respected attribute code will appear in SKU if you have applied that option to the product. This will appear just after the defined prefix.
- Prefix: Define prefix, it supports alphanumeric numbers.
- Suffix: Define suffix, it also supports alphanumeric numbers.
- SKU Separator: Select the required separator from the drop-down.
- Select Default Locale: Choose the default locale from the dropdown, this will appear all active locale in Akeneo.
Create Product in Akeneo
To create a new product in Akeneo
1 – Go to Products > Create and select the Product option.
2 – Here, you’ll get the SKU number. This SKU would be constant mean you can’t modify it.
After that choose a product family.
Note: When you’ll create the next product, SKU number automatically will increase.
3 – After that, fill in all the product information for this new product.
Once you’ll save the product, SKU will be created automatically as shown below:
That’s all about the Akeneo Auto SKU Generator module. Now, the user can generate SKU for their product automatically in Akeneo.
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