Apply Options To Category Rather Than Single Product

Hello again,



As stated in the topic title I want to apply product option to a whole category rather than for each product individually.

This means all current products at the specified category should automatically have the specified option as will as all new products which will be added in the future.



Any suggestions?

[quote name='Elsherif' timestamp='1437644593' post='224066']

Hello again,



As stated in the topic title I want to apply product option to a whole category rather than for each product individually.

This means all current products at the specified category should automatically have the specified option as will as all new products which will be added in the future.



Any suggestions?

[/quote]



Additional code modifications are required to implement this feature. Our team is at your service

[quote name='eComLabs' timestamp='1437665964' post='224110']

Additional code modifications are required to implement this feature. Our team is at your service

[/quote]

I can make the modifications just need some guide lines.

[quote name='Elsherif' timestamp='1437713594' post='224151']

I can make the modifications just need some guide lines.

[/quote]



This is quite complex task. I suggest you to add picker with categories to the global option details page (check example on the update product page). When the option is updated, use the update_product_option_post hook in the fn_update_product_option function (app/functions/fn.catalog.php) to update all products from the selected categories

[quote name='eComLabs' timestamp='1437728156' post='224169']

This is quite complex task. I suggest you to add picker with categories to the global option details page (check example on the update product page). When the option is updated, use the update_product_option_post hook in the fn_update_product_option function (app/functions/fn.catalog.php) to update all products from the selected categories

[/quote]

OK I understand what you are suggesting but this will add the option to currently available products only so I will have to add another hook to add the option to new products if they are added to that category. Is that right?

[quote name='Elsherif' timestamp='1437730355' post='224181']

OK I understand what you are suggesting but this will add the option to currently available products only so I will have to add another hook to add the option to new products if they are added to that category. Is that right?

[/quote]



Yes, you are right. If you want options to be added automatically, it will significantly increase the task complexity.