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

#   Terms and condition depends on usergroups?

##

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#73326](#73326) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  *[Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#73326 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")* was created by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")*

We have created some user groups and categorizes existing customers in these.
Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?

/EDIT: have placed this topic in a wrong category..

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Last edit: 14 years 2 weeks ago by [holm76](/forum/user/9743-holm76 "View holm76's Profile").

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

14 years 2 weeks ago -  14 years 2 weeks ago [\#73393](#73393) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#73393 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

Hi,

You can try to edit the view "checkout / terms" and use this code: Code:

&lt;div id="hikashop_checkout_terms" class="hikashop_checkout_terms"&gt; &lt;?php $user =&amp; JFactory::getUser(); $individual = 1; foreach($user-&gt;groups as $group){ if($group != '8'){ $individual = 0; } } if($individual){ ?&gt; &lt;input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" value="1" &lt;?php echo $this-&gt;terms_checked; ?&gt; /&gt; &lt;?php } $text = JText::_('PLEASE_ACCEPT_TERMS_BEFORE_FINISHING_ORDER'); $terms_article = $this-&gt;config-&gt;get('checkout_terms'); if(!empty($terms_article)){ JHTML::_('behavior.modal'); $text = '&lt;a href="'.JRoute::_('index.php?option=com_content&amp;view=article&amp;id='.$terms_article.'&amp;tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank"&gt;'.$text.'&lt;/a&gt;'; } ?&gt; &lt;label for="hikashop_checkout_terms_checkbox"&gt;&lt;?php echo $text; ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;?php if(!$individual){ ?&gt; &lt;input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" value="1" &lt;?php echo $this-&gt;terms_checked; ?&gt; /&gt; &lt;script type="text/javascript"&gt; document.getElementById('hikashop_checkout_terms').style.display = 'none'; document.getElementById('hikashop_checkout_terms_checkbox').style.display = 'none'; &lt;/script&gt; &lt;?php } ?&gt;

Change the number '8' by the id of your individual group.

Last edit: 14 years 2 weeks ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 1 week ago [\#74111](#74111) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#74111 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

what if I have more groups, is it then with commas between or how to do

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

14 years 1 week ago [\#74243](#74243) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#74243 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

Hi,

In the "if" condition you can add more group id like in this example: Code:

if($group != '8' &amp;&amp; $group != '9' &amp;&amp; ...){

The following user(s) said Thank You: [holm76](/forum/user/9743-holm76 "View holm76's Profile")

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 1 week ago [\#74498](#74498) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#74498 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

Hello
I have now made ​​the changes you propose. It works when checkbox is no longer visible. But when I test a purchase with it, the system will still have to be checked. The field is no longer displayed and therefore I can not continue ..

Is it possible to remove this?

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

14 years 1 week ago [\#74542](#74542) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#74542 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

Instead of Code:

$group != '8' &amp;&amp; $group != '9'

Can you try: Code:

$group == '8' &#124;&#124; $group == '9'

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 6 days ago [\#75060](#75060) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#75060 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

I have made the proposed amendment and at first glance it seems.
but maybe not, when I would go further payment is not checked (set it to the invoice) and when I feel it in the radiobuton, says that I must accept the terms

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

14 years 5 days ago [\#75242](#75242) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Terms and condition depends on usergroups?](/forum/2-general-talk-about-hikashop/73326-terms-and-condition-depends-on-usergroups#75242 "We have created some user groups and categorizes existing customers in these. Is it possible that you can set the shop so that only the individual user to accepetere terms and condition when they purchase?  /EDIT: have placed this topic in a wrong category..")*

Hi,

try to replace: Code:

if(!$individual){ ?&gt; &lt;input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" value="1" &lt;?php echo $this-&gt;terms_checked; ?&gt; /&gt;

By: Code:

if(!$individual){ ?&gt; &lt;input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" value="1" checked="checked" /&gt;

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

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