Jump to content

Edit History

artixweb

artixweb


clickable link

Hello,


Since this is a Symfony controller: https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/#service-overrides

However, I would advise against this approach of modifying the product page directly and encourage you to develop a custom module instead that uses the displayAdminProductsExtra hook or something similar. And instead of changing the product class and table, you could create an associative table using the product id to link to the new fields you want to add, for example, a ps_product_combinations_extra table with the columns id_product, special_quantities, another_new_field, etc., then you can query the new fields by using the product ID or even make JOIN queries.

If you are a developer working for the customer, I understand that the customer might say something like "But I want it on the combinations page", in that case, you can kindly explain to him/her that using this approach ensures that you can safely update to future versions of PrestaShop (PS 8.0 is right around the corner).

There is already an experimental version of the admin product page available for testing.

So all your changes made directly to the product page might need to be redone once the new version of the admin product page is released as well.

I hope you take my advice into consideration and wish you the best of luck!

 

artixweb

artixweb


clickable link

Hello,


Since this is a Symfony controller: https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/#service-overrides

However, I would advise against this approach of modifying the product page directly and encourage you to develop a custom module instead that uses the displayAdminProductsExtra hook or something similar. And instead of changing the product class and table, you could create an associative table using the product id to link to the new fields you want to add, for example, a ps_product_combinations_extra table with the columns id_product, special_quantities, another_new_field, etc., then you can query the new fields by using the product ID or even make JOIN queries.

If you are a developer working for the customer, I understand that the customer might say something like "But I want it on the combinations page", in that case, you can kindly explain to him/her that using this approach ensures that you can safely update to future versions of PrestaShop (PS 8.0 is right around the corner).

There is already an experimental version of the admin product page available for testing.

So all your changes made directly to the product page might need to be redone once the new version of the admin product page is released as well.

Good luck!

 

artixweb

artixweb


clickable link

Hello,


Since this is a Symfony controller: https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/#service-overrides

However, I would advise against this approach of modifying the product page directly and encourage you to develop a custom module instead that uses the displayAdminProductsExtra hook or something similar. And instead of changing the product class and table, you could create an associative table using the product id to link to the new fields you want to add, for example, a ps_product_combinations_extra table with the columns id_product, special_quantities, another_new_field, etc., then you can query the new fields by using the product ID or even make JOIN queries.

If you are a developer working for the customer, I understand that the customer might say something like "But I want it on the combinations page", in that case, you can kindly explain to him/her that using this approach ensures that you can safely update to future versions of PrestaShop (PS 8.0 is right around the corner).

There is already an experimental version of the admin product page available for testing.

So all your changes made directly to the product page might need to be redone once the new version of the admin product page is released as well.

Good luck!

 

artixweb

artixweb


clickable link

Hello,


Since this is a Symfony controller: https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/#service-overrides

However, I would advise against this approach of modifying the product page directly and encourage you to develop a custom module instead that uses the displayAdminProductsExtra hook or something similar. And instead of changing the product class and table, you could create an associative table using the product id to link the new fields you want to add, for example, a ps_product_combinations_extra table with the columns id_product, special_quantities, another_new_field, etc., then you can query the new fields by using the product ID or even make JOIN queries.

If you are a developer working for the customer, I understand that the customer might say something like "But I want it on the combinations page", in that case, you can kindly explain to him/her that using this approach ensures that you can safely update to future versions of PrestaShop (PS 8.0 is right around the corner).

There is already an experimental version of the admin product page available for testing.

So all your changes made directly to the product page might need to be redone once the new version of the admin product page is released as well.

Good luck!

 

artixweb

artixweb

Hello,


Since this is a Symfony controller: https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/#service-overrides

However, I would advise against this approach of modifying the product page directly and encourage you to develop a custom module instead that uses the displayAdminProductsExtra hook or something similar. And instead of changing the product class and table, you could create an associative table using the product id to link the new fields you want to add, for example, a ps_product_combinations_extra table with the columns id_product, special_quantities, another_new_field, etc., then you can query the new fields by using the product ID or even make JOIN queries.

If you are a developer working for the customer, I understand that the customer might say something like "But I want it on the combinations page", in that case, you can kindly explain to him/her that using this approach ensures that you can safely update to future versions of PrestaShop (PS 8.0 is right around the corner).

There is already an experimental version of the admin product page available for testing.

So all your changes made directly to the product page might need to be redone once the new version of the admin product page is released as well.

Good luck!

 

×
×
  • Create New...