Difference Between MAGE_RUN_CODE and MAGE_RUN_TYPE in Magento 2.x

Each website as well as each store view must have a unique identifier.

These unique identifier are required to use the MAGE_RUN_TYPE and MAGE_RUN_CODE variables as below following steps

MAGE_RUN_TYPE can be either store or website

The Website is used to load a website in your storefront.

The Store is used to to load any store view in your storefront.

MAGE_RUN_CODE is the unique website or store view code that corresponds to MAGE_RUN_TYPE

Which Magento 2.x Database Tables For Algolia Search, While Magento 2.x Connected To Algolia Search.

The following below set of Magento 2.x Database Tables created while , Magento 2.x Search configured with Algolia Search.

Algolia Search Tables in Magento 2.x Database

algoliasearch_landing_page

Store Meta Tags details [Title, Description, Keywords etc.] of landing_page

algoliasearch_query

Store Search Query Results with Store ID & Images

algoliasearch_queue

Store Search Query Results in the queue

algoliasearch_queue_archive

Store Search Query Results in archive

algoliasearch_queue_log

Store Search Query Results with Log details

algolia_additional_sections_cl

Store Catalog ID (entity_id)

algolia_categories_cl

Store Categories ID (entity_id)

algolia_delete_products_cl

Store Deleted Products ID (entity_id)

algolia_pages_cl

Store CMS Pages ID (entity_id)

algolia_products_cl

Store Products ID (entity_id)

algolia_queue_runner_cl

Store Currently running Search Query Results queue Catalog / CMS Pages ID (entity_id)

algolia_suggestions_cl

Store Search Query Results suggestions ID (entity_id)

How To Setup Algolia in Magento 2.x

Magento 2 Commerce Cloud Command List

There are following important Magento 2 Commerce Cloud Command List.

Total Magento-Cloud 127 Commands

  1. Que:: Which Magento 2 Commerce Cloud Command is used to check either your Machine public SSH has been added in Commerce Cloud Server or not.
  1. Ans:: The following below command
magento-cloud ssh-key:list

Output as, once run above command

Continue reading “Magento 2 Commerce Cloud Command List”

How To Disable Elasticsearch in Magento 2.4

As per Magento 2.4.x requirement, Elasticsearch is mandatory, While developing / design project, sometimes need to disable Elasticsearch in Magento 2.4.x based as per working project need.

The following below CLI Command .

php bin/magento module:disable Magento_Elasticsearch,Magento_Elasticsearch6,Magento_InventoryElasticsearch,Magento_Elasticsearch7

How to Create Custom 404 Page in Magento 2

404 Page Not Found is one of the most common errors that occur when the website or store is active / running, but as per user requirement specific page is not available or does not exist.

404 Page Not Found is a client-side Error

This occurs due to below multiple reasons.

Continue reading “How to Create Custom 404 Page in Magento 2”