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

#   Vendor option productlimitation by ACL

##

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

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 5 months ago [\#204321](#204321) by [Nabo](/forum/user/33180-nabo "View Nabo's Profile")  *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204321 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")* was created by *[Nabo](/forum/user/33180-nabo "View Nabo's Profile")*

-- HikaShop version -- : 2.5.3
-- HikaMarket version -- : 1.6.2
-- Joomla version -- : 3.4.1

Hi,

I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?

thx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3NDI4LXZlbmRvci1vcHRpb24tcHJvZHVjdGxpbWl0YXRpb24tYnktYWNsP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 5 months ago [\#204341](#204341) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204341 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi,

Would it be possible to have more details about the vendor configuration (his groups) and the configuration of your vendor limitations ?

The product limitation value is returned by the function "checkProductLimitation" in the HikaMarket vendor class.
That function call the "config-&gt;vendorget" in order to get the value in the Vendor accesses depending the vendor groups
I have to perform some new tests but I do not see major modifications since the addition of the feature so your issue is interesting.

Regards,

---

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

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

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

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 5 months ago [\#204482](#204482) by [Nabo](/forum/user/33180-nabo "View Nabo's Profile")  Replied by *[Nabo](/forum/user/33180-nabo "View Nabo's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204482 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi,

I have two groups for the vendors with different limitations ( Künstler basic and Künstler Premium). Both are selected under a maingroup (Künstler). I set up the limitations for the vendor groups in the vendor options and not in the general settings of hikamarket. With this settings nothing happen. Than I try to set up the limitation by the general settings of hikamarket. If I test this configurations I get the the limitation from the general settings but the limitation from the vendor options doesn´t work. Do you have an idea?

I send you a PM with the access for the backup... Maybe I setup something wrong...

thx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3NDI4LXZlbmRvci1vcHRpb24tcHJvZHVjdGxpbWl0YXRpb24tYnktYWNsP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 5 months ago [\#204498](#204498) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204498 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi,

Thanks for the access.
I see that you do not have product limitation in your HikaShop configuration, so I think that's why the check is not processed correctly.
Can you please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace Code:

if($vendor_id &gt; 1 &amp;&amp; ($config_limitation &gt; 0 &amp;&amp; $vendor_limitation &gt;= 0) &#124;&#124; $vendor_limitation &gt; 0) {

Into Code:

if($vendor_id &gt; 1 &amp;&amp; ($vendor_limitation &gt; 0 &#124;&#124; $config_limitation &gt; 0)) {

It should fix the issue.

Regards,

---

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

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

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

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 5 months ago [\#204505](#204505) by [Nabo](/forum/user/33180-nabo "View Nabo's Profile")  Replied by *[Nabo](/forum/user/33180-nabo "View Nabo's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204505 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi Jerome,

I try your code but it shouldn´t fix the issue. I don´t see where the code check the ACL... Is that the problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3NDI4LXZlbmRvci1vcHRpb24tcHJvZHVjdGxpbWl0YXRpb24tYnktYWNsP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 5 months ago [\#204510](#204510) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204510 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi,

In the HikaMarket class product, for the function "frontSaveForm" Code:

if($vendorClass-&gt;checkProductLimitation($vendor) !== true) return false;

That code call the vendor class in order to know if the vendor have the right to create one more product.
And in the function "checkProductLimitation" you will find the line Code:

$vendor_limitation = $config-&gt;vendorget($vendor, 'product_limitation', 0);

which will read the value in the vendor accesses for the current vendor.

So it requires some more deep tests in order to reproduce the issue and find the right fix.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3NDI4LXZlbmRvci1vcHRpb24tcHJvZHVjdGxpbWl0YXRpb24tYnktYWNsP3RtcGw9bWFya2Rvd24=) 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)
-

11 years 5 months ago [\#204599](#204599) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204599 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

Hi,

I performed new tests on a new website and I realized that I had "wrong" configuration in my test site (so I cleaned it).
Please replace in the file "administrator/components/com_hikamarket/classes/config.php" Code:

$access = $this-&gt;get('vendor_options_opt_'.$group-&gt;id, '');

By Code:

$access = $this-&gt;get('vendor_options_acl_'.$group-&gt;id, '');

You can also keep the previous modification.

Regards,

---

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

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

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

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 5 months ago [\#204609](#204609) by [Nabo](/forum/user/33180-nabo "View Nabo's Profile")  Replied by *[Nabo](/forum/user/33180-nabo "View Nabo's Profile")* on topic *[Vendor option productlimitation by ACL](/forum/23-market-how-to/877428-vendor-option-productlimitation-by-acl#204609 "-- HikaShop version -- : 2.5.3 -- HikaMarket version -- : 1.6.2 -- Joomla version -- : 3.4.1  Hi,  I set up different productlimitation by ACL under access/vendor options, but it doesn´t work. When I set up a limitation in the general configuration I have no problems. So I need to set the limitation for different vendorgroups with different ACLs. How I can handle this? Why the vendor option doesn´t work?  thx")*

the problem is solved
thanks a lot!
regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3NDI4LXZlbmRvci1vcHRpb24tcHJvZHVjdGxpbWl0YXRpb24tYnktYWNsP3RtcGw9bWFya2Rvd24=) 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.069 seconds

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