Skip to main content

ACL default setting

10 years 1 month ago #251009 by ebordes
ACL default setting was created by ebordes
-- 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.

10 years 1 month ago #251091 by nicolas
Replied by nicolas on topic ACL default setting
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.

10 years 1 month ago - 10 years 1 month ago #251107 by ebordes
Replied by ebordes on topic ACL default setting
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: 10 years 1 month ago by ebordes. Reason: correction on question...

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

9 years 36 minutes ago #282960 by ebordes
Replied by ebordes on topic ACL default setting
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.

8 years 11 months ago #282963 by Jerome
Replied by Jerome on topic ACL default setting
Hello,

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

Regards,

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

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

8 years 11 months ago #282983 by ebordes
Replied by ebordes on topic ACL default setting
Thanks for the quick reply! What details do you need?

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

8 years 11 months ago #282989 by nicolas
Replied by nicolas on topic ACL default setting
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.

8 years 11 months ago - 8 years 11 months ago #283095 by ebordes
Replied by ebordes on topic ACL default setting
Thanks! Issue has been solved.
Last edit: 8 years 11 months ago by ebordes.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum