How to create customer attribute for specific website level Magento 2?

You can create user-defined customer attributes using Patch Data in Magento 2.

If you have some requirement to show customer attributes to only a given website in multi website setup.
This article displays customer attributes for specific website levels.

Let’s hope you have created a simple module,
Just create a new Data Patch file under the path, app/code/<Vendor>/<Modulename>/Setup/Patch/Data/CustomerAttributes.php

We have to create a new attribute called ‘mobile’ and display it on the customer registration page, and customer edit page. Continue reading “How to create customer attribute for specific website level Magento 2?”

How to set stores configuration setting per store view level by config.php or config.xml in Magento 2?

You can set up the CMS default pages by store view level in Magento 2 by config.php, config.xml, or Manually from the admin panel.

To set up the Default pages by store view level on your site, You have to follow the given articles with provided steps.

Let’s say we have a website that contains multiple store views based on the language.

Main Website code => base
Main Website Store code => base
Main Website Default Store view code => default (By Default English store)
Main Website Spanish Store view code => us_es (Spanish Store view)
Main Website Spanish Store view code => us_fr (French Language Store view) Continue reading “How to set stores configuration setting per store view level by config.php or config.xml in Magento 2?”

How to improve category indexer performance in local development setup warden Magento 2?

If you are working with warden setup for Magento 2 local development and your category indexer taking much time to perform indexing. This article is definitely for you to improve the performance of category indexers with the warden.

I am using MariaDB for the warden and it’s taking time to perform category indexer.

You need to set a few database variable configurations in the warden-env.yml file to fix the catalog category indexer speed-up issue: Continue reading “How to improve category indexer performance in local development setup warden Magento 2?”