-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Can't add a new product in a taxon #8130
Comments
Have you deployed with yarn the admin assets ? |
@smashou , Yes I did run yarn , but It didn't work. After running Before to run The path to the picture seems to be ok. The thumbnail are not generated in config.yml
|
Same issue here, no taxonomy term tree displayed. |
It seems that the route "sylius_admin_ajax_taxon_leafs" which call findChildren method from TaxonRepository is not working well. |
@pcmdev , It seems like not all the fixtures are loaded properly while running I fixed this issue by adding this line into
Follow the steps below:
let me know if it works. |
Are you guys using any custom locale on your shop? I've tried installing a new version and it works OK. On the none working version I'm using en_GB and on the working one en_US. There is a query running to find the leafs where one of the WHERE clauses try to match en_US that I don't have on that version. |
I'm using fr_FR and en_US and still not working. And I have an en_US translation on each of my taxon |
There is a quick way to fix it editing the table "sylius_taxon_translation" and setting the locale to "en_US" in my case, and the tree will be displayed correctly, at least that worked for me. Although I'm not sure how to fix it for new ones. |
For me the quick fix was to override the findChildren and remove the locale from the request. I think it's just a small fix. But I do not have enough time today to fix it. I'll give a try tomorrow :) |
Just to add an additional comment. When the translation is there the taxonomy tree is rendered, but not completely, it's just displaying the children of top level taxonomies. That happening even on the default Sylius installation. |
isn't this related to #8068? |
I think there are two independent bugs on this ticket:
The second one is on these files:
What's the logic to limit the rendering of the tree with defaultLevel = 1? This way only the root categories and the immediate children are rendered, is this done on purpose for performance? Removing the if check on line 112 of the first file fixes the issue. Or just incrementing the defaultLevel to the appropriate depth. |
@smashou @gabiudrescu there is an easy way to fix the issue related to the categories problem without overriding the getChildren method. The actual "bug" is that the admin user Sylius is creating during the installation has the locale en_US, and therefore it tries to find categories with that locale on the admin. Changing the local of your admin user to en_GB in my case fixed the issue straight away, because the only locale available on my website is en_GB and all my categories are using it. |
@pcmdev yup, I confirm. this is the correct way to reproduce the bug(s)! |
@Arminek, that's exactly the bug I was trying to explain you in Berlin! |
Good evening, This is not solved we still have an issue with the JS, https://github.com/Sylius/SyliusAdminBundle/blob/1.3/Resources/private/js/app.js#L86 Why the level is one? Why not rendering all the taxonomies? Thanks a lot for the help, |
Hi,
I have been trying to add a new product in a category , but I can't see the sub categories under category.
On the sylius demo its looks as below:
In my back-end its look like this:
I'm using sylius 1.0.0-beta.2
The text was updated successfully, but these errors were encountered: