How product website relation are stored in catalog_product_website table Magento 2?

Magento catalog_product_website is used to store relations between a product and its associated websites.

If your Magento runs with multiple websites and the product is assigned to multiple websites, its relation with the website is stored in the catalog_product_website table.

Table catalog_product_website has two columns. Continue reading “How product website relation are stored in catalog_product_website table Magento 2?”

How to get store code by store cookie Magento 2?

You can get the store code value from the cookie name store in Magento 2.

This article will be useful while you have multiple stores set up in your store.

While you switch any store from the site, Magento adds a logic to add a new cookie called store with a value containing the current selected store. Continue reading “How to get store code by store cookie Magento 2?”

How to fix TypeError: target.extend is not a function mixins in Magento 2?

I am working on the checkout page store locator popup modal, I have tried to mixins for the pickup-locations-service.js file to override core methods from the javascript file.

The error TypeError: target.extend is not a function in Magento 2 often occurs due to issues with JavaScript mixins declaration.

Due to incorrect syntax in my custom mixins javascript file, I got the error in the browser console file,

target.extend is not a function.

This error came due to invalid syntax in your mixins file. you need to fix the mixins JS file to resolve that error. Continue reading “How to fix TypeError: target.extend is not a function mixins in Magento 2?”