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

#   Userpoint Additional Information Has Been Overrided

##

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

Less More

- Posts: 575
- Thank you received: 11
-
-

3 years 8 months ago [\#350556](#350556) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  *[Userpoint Additional Information Has Been Overrided](/forum/29-payment-methods/906166-userpoint-additional-information-has-been-overrided#350556 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4  Hi, I had met one problem during the development of my website. When I added a plugin which will add additional information to the cart, the new information overrides the current user point information in the additional section. When I use the 'Pay With Points' option, the user point plugin will get the first additional price which has been overriding by my additional info.  The code that I had temporarily to fix is at:  hikashop userpoints plugin Location: plugins/hikashop/userpoints/userpoints.php  Line 350 needs to add the condition to help the function to determine the deduction point. The difference between $order-&gt;additional&#91;0&#93; &amp; $order-&gt;additional&#91;1&#93; is if there is a buy 1 free 1 plugin available, the plugin in additional parameters in the cart will be the first one &#91;0&#93;, if there is no plugin the, the userpoint in additional parameters in the cart will be the first one &#91;0&#93;  The image has been shown in the attachment below")* was created by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")*

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4

Hi, I had met one problem during the development of my website. When I added a plugin which will add additional information to the cart, the new information overrides the current user point information in the additional section. When I use the 'Pay With Points' option, the user point plugin will get the first additional price which has been overriding by my additional info.

The code that I had temporarily to fix is at:

**hikashop userpoints plugin**
Location: plugins/hikashop/userpoints/userpoints.php

Line 350 needs to add the condition to help the function to determine the deduction point.
The difference between $order-&gt;additional[0] &amp; $order-&gt;additional[1] is if there is a buy 1 free 1 plugin available, the plugin in additional parameters in the cart will be the first one [0], if there is no plugin the, the userpoint in additional parameters in the cart will be the first one [0]

The image has been shown in the attachment below

- [ ![a1364106.png](/forum/attachment/56792) ](/forum/attachment/56792 "a1364106.png") [ ](/forum/attachment/56792?download=1 "a1364106.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDYxNjYtdXNlcnBvaW50LWFkZGl0aW9uYWwtaW5mb3JtYXRpb24taGFzLWJlZW4tb3ZlcnJpZGVkP3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

3 years 8 months ago [\#350581](#350581) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Userpoint Additional Information Has Been Overrided](/forum/29-payment-methods/906166-userpoint-additional-information-has-been-overrided#350581 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4  Hi, I had met one problem during the development of my website. When I added a plugin which will add additional information to the cart, the new information overrides the current user point information in the additional section. When I use the 'Pay With Points' option, the user point plugin will get the first additional price which has been overriding by my additional info.  The code that I had temporarily to fix is at:  hikashop userpoints plugin Location: plugins/hikashop/userpoints/userpoints.php  Line 350 needs to add the condition to help the function to determine the deduction point. The difference between $order-&gt;additional&#91;0&#93; &amp; $order-&gt;additional&#91;1&#93; is if there is a buy 1 free 1 plugin available, the plugin in additional parameters in the cart will be the first one &#91;0&#93;, if there is no plugin the, the userpoint in additional parameters in the cart will be the first one &#91;0&#93;  The image has been shown in the attachment below")*

Hi,

Thanks for the feedback.
That's something we apparently already fixed as there is no such code on our end in recent versions of HikaShop for the plugins/hikashop/userpoints/userpoints.php file.
We actually use text keys for the additional array :
[ i.imgur.com/4cL7QZJ.png](https://i.imgur.com/4cL7QZJ.png)
So I suppose the problem would have fixed itself if you had updated HikaShop.

The following user(s) said Thank You: [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")

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

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

Less More

- Posts: 575
- Thank you received: 11
-
-

3 years 8 months ago [\#350658](#350658) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Userpoint Additional Information Has Been Overrided](/forum/29-payment-methods/906166-userpoint-additional-information-has-been-overrided#350658 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.4  Hi, I had met one problem during the development of my website. When I added a plugin which will add additional information to the cart, the new information overrides the current user point information in the additional section. When I use the 'Pay With Points' option, the user point plugin will get the first additional price which has been overriding by my additional info.  The code that I had temporarily to fix is at:  hikashop userpoints plugin Location: plugins/hikashop/userpoints/userpoints.php  Line 350 needs to add the condition to help the function to determine the deduction point. The difference between $order-&gt;additional&#91;0&#93; &amp; $order-&gt;additional&#91;1&#93; is if there is a buy 1 free 1 plugin available, the plugin in additional parameters in the cart will be the first one &#91;0&#93;, if there is no plugin the, the userpoint in additional parameters in the cart will be the first one &#91;0&#93;  The image has been shown in the attachment below")*

Alright~ Thanks for letting me know~

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

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