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

#   Add a string IVA in one user group

##

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

Less More

- Posts: 20
- Thank you received: 1
-
-

10 years 1 month ago [\#250896](#250896) by [parsifaltheking](/forum/user/35606-parsifaltheking "View parsifaltheking's Profile")  *[Add a string IVA in one user group](/forum/26-product-category-display/886620-add-a-string-iva-in-one-user-group#250896 "-- HikaShop version -- : 2.6.4. -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : firefox 49  Hi, with cron every night i import in the system 9000 objects with price&#95;with&#95;tax field. Thereis tre type of users: - the user that are not registered show the price full with tax (works) - the new registered user go in client group and after login show full price - 25% discount (works) - the wholesalers after login show full price - 50% discount ( work) but i 've to add on every price the string + I.V.A. only for this groups. I don't wont to calulate it but only show this text. How i can do to obtain the last request? Thanks")* was created by *[parsifaltheking](/forum/user/35606-parsifaltheking "View parsifaltheking's Profile")*

-- HikaShop version -- : 2.6.4.
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.26
-- Browser(s) name and version -- : firefox 49

Hi, with cron every night i import in the system 9000 objects with price_with_tax field.
Thereis tre type of users:
- the user that are not registered show the price full with tax (works)
- the new registered user go in client group and after login show full price - 25% discount (works)
- the wholesalers after login show full price - 50% discount ( work) but i 've to add on every price the string + I.V.A. only for this groups. I don't wont to calulate it but only show this text.
How i can do to obtain the last request?
Thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 1 month ago [\#250897](#250897) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add a string IVA in one user group](/forum/26-product-category-display/886620-add-a-string-iva-in-one-user-group#250897 "-- HikaShop version -- : 2.6.4. -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : firefox 49  Hi, with cron every night i import in the system 9000 objects with price&#95;with&#95;tax field. Thereis tre type of users: - the user that are not registered show the price full with tax (works) - the new registered user go in client group and after login show full price - 25% discount (works) - the wholesalers after login show full price - 50% discount ( work) but i 've to add on every price the string + I.V.A. only for this groups. I don't wont to calulate it but only show this text. How i can do to obtain the last request? Thanks")*

Hi,

You'll have to edit the file "listing_price" and add some custom code to check the current user's user group: Code:

&lt;?php $user = JFactory::getUser(); $userid = $user-&gt;get('id'); $groups = JAccess::getGroupsByUser($userid); if(in_array(XXX,$groups)){ echo '+ IVA'; } ?&gt;

where XXX is the id of the group.

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

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