How to override form/register.phtml template in Magento 2?

You can override register.phtml file using layout XML way or directly add template file to theme level by theme module.

register.phtml file used to display a Customer registration form in frontend.

Block name is customer_form_register which contains the register.phtml template.

you can see registration form by URL, <SITE_URL>/customer/account/create Continue reading “How to override form/register.phtml template in Magento 2?”

Get Website code by store id programmatically magento 2.

Magento 2, You can fetch website code by just passing store id value.

You required store id to get website code from the passed store id.

You can fetch website code using the below code snippet, Continue reading “Get Website code by store id programmatically magento 2.”

Get Default store id of website by website id Magento 2.

Magento contains Multi-store functionality for a single website.

Let’s consider Single website has three stores for different presentation,
1. English(store id 1),
2. French(store id 2 Default store),
3. Spanish(store id 3)

Continue reading “Get Default store id of website by website id Magento 2.”