Description
Preconditions and environment
- Magento version: 2.4.6, 2.4.7, 2.4.8
Description (*)
So, in Magento 2, when you create a custom attribute of type Price, it automatically gets the Store View scope by default. We can notice this either in the database or when looking at the attribute grid (Screenshot 2). While creating the price attribute, Magento doesn’t give any option to change the scope manually.
There is a setting in the admin panel under Stores > Configuration > Catalog > Catalog > Price > Catalog Price Scope (Screenshot 3), where we can set whether prices should be scoped globally or by website. Logically, we expect any new price attribute to automatically pick up whatever is set there. But it doesn’t work that way.
If you create a price attribute, Magento will still assign it the Store View scope. However, if you go into that configuration and simply click Save (even without changing anything), and then check the scope of the newly created attribute, it will now be set according to the configuration. So basically, unless you save the price scope setting at least once, Magento doesn't apply it to new price attributes. That inconsistency can be a problem because it creates mismatches in how price data is handled, especially across different store views or websites.
(Note: If we assign this attribute to a product or use it elsewhere, it will follow the scope defined in the configuration. That’s why this issue hasn’t been noticed until now.)
Steps to reproduce
- Navigate to Stores > Configuration > Catalog > Catalog > Price > Catalog Price Scope and set the value to either Website or Global.
- Create a new custom attribute of type Price.
- Check the attribute scope in the admin grid or directly in the database (It will be Store View).
Expected result
The price attribute scope should match the value set in the configuration: Stores > Configuration > Catalog > Catalog > Price > Catalog Price Scope either Website or Global).
Actual result
When a price attribute is created and saved for the first time, its scope is incorrectly set to Store View, regardless of the configured setting.
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Activity
m2-assistant commentedon Jun 12, 2025
Hi @Varshal24. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
m2-assistant commentedon Jun 12, 2025
Hi @engcom-November. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branchDetails
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced on 2.4.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
Issue: Confirmed
once verification is complete.engcom-November commentedon Jun 12, 2025
Hello,
Thank you for your report and collaboration.
We attempted to reproduce the issue on our latest Magento 2.4-develop instance, and we were able to successfully replicate the behavior you've described. Please refer to the attached screenshot for reference.
Steps to Reproduce:
Following the provided preconditions and reproduction steps, we encountered the same issue.
Therefore, we are marking this as: Issue: Confirmed.
Thank you once again for your valuable contribution!
github-jira-sync-bot commentedon Jun 12, 2025
✅ Jira issue https://jira.corp.adobe.com/browse/AC-14945 is successfully created for this GitHub issue.
7 remaining items