PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.24k stars 4.81k forks source link

Product Type Not Updated Correctly When Changing from 'Pack of Products' to 'Standard Product' #37419

Closed seederp2p closed 21 hours ago

seederp2p commented 6 days ago

Prerequisites

Describe the bug and add attachments

When editing a product in PrestaShop from "Pack of Products" to "Standard Product", the change appears to take effect in the front office. However, in the back office, the selector remains on "Pack of Products", and in the database, the column product_type in the ps_product table retains the value "pack".

This discrepancy leads to inconsistencies between the front office, back office, and database.

I'm NOT using "New product page".

Expected behavior

When changing the product type from "Pack of Products" to "Standard Product", the update should be correctly reflected:

In the back office selector. In the product_type column in the ps_product table (set to "standard").

Steps to reproduce

Create or edit a product and set its type to "Pack of Products" in the back office. Save the product. Re-edit the same product and change its type to "Standard Product". Save the changes. Observe: The front office reflects the product as a "Standard Product". The back office selector still shows "Pack of Products". In the database (ps_product table), the product_type column retains the value "pack".

PrestaShop version(s) where the bug happened

8.1.9

PHP version(s) where the bug happened

7.4

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

Hlavtox commented 6 days ago

@seederp2p I did not test it, but I believe you.

However, these are the last days of product page v1, it's already removed in 9.0.0 that is coming soon. :-) I don't think there will be anyone willing to fix it. I think we even already closed all issues related to v1 product page.

seederp2p commented 6 days ago

@seederp2p I did not test it, but I believe you.

However, these are the last days of product page v1, it's already removed in 9.0.0 that is coming soon. :-) I don't think there will be anyone willing to fix it. I think we even already closed all issues related to v1 product page.

I understand, and I appreciate the update. However, like many PrestaShop store owners or agencies, we tend to wait for a grace period before adopting new major versions. This allows time for the new versions to stabilize, plugins to become compatible, and the ecosystem to align.

So, perhaps the issue isn’t too challenging to resolve, and it might be worthwhile to produce a fix for those who continue to rely on the v1 product page during this transitional phase. It would certainly help many of us still on this version.

florine2623 commented 4 days ago

Reproduced in PPV1, not in PPV2.

ibahloul-ps commented 21 hours ago

Hello @seederp2p Like @Hlavtox said, we won't fix issue related to a legacy page!

Have a good one! Bye