Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all stores for admin scope #184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

barryvdh
Copy link
Contributor

When the scope is admin global, shouldn't all stores be selected?

In my case, I had a 'price' attribute, which had the same value for multiple stores. But when updating, only the admin value was updated, so the actual storeview values where kept. I did have the prices configured as global..

Or should I have configured something else differently?

@barryvdh
Copy link
Contributor Author

I'm not sure if this should be just for 'global', or for everything with 'admin' store. I suspect only for global. But I don't think the website view is working either, is it?

Global:
SELECT csmain.store_id from core_store as csmain

Website:
SELECT csmain.store_id from core_store as csmain WHERE csmain.website_id IN (SELECT csmain.website_id from core_store as csmain WHERE csmain.code IN ('store1'))

Store:
SELECT csmain.store_id from core_store as csmain WHERE csmain.code IN ('store1')

Currently only the Store variant is used.

Or am I misunderstanding this functionality?

@manticorp
Copy link

Importing globally is different to importing to every store.

For example, lets say you have 3 english store views and 1 spanish, you might want the global, admin product description to be english, and only set the spanish store view's product description.

That way, you can update the 3 english store's description by just updating the global value, instead of having to edit it in every store...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants