Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Apply Options To Category Rather Than Single Product Rate Topic   - - - - -

 
  • Elsherif
  • Member
  • Trial users
  • Join Date: 10-Jul 15
  • 36 posts

Posted 23 July 2015 - 09:43 AM #1

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?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 23 July 2015 - 03:39 PM #2

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?


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

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Elsherif
  • Member
  • Trial users
  • Join Date: 10-Jul 15
  • 36 posts

Posted 24 July 2015 - 04:53 AM #3

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

I can make the modifications just need some guide lines.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 24 July 2015 - 08:55 AM #4

I can make the modifications just need some guide lines.


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

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Elsherif
  • Member
  • Trial users
  • Join Date: 10-Jul 15
  • 36 posts

Posted 24 July 2015 - 09:32 AM #5

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

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?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 24 July 2015 - 02:49 PM #6

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?


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

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.