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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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