Jump to content
maccio

Subcategories with same name (Prestashop 1.7.0.4)

Recommended Posts

Hello,
I installed Prestashop 1.7.0.4 in Italian and English.

I built this tree of categories without any error:
Products
-Footwear
--Man
--- sneaker
--Woman
--- sneaker

If I create a product and I check both categories "sneaker" the system give me this error Unable to update settings.

Why? Is it a bug?

Thanks in advance!

Share this post


Link to post
Share on other sites

Core bug, looking for a solution. AS you can see, above the category tree in the product bo, they are added like tags. The same name causes a duplicate, thus the error. Geez I can't believe they left such a bug...

  • Like 2

Share this post


Link to post
Share on other sites

Thank you for your reply!
How many known bugs are there in Prestashop 1.7?

 

I also noticed there isn't the official module of payment form Paypal. Right?

Share this post


Link to post
Share on other sites

A quick fix, in this file : PrestaShopBundle\Form\Admin\Type\CommonAbstractType.php

In formatDataChoicesList function.

 

Replace this line : $new_list[$item[$mapping_name]] = $item[$mapping_value];

By this one : $new_list[$item[$mapping_name].$item[$mapping_value]] = $item[$mapping_value];

 

This permit to have unique value name not visible by users.

Share this post


Link to post
Share on other sites

I was always under the impression right from the start of v1.7 that you could not have any categories and subcategories with the same name.

 

I went out of my way to give each a unique name.

 

Is this not the case now. Or is it a real bug. Can you point to where the bug has been logged.

 

Cheers

Share this post


Link to post
Share on other sites
Forget version 1.7, it is not operational before long ^^

 

1.6.1.11 is ok and we know it well :-)

  • Like 2

Share this post


Link to post
Share on other sites

I have the same problem.

In 1.7.0.5 the bug is not fixed yet.

Edited by rl_lucian

Share this post


Link to post
Share on other sites

A quick fix, in this file : PrestaShopBundle\Form\Admin\Type\CommonAbstractType.php

In formatDataChoicesList function.

 

Replace this line : $new_list[$item[$mapping_name]] = $item[$mapping_value];

By this one : $new_list[$item[$mapping_name].$item[$mapping_value]] = $item[$mapping_value];

 

This permit to have unique value name not visible by users.

 

Any feedback from someone of this solution in production?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More