What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi there π I have a question concerning data import - scenario is two stores,
Hi there π
I have a question concerning data import - scenario is two stores, A and B, same Codebase. StoreA has DE and EN, StoreB has only EN - and now the problem kicks in. I have to separate the data, as StoreB das not understand the locale DE.
I solved the problem by renaming the csv files and attaching the storeName dynamically with Store::getInstance()->getStoreName()
How do I cope with the tests? There are hardcoded strings that point e.g. to company_user.csv
- If i rename the csv to company_user_DE.csv e.g. the test wonβt work anymore.
Thanks π¦
Comments
-
Hello @USPATDHK5, you do not need to separate the data, if some stores does not support the same language, it does not mean that the underlying entities such products, discount, cms pages cannot support them.
A store with EN and DE as languages only means that this store when viewed via a web browser can display content in EN and DE thats all.
You can still have products for example translated in FR, ES, IT, DE and EN
Is your problem only related to company user?
0 -
As soon as you have translatable content, e.g. meta_description and one of the stores does not support the language the import wonβt work -> an exception is thrown π (it also does in the demo shop, if the US Store does not support the locale
'de' => 'de_DE'
anymore:
Spryker\Zed\DataImport\Business\Exception\DataImportException - Exception: Could not extract language identifier for idLocale β46β
idLocale β46" is german πno no the problem is in multiple (test)files, as the tests contain the links to the csv files hard coded as a string.
0 -
OK then it seems to be a bug. @valerii.trots where is the support portal that can allow @USPATDHK5 to create a ticket there?
0 -
-
Iβm not sure whether I agree that it is a bug π
in the demoshop US does support de_DE, if you withdraw that support and then try to import explicit data for de_DE, itβs actually a logic consequence that it does not work anymore - or am I mistaken?
0 -
Importing data for a given locale should not trow an exception if a store does not support it
0 -
this is why it is a bug for me
0 -
with given locale you mean spryker supports in general?
0 -
Thank you! I created a ticket
0 -
Spryker should support any locale that those are linked to a store or not does not matter
0 -
Good to know! I thought the exception was intentional.
0 -
Hi @USPATDHK5, sorry for the late reply, but finally I was able to check the issue using latest
spryker-shop/suite
.
What I did:
1. Modifiedconfig/Shared/stores.php
to have onlyen_US
locale for US store.
2. Installed application from the scratch for sake of experiment.
3. Ran import likeAPPLICATION_STORE=US docker/sdk console data:import category
in docker.My actual result is:
0 -
I tried it on two different checkouts and it did not work - to make sure I tried it with a clean checkout just now, and it went through - totally unpredictable - Do you think it has to do with docker sync?
0 -
I will try later once again using
spryker-shop/b2c-demo-shop
orspryker-shop/b2b-demo-shop
.0 -
In latest
spryker-shop/b2c-demo-shop
the result is the same - can't reproduce the problem.
I'm not sure if it's env-specific.
But in case it is, I'm using docker in linux so no docker-sync.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random