cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between scope type website and websites?

SOLVED
Highlighted

What is the difference between scope type website and websites?

Constants defined under : /vendor/magento/module-store/Model/ScopeInterface.php

 

I know Magento 2 have store, group, website, stores, groups and websites scope types. But my question is when Magento use singular form and when it uses plural form.

 

Under core_config_data table sometimes it saves under website or sometime websites scope. How it decide this ?

 

For example :

 

If issue solved, click Kudos/Accept as solutions.
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: What is the difference between scope type website and websites?

Hi @sudhanshu_bajaj,

We should use websites for consistency.

Magento\Store\Model\ScopeInterface:Smiley FrustratedCOPE_WEBSITES

The module (dotmailer) is using website only.

You can check in core_config_data table as well.

Select * FROM core_config_data where scope = 'websites';

You have raised a good question.

I hope it will help you and others as well.
----
Problem solved? Click Accept as Solution!

View solution in original post

1 REPLY 1
Highlighted

Re: What is the difference between scope type website and websites?

Hi @sudhanshu_bajaj,

We should use websites for consistency.

Magento\Store\Model\ScopeInterface:Smiley FrustratedCOPE_WEBSITES

The module (dotmailer) is using website only.

You can check in core_config_data table as well.

Select * FROM core_config_data where scope = 'websites';

You have raised a good question.

I hope it will help you and others as well.
----
Problem solved? Click Accept as Solution!

View solution in original post