Can't delete categories from frontend?

  • Posts: 603
  • Thank you received: 16
  • Hikamarket Multivendor Hikashop Business
3 years 1 week ago #216831

-- HikaShop version -- : 2.6.6
-- HikaMarket version -- : 1.6.5
-- Joomla version -- : 3.4.3

I don't know if it is designed on purpose or I'm just not finding the right place to set it up.

I want to make forntend product and category editors able to delete a category, but there is no t such option available and in the Permissions setup for each vendor and user vendor I can set it up for products but not for categories.

Is this the right thing to be expected?

Could it be changed with some parameter or with a simple code tweak?

Thank you.

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

  • Posts: 22873
  • Thank you received: 3550
  • MODERATOR
3 years 1 week ago #216833

Hi,

You're right, there is no "category delete" in HikaMarket.
To add it, you should update the type "market_acl" in order to create a new ACL for the "category/delete".
You also need a "toggleDelete" function in the HikaMarket category class, in the similar way than the function in the HikaMarket product class (but with code to delete the category and check the permissions).
Afterwards, you can add the delete icon in the category listing ; like the icon is displayed in the product listing.

I can add that feature request in HikaMarket for the next release ; it should not take very long but the category have special things to deal with.
Example: you do not want to vendor to delete their vendor root ; and you need to check the categories and products in the category you want to delete, in order to not create lost items.
So, the "toggleDelete" function in the category class is not as simple as the one in the product class.

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: 30
  • Thank you received: 0
  • Hikashop Business
1 year 8 months ago #261626

I also hope to be able to set up the delete categories button in front-end.
Is it now possible to set it up in the version (1.7.2) of HikaMarket Frontedition?

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

  • Posts: 22873
  • Thank you received: 3550
  • MODERATOR
1 year 8 months ago #261648

Hi,

No, that feature has not been implemented.
Because I didn't have any feedback, the feature request has not been created and I stayed focus on the tasks I got.

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.

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