Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [scope]

The tag has no usage guidance.

3
votes
2answers
39 views

Which entity allows scoped attributes?

/vendor/magento/module-eav/Model/Entity/Attribute/ScopedAttributeInterface.php There are 3 defined scopes /** * @api * @since 100.0.2 */ interface ScopedAttributeInterface { const ...
0
votes
0answers
9 views

Scope Store not working for custom category attribute

We are using Magento 2.2.6 and created a new category attribute. But the store_view scope is not working. I searched already in the database and also diverse blogs on the internet but don't get a ...
1
vote
1answer
43 views

How to change the Scope of a product system attribute like Status from website to global - Magento 2.2.5?

In my Magento 2.2.5 store, how can I change the scope of one of the product system attributes e.g. Status. There is a is_global field in the table catalog_eav_attribute. Do I have to change is_global ...
0
votes
0answers
11 views

How to change google login scope in magento 2

Please help, how to change google oauth scope, I want to discart "contacts" scope (https://www.googleapis.com/auth/contacts and https://www.google.com/m8/feeds) I use magento 2.1.11
0
votes
0answers
54 views

M2 - Difference between ScopeInterface SCOPE_STORE and SCOPE_STORES

I understand that there are websites, stores within websites, and store views within a store. However, one thing I've never understood is the difference between ScopeInterface::SCOPE_STORE and ...
0
votes
1answer
60 views

Magento price display per store

I would like to different display product prices for each store. There are 20 to 30 stores on our Magento instance, each store having the same products. I am looking for something like this example: ...
0
votes
0answers
13 views

Getting wrong scope for attribute tier_price

While saving the product in the admin panel, tier_price is being validated for duplicate values. While I tried to print the attribute data, was getting the scope as global(1), whereas the is_global ...
0
votes
3answers
208 views

M2.2.3 : How can I create a Category Attribute in the global scope?

I'm trying to create a global scoped category attribute, but it always seem to be scoped on store-level. I've got this: $categorySetup->addAttribute( $categorySetup->getEntityTypeId(...
2
votes
1answer
57 views

Magento2: force cron job to run as admin scope only?

We have a custom CRON command defined in the etc/di.xml file but we noticed that when it runs it fires frontend events. The job runs data export. We see that if we use the admin UI to run a standard ...
0
votes
0answers
62 views

Is it possible Product Qty* scope change [Global] to [Store] in Magento admin?

Is that possible as per Magento we need to change product Qty field scope [Global] To [Store]?
1
vote
2answers
838 views

Magento2 : Change custom attribute scope not working

I create a product custom attribute programatically. The scope was WEBSITE. But now I just realised that this attribute must have the scope as STORE, because I need different values according to the ...
0
votes
0answers
54 views

Why magento uses global attribute for configurable product?

As we all know that Magento requires global scope attribute for creating a configurable product. But my question is why its needed so? Why can't we create a configurable product with an attribute ...
1
vote
0answers
204 views

Magento2 : how to set per website is_required custom attribute for account creation form

I have Magento2 multiple websites. I already added some custom attributes for the customer entity, and I wonder if it's possible to set the is_required field per website. For example, I have an ...
0
votes
0answers
93 views

There has been an error processing your request Invalid scope type ''

I got this see image when I want to log in in magento admin Nothing to find on google Someone know what to do? Thanks a lot! Error Log: a:4:{i:0;s:21:"Invalid scope type ''";i:1;s:6480:"#0 ROOT/...
1
vote
1answer
892 views

Magento2: Config value cached

when i do return $this->_scopeConfig->getValue("config/user/email", \Magento\Store\Model\ScopeInterface::SCOPE_STORE); Gets the value of the cache and is not correct. How can I make it skip ...
4
votes
2answers
563 views

Magento 2: Scope for cron jobs

In which scope does Magento 2 run cron jobs? If I have a multi-site system, does the framework invoke my job once for the entire system, or does it repeat the job for each store? The doc says they ...
8
votes
3answers
731 views

Why can't I change “Catalog Price Scope” to “Website”

Using Magento 2.1.5, I am trying to change the Catalog Price Scope option to Website from Global in Stores > Configuration > Catalog > Catalog > Price, but I cannot as it is disabled. I ...
2
votes
0answers
364 views

Allow countries for websites is not working

I'm trying to configure 2 websites allowing only some countries for each website. For test I'll only allow "spain" for one website and "USA" for the other. I'm using the VM of bitnami with Magento 2....
0
votes
1answer
274 views

Scope of category in observer

I grab category object from observer on event catalog_controller_category_init_after. Should I check it against store id? Or the fact that its loaded in controller first and then passed to event (and ...
1
vote
1answer
527 views

Magento 2.1: Default setting for “Store View”

Whenever I edit a product, the Store View (scope) is set to "All Store Views" each time. In my particular setup, I would like this to default to Main Website > Main Website Store > Default Store View,...
0
votes
1answer
79 views

Configuration vs Scopes/Stores

I work on Magento 2.1. I have one website, store and store view. I understand that if in future client needs to add another language to store he will add just a store view. Am I correct? Now, I have ...
3
votes
0answers
921 views

Magento 2 custom module multi scope store view

I am diving into the world of Magento 2 development. I am writing a very simple custom module to show a slider in my store homepage. Each slide has its own title and an image to show and I made them ...
0
votes
1answer
1k views

Store id 0 for attributes added programatically

I have one website and one store. When I add product from admin, with some programatically added attributes (for example in table catalog_product_entity_int), they get store_id 0 (adminhtml). Is that ...
4
votes
2answers
242 views

The order of the scoped config files

In Magento 2, you can have some config files be scoped. For example di.xml can be present in the etc folder of a module and/or etc/frontend and/or etc/adminhtml. Same goes for events.xml and maybe ...
1
vote
1answer
2k views

Magento 2: Get **all** Base URLs for a Specific System

Magento 2 has a Magento\Framework\UrlInterface interface/type that's mapped to the Magento\Framework\Url object. This object has a getBaseUrl method which you can use to fetch the base URL for the ...
6
votes
3answers
978 views

Magento 2 - Retriving frontend layout blocks from adminhtml

Problem I need to gain access to the children blocks from the parent block alias of customer_account_navigation from the frontend layout to be used in the adminhtml system configuration. Current ...
1
vote
2answers
484 views

Magento 2 integration test in admin context

I'm writing an integration test for Magento 2 where I have to emulate the admin area. To do so, I use the @magentoAppArea annotation: /** * @magentoAppArea adminhtml */ However, some things did ...
1
vote
1answer
1k views

Magento change product attribute scope STORE to GLOBAL [duplicate]

I added "test_att" attribute having scope is STORE VIEW. Now I want to change attribute scope to GLOBAL. How I will achieve this updation?
1
vote
1answer
392 views

adding addFieldsToFilter() does INNER JOIN on eav tables, removing all products which don't have that attribute

This is either a simple fix, or something that magento does natively and I'll have to do a workaround (which I still need to know what it is). Here is my code: $products = Mage::getModel('catalog/...
0
votes
1answer
4k views

Product Star Ratings Summary not displaying in every store view

On a product page of our site when customers leave reviews with star ratings, the start rating summary (average) is displayed at the top of the product page. But I've noticed that when we change the ...
4
votes
2answers
270 views

Helper's scope (when getting via Mage::helper())

I'm trying to understand couple of things about helper classes scope and lifetime. I think I got it but it's critical for me to be sure. So can you please tell me if I'm right about the following ...
2
votes
2answers
690 views

Price is not updating in all store views even though scope is set to global

We have multiple store views but we want prices to be universal across all stores views. We have the scope set to global but when I update prices either via upload through Magmi or manually it doesn't ...
3
votes
1answer
935 views

Is it possible to assign different categories to the same product, by Store View?

everyone. I have a little problem, and I hope you can help me. Suppose I have a Site that has two Websites: Website1 and Website2. Respectively each has its StoreView1 and StoreView2: --Website1 ----...
2
votes
2answers
9k views

Programatically update a single attribute in Store View Scope

If you load a product in Store View scope, all the inherited data ("Use Default Values") comes with it... which makes perfect sense, so far so good. $_product = Mage::getModel('catalog/product')->...
1
vote
2answers
1k views

Change scope for “Maximum Qty Allowed in Shopping Cart” in product

Currently, for every product the attribute "Inventory" > "Maximum Qty Allowed in Shopping Cart" is defined in global scope for one article. How can I change this scope to have the maximum quantity in ...
1
vote
0answers
428 views

Product attributes Inventory change scope and add extra attributes

I want to change the scope of the product attributes of the Inventory of a product. The quantity in stock is of the GLOBAL scope. But I have different websites which have different warehouses and I'd ...
1
vote
1answer
448 views

Can i change the scope location from global to website for ebay_price attribute

I have to change the scope of ebay price to website from global but there is not any option to change. Suggest me it's urgent work.
0
votes
1answer
401 views

Magento - Change the Scope of an Attribute

How can I change the scope of anattribute from 'Global' to 'Website'. Is there an extension to change it or do I have to change it manually?
1
vote
1answer
116 views

Show out of stock products website based

I am having a problem of displaying out of stock products website based. In admin System -> Configuration -> Inventory, there's a field call Display Out of Stock Products. But it is a global ...
3
votes
1answer
3k views

How to find whether a product attribute is set to “use default value”

If I load a product's data in store view or website scope, every attribute set to "use default value" is populated with that default value. This is fine in most cases, but now I'm trying to find out ...
2
votes
2answers
144 views

Multi Website, Different Prices, Same Domain?

We're after a multi currency, multi price, multi national Magento website on a single .com domain. The key point is that the client wants to have different product prices on each website. Fine, ...
1
vote
0answers
155 views

Can I change custom attribute scope from Global to Website so it does not appear in my second store?

I do not want the custom attribute "SCOTT#" which is currently in use in my live Magento store to appear in a second store I am setting up. If I change the scope of this attribute "Global" to "...
1
vote
2answers
2k views

Load a category collection with store-specific data

I have found plenty of questions and answers regarding how to load categories from a particular store, but this is a different issue. My problem is, having loaded the categories that I want, their ...
0
votes
2answers
999 views

How to update my global prices and delete website prices?

In Magento I configured global prices - 1 price for all websites/stores/languages. Unfortunately, Magmi imported prices in the website tables (in case there is anything like a website table). So now I'...
1
vote
2answers
140 views

Layout updates for particular page for particular store

Is there an official way to update a layout via local.xml only on grouped product pages AND in a particular store? This would let me update the layout on grouped product pages: <layout> &...
2
votes
1answer
1k views

Base URLs at Global Scope in Multi-Store Setup

I have a multi-store installation, and each store has its own domain set in System > Configuration > General > Web > [Un]Secure > Base URL: [Global Scope] |-- http://separatenode.com/...
1
vote
1answer
73 views

Can the Cost attribute scope be changed to Store View?

The cost attribute (not the price) is locked to "Website". We have a situation where we sell the same product in different countries and as such the cost of the product is actually different. For ...
3
votes
1answer
533 views

How to get all products that are using the default ( admin ) scope values when in a store scope

I want to create a admin Grid that displays all products that are using the default ( admin 0 ) scope values when i am in a store scope. How can I filter a collection to get this desire result. Any ...
2
votes
1answer
100 views

how to change copyright field website level to store level

I have multiple website and multiple store configuration where I need to set different copyright text for each store. I checked the system->configuration->general->design->footer Their ...
0
votes
1answer
2k views

Manage different stocks for different stores/store views in magento 1.9

My site has different stores(city as it is called). I want to manage the stocks for these stores. i.e. "Assign/manage different product quantity to each store for the same product." or in other word (...