[Skip to main content](#vessel-content)

#   Have the add category unpublished by default when creating in front

##

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

7 years 2 months ago [\#310629](#310629) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Have the add category unpublished by default when creating in front](/forum/19-hikamarket/898239-have-the-add-category-unpublished-by-default-when-creating-in-front#310629 "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")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk4MjM5LWhhdmUtdGhlLWFkZC1jYXRlZ29yeS11bnB1Ymxpc2hlZC1ieS1kZWZhdWx0LXdoZW4tY3JlYXRpbmctaW4tZnJvbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

7 years 2 months ago [\#310634](#310634) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Have the add category unpublished by default when creating in front](/forum/19-hikamarket/898239-have-the-add-category-unpublished-by-default-when-creating-in-front#310634 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk4MjM5LWhhdmUtdGhlLWFkZC1jYXRlZ29yeS11bnB1Ymxpc2hlZC1ieS1kZWZhdWx0LXdoZW4tY3JlYXRpbmctaW4tZnJvbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

7 years 2 months ago [\#310647](#310647) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Have the add category unpublished by default when creating in front](/forum/19-hikamarket/898239-have-the-add-category-unpublished-by-default-when-creating-in-front#310647 "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")*

I tried but its bydefault published

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk4MjM5LWhhdmUtdGhlLWFkZC1jYXRlZ29yeS11bnB1Ymxpc2hlZC1ieS1kZWZhdWx0LXdoZW4tY3JlYXRpbmctaW4tZnJvbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

7 years 2 months ago [\#310648](#310648) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Have the add category unpublished by default when creating in front](/forum/19-hikamarket/898239-have-the-add-category-unpublished-by-default-when-creating-in-front#310648 "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")*

[ ![screencapture-couponcreator-gr-administrator-index-php-2019-09-07-21&#95;02&#95;14.png](/forum/attachment/47647) ](/forum/attachment/47647 "...7-21&#95;02&#95;14.png")

- [ ![screencapture-couponcreator-gr-administrator-index-php-2019-09-07-21&#95;02&#95;14.png](/forum/attachment/47647) ](/forum/attachment/47647 "...7-21&#95;02&#95;14.png") [ ](/forum/attachment/47647?download=1 "...7-21&#95;02&#95;14.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk4MjM5LWhhdmUtdGhlLWFkZC1jYXRlZ29yeS11bnB1Ymxpc2hlZC1ieS1kZWZhdWx0LXdoZW4tY3JlYXRpbmctaW4tZnJvbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

7 years 2 months ago [\#310682](#310682) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Have the add category unpublished by default when creating in front](/forum/19-hikamarket/898239-have-the-add-category-unpublished-by-default-when-creating-in-front#310682 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk4MjM5LWhhdmUtdGhlLWFkZC1jYXRlZ29yeS11bnB1Ymxpc2hlZC1ieS1kZWZhdWx0LXdoZW4tY3JlYXRpbmctaW4tZnJvbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
