Skip to main content

Have the add category unpublished by default when creating in front

More
7 years 3 weeks ago #310629 by verzevoul
Hi Jerome
I m strungling to make it less dangerous from th front end. I mean a vendor can create a category but its published by default . I tried with Jquery to have this button disabled and status (0) .
When I save its pubished even if I can see it that it is to state unpublished before saving.

I need that because I need the vendor to add the categories an the right parent category (not theirs vendor category), but I dont want to let them destroy my categories

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

More
7 years 3 weeks ago #310634 by Jerome
Hello,

If you remove the ACL for the category publish ; your vendors would be able to create new categories but won't be able to change that state. And, in such case, the category will be unpublish by default.
You will have the control for the validation (and publishing) of the category but you will be sure that you keep a control on the category creation.

Otherwise, I would suggest a view override if you want to change the default state ; in PHP you can detect if you're creating a category or not (because you have a category_id, or not).

Regards,

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

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

More
7 years 3 weeks ago #310647 by verzevoul
I tried but its bydefault published

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

More
7 years 3 weeks ago #310648 by verzevoul

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

More
7 years 3 weeks ago #310682 by Jerome
Hello,

Your screenshot is to small to be able to read your ACL configuration ; but I suppose that you wanted to show me that you remove the category/edit/published ACL.

Regards,

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

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

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