Hide discount menu in backend but the "coupon" still show

  • Posts: 30
  • Thank you received: 0
  • Hikashop Business
11 months 11 hours ago #278818

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 7.1

HELLO~
In Backend, could it possible hide the "discount" menu but the "coupon" still show?
I can't find any CSS or view PHP to customize it.

Attachments:

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

  • Posts: 1809
  • Thank you received: 249
  • MODERATOR
10 months 4 weeks ago #278837

Hello,

If I follow you well, you want hide Discount menu from backend for a specific user group, but keep discount functionalities (in frontend).
For this I invite you to go to Main HikaShop Configuration menu (in Components => HikaSHop => Configuration) and Access Level tab.
Here, select Discount and click on Custom in order to manage, View access or abilities to delete Discount instances.



Maybe to have what you required you have to create a new user group for your specific user.

Hope this will help you.

Regards

Attachments:
Last Edit: 10 months 4 weeks ago by Philip.
The following user(s) said Thank You: rakuzen

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

  • Posts: 30
  • Thank you received: 0
  • Hikashop Business
10 months 4 weeks ago #278861

I tried this way, the "Discount" and "Coupon" are hide together.
Could it possible just hide "Discount" ? In the backend menu?
Or could I customize This backned menu display in "Views" ?

Attachments:

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

  • Posts: 63027
  • Thank you received: 9058
  • MODERATOR
10 months 4 weeks ago #278864

Hi,

They are together because it's actually the same interface.
It's not impossible to separate them for the ACL settings, but it's a lot of work.
While you could remove the discount menu from the menu bar with a view override of the file "default" of the view "discount", it would still allow anyone to directly access it with the right URL if they have access to coupons.
To do that, you would have to add such line at the top:

<?php unset($this->menus['orders']['children'][1]); ?>

The following user(s) said Thank You: rakuzen

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

  • Posts: 30
  • Thank you received: 0
  • Hikashop Business
10 months 4 weeks ago #278899

It worked, Thank you very much!!!
According to your line, I can also hide "Manufacturers" menu like This?

<?php unset($this->menus['products']['children'][4]); ?>

Last Edit: 10 months 4 weeks ago by rakuzen.

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

  • Posts: 22679
  • Thank you received: 3520
  • MODERATOR
10 months 4 weeks ago #278900

Hello,

Yes, that's the idea.

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.
The following user(s) said Thank You: rakuzen

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

Time to create page: 0.091 seconds
Powered by Kunena Forum