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

#   multiple item by order to add multiple access groups

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

8 years 19 hours ago [\#299678](#299678) by [ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")  *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299678 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")* was created by *[ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")*

-- url of the page with the problem -- : [ ecnimagerie.fr](https://ecnimagerie.fr)
-- HikaShop version -- : 4.0.0
-- HikaSerial version -- : 2.2.0
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome 69.0.3497.100
-- Error-message(debug-mod must be tuned on) -- : missing groupe

Hello all,

I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product "HikaSerial".
I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site.
it can for example buy the product in Hikashop named "I-Module Orthopedic", the product is connected to a plan that activates the subscription.
the subscription assigns a group to the user for a defined time.

My problem is:
If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.

I do not understand why. moreover we see in the "Subscription" that the 2 subscriptions are active.

on my website:
1 article Hikashop = 1 plan = access to a group
the user can buy several items at the same time
I would like it to add all the groups at once.

thank

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODk2MDY5LW11bHRpcGxlLWl0ZW0tYnktb3JkZXItdG8tYWRkLW11bHRpcGxlLWFjY2Vzcy1ncm91cHM/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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

8 years 11 hours ago [\#299709](#299709) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299709 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")*

Hello,

Thanks for that report ; We will have to reproduce the issue in our end to perform a real investigation.
Do you have seen such kind of issue if a customer bought two subscriptions in two different orders ?
Like that, by checking the code I don't see any problem but it might be possible that the Joomla cache is not refreshing so when the second subscription is handle by the "group subscriber" plugin, it do not see the modification made just before.. That the first idea I have in mind... But I would need some details and test to confirm it (and find an appropriate patch)

Regards,

---

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

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

7 years 11 months ago [\#299742](#299742) by [ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")  Replied by *[ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")* on topic *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299742 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")*

do you want access to the website to test?
I have concrete examples on the site where a user has ordered 2 articles (representing 2 distinct subscriptions) without having the two joomla group of attributed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODk2MDY5LW11bHRpcGxlLWl0ZW0tYnktb3JkZXItdG8tYWRkLW11bHRpcGxlLWFjY2Vzcy1ncm91cHM/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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

7 years 11 months ago [\#299744](#299744) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299744 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")*

Hello,

I do not need to see the problem in your website, I trust you.
But in order to investigate, I need to reproduce it ; so I need some details about your settings.
As I wrote, we need to reproduce it in our end ; not in your website but when in one of our own, where we can do some full debug.

Regards,

---

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

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

7 years 11 months ago [\#299837](#299837) by [ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")  Replied by *[ecnimagerie](/forum/user/37622-ecnimagerie "View ecnimagerie's Profile")* on topic *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299837 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")*

Hi,

please see attachments

do you need other information ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODk2MDY5LW11bHRpcGxlLWl0ZW0tYnktb3JkZXItdG8tYWRkLW11bHRpcGxlLWFjY2Vzcy1ncm91cHM/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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

7 years 11 months ago [\#299857](#299857) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[multiple item by order to add multiple access groups](/forum/17-serial-how-to/896069-multiple-item-by-order-to-add-multiple-access-groups#299857 "-- url of the page with the problem -- :   ecnimagerie.fr  -- HikaShop version -- : 4.0.0 -- HikaSerial version -- : 2.2.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome 69.0.3497.100 -- Error-message(debug-mod must be tuned on) -- : missing groupe  Hello all,  I have a problem, but I do not know if it is the result of a configuration problem or a constraint on the product &quot;HikaSerial&quot;. I use hikaserial to sell access to my website. Indeed, a user can buy 1 or more access to different levels of the site. it can for example buy the product in Hikashop named &quot;I-Module Orthopedic&quot;, the product is connected to a plan that activates the subscription. the subscription assigns a group to the user for a defined time.  My problem is: If a user buys 2 products at the same time having 1 different plan: Example: I buy Orthopedic I-Module (which assigns the Orthopedic group for 12 months) + neurological i-module (which assigns Neurological group for 12 months) all pass well rated Hikashop. but the user has only one of the two assigned groups.  I do not understand why. moreover we see in the &quot;Subscription&quot; that the 2 subscriptions are active.  on my website: 1 article Hikashop = 1 plan = access to a group the user can buy several items at the same time I would like it to add all the groups at once.  thank")*

Hello,

In the plugin "plugins/hikaserial/groupsubscriber/groupsubscriber.php" you will find the line 4 times : Code:

$userGroups = JAccess::getGroupsByUser($user_id, true);

You need to past that line just before each of them Code:

JAccess::clearStatics();

It would force the clean of the cache so the function will get the user groups from the database and not from its session.
Otherwise, when the plugin change the groups for the first subscription, during the second subscription Joomla give him the old group list and the previous modifications are lost.

Regards,

---

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

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

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

[](#top)
