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

#   Group calculations

##

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

Less More

- Posts: 53
- Thank you received: 0
-
-

11 years 8 months ago [\#193140](#193140) by [oharris](/forum/user/946-oharris "View oharris's Profile")  *[Group calculations](/forum/27-checkout/875410-group-calculations#193140 "-- HikaShop version -- : 2.4 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4.37  I am preparing a registration form for a conference. There is one price for Members (USD 535) &amp; another price for Non-Members (USD 610). However, one person can register a group of Members (minimum of 5 members), but a discounted rate (USD 515) is to be applied to each Member registered as a group.  How can I apply this discounted rate when a group of 5 or more member are registered?")* was created by *[oharris](/forum/user/946-oharris "View oharris's Profile")*

-- HikaShop version -- : 2.4
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.37

I am preparing a registration form for a conference. There is one price for Members (USD 535) &amp; another price for Non-Members (USD 610). However, one person can register a group of Members (minimum of 5 members), but a discounted rate (USD 515) is to be applied to each Member registered as a group.

How can I apply this discounted rate when a group of 5 or more member are registered?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#193149](#193149) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Group calculations](/forum/27-checkout/875410-group-calculations#193149 "-- HikaShop version -- : 2.4 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4.37  I am preparing a registration form for a conference. There is one price for Members (USD 535) &amp; another price for Non-Members (USD 610). However, one person can register a group of Members (minimum of 5 members), but a discounted rate (USD 515) is to be applied to each Member registered as a group.  How can I apply this discounted rate when a group of 5 or more member are registered?")*

Hi,

There is no options for that by default, but via a plugin or potentially a third component that could be done.
If you create a new group, like "discount_group", add the price of USD 515 to the desired product and restrict the price access to the group previously created.

Then, when the customer register, he can be added to a group, so you have to do some checks to see in which group he is added, and use code to check how many users are in this group. If there is less than 4 users, so do nothing, but if there is 4 users, add all of them to the "discount_group", else if there is already more than 4 users, so just add the current user to the discount_group.

You can potentially create a plugin based on the function onBeforeUserCreate(&amp;$element,&amp;$do), onBeforeUserUpdate(&amp;$element,&amp;$do).

Hope this will help you.

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

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

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