ACL default setting

  • Posts: 18
  • Thank you received: 1
8 years 5 months ago #251009

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.26
-- Browser(s) name and version -- : Firefox and Chrome

Hi there,

I'm looking for the option to set the ACL value's when creating a new product by default allon except guests. Now it's by default alloff and I need to set them on by hand with every new product?

Thanks for any input!

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
8 years 5 months ago #251091

Hi,

You can edit the file administrator/components/com_hikashop/views/product/view.html.php and add the line:
$obj->price_access = ',XXX,YYY,ZZZ,';
after the line:
$obj->price_value = 0;
where XXX, YYY and ZZZ are the user groups id that you want by default (note the starting and ending commas).

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

  • Posts: 18
  • Thank you received: 1
8 years 5 months ago #251107

Hi Nicolas, thanks for your reply but I can't find the line : $obj->price_value = 0; in the file /components/com_hikashop/views/product/view.html.php

Please advice, thanks!

OEPS, wrong file, got it! ;)

Last edit: 8 years 5 months ago by ebordes. Reason: correction on question...

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

  • Posts: 18
  • Thank you received: 1
7 years 3 months ago #282960

Since the update to HikaShop Business 3.2.1 on Joomla 3.8.2 teh default setting for the ACL is not working anymore as edited? I've added the line as suggested before in the file view.html.php but teh default for new products is not effected now?

Please advise.

Thanks!

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

  • Posts: 26205
  • Thank you received: 4032
  • MODERATOR
7 years 3 months ago #282963

Hello,

Can you please provide details about your product (price) configuration ?

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: 18
  • Thank you received: 1
7 years 3 months ago #282983

Thanks for the quick reply! What details do you need?

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
7 years 3 months ago #282989

Hi,

Since HikaShop 3.1.0, the prices edition area of HikaShop has been redone to be more dynamic and flexible.
As the code changed, the modification is a bit different.
You need to add that line of code :
$price->price_access = ',XXX,YYY,ZZZ,';
after the line:
$price->price_id = 0;
in the same administrator/components/com_hikashop/views/product/view.html.php to do that.

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

  • Posts: 18
  • Thank you received: 1
7 years 3 months ago #283095

Thanks! Issue has been solved.

Last edit: 7 years 3 months ago by ebordes.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum