Product categories question

  • Posts: 205
  • Thank you received: 12
4 years 6 months ago #318997

-- HikaShop version -- : 4.3.0
-- HikaMarket version -- : 3.0.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.30

Hello...
How can we set so that Vendors are not able to create products in Top level categories?
Please check the following example that explains what we want to have:

Product categories (No product creation directly in this category)
Category 1 (No product creation directly in this category)
Sub category A (Allowed)
Sub category B (Allowed)
Sub category C (Allowed)
Category 2 (Allow product creation directly in this category because there are no Sub categories)
Category 3 (No product creation directly in this category)
Sub category A (Allowed)
Sub category B (Allowed)
Sub category C (Allowed)
...

Last edit: 4 years 6 months ago by liaskas.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #319015

Hello,

Your request is interesting and might be added into HikaMarket as an hidden option.
Since it is maybe too specific and could require more settings/restrictions to be really flexible for HikaMarket users, I don't that as a classical option.
Since HikaMarket do propose the "vendor root" and authorize the vendors to do what they want under that category (even create categories), having such kind of restriction would be complicated for the vendors and could generate unwanted side effects.
Now if you do not have "vendor root" or if you do allow "extra categories", such kind of restriction is clearly good since your category structure won't change like that (and you can use mass-action if one category is no more a leaf one).
I started to work on an implementation, which should be include in the next release.

Afterwards, if you want to have a specific control on product ; you can still use the HIkaShop triggers (onBeforeProductCreate / onBeforeProductUpdate) in order to add you own restrictions and limitations.
www.hikashop.com/support/documentation/6...nBeforeProductCreate
Thanks to the API (which is also triggered by HikaMarket), you can have your own algorithm and also make the difference between the front-end and the backend (admin / vendor).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
4 years 6 months ago #319031

Thank you for your reply!

Tried to use Mass Actions for this purpose but no luck. If there is a tutorial somewhere for such an action... please be so kind to propose.

I started to work on an implementation, which should be include in the next release.

This implementation will allow us to exclude categories from product creation?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #319075

Hello,

The reference of the mass-action was mostly the fact that if you add a sub-category in the backend, you can use a mass-action to move all the products in the category to a new leaf one.

The implementation will refuse every "new" category which is not a leaf one, for the product creation or update.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
4 years 6 months ago #319094

We found another thread in your forum that is exactly the same with ours.
Here is the older thread

There... you mention clearly...

Another solution would be to use a custom plugin in order to exclude (refuse) some categories for your vendors.
In such plugin (which use an HikaShop trigger) you can simply refuse the saving of a product if it uses some specific categories.


Please clarify...
By "custom plugin" you mean that we have to code an installable plugin?

If this is what you mean... given that we are not able to code plugins, please inform us if you have a paid service that we can use to order this plugin.

Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #319132

Hello,

A "custom plugin" is a plugin that you develop yourself or via a developer. It requires some development/PHP skills to create such kind of plugin.
And, that old thread was 4 years old ; my previous message is less than 2 days.
I'm not sure why you try to find other solutions when I give you already a "fresh" answer.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
4 years 6 months ago #319153

You are right from your side! I understand that trying to find a solution while you already told me about the new version implementation looks at least foolish from me.

From my part... i am being pressed by time to set the multistore online as soon as possible! This is why i am trying to find a temporary solution till the implementation is done on the new version.

I will wait, and please forgive me for being anxious sometimes!

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #319553

Hello,

The implementation is done in HikaMarket and will be include in the next release.
We don't have any precise estimation date for that release, we still have some developments and receiving feedback regarding the last version.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
4 years 5 months ago #319699

Thank you!!!
Looking forward for the next version.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.072 seconds
Powered by Kunena Forum