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

#   No user points added after confirmed order

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#196009](#196009) by [bpm](/forum/user/5224-bpm "View bpm's Profile")  *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196009 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")* was created by *[bpm](/forum/user/5224-bpm "View bpm's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- Browser(s) name and version -- : Chrome

I have created:
- the custom field user_points
- a product inside category "credits"
- a new plugin userpoint, published with the following parameters:

[ ![parameters.jpg](/forum/attachment/23300) ](/forum/attachment/23300 "parameters.jpg")

When i try to buy a product inside category "credits" no points are added to the user.

Thanks

- [ ![parameters.jpg](/forum/attachment/23300) ](/forum/attachment/23300 "parameters.jpg") [ ](/forum/attachment/23300?download=1 "parameters.jpg")

Last edit: 11 years 6 months ago by [bpm](/forum/user/5224-bpm "View bpm's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzU5MDktbm8tdXNlci1wb2ludHMtYWRkZWQtYWZ0ZXItY29uZmlybWVkLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86285
- Thank you received: 14263
-
-

11 years 6 months ago [\#196034](#196034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196034 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi,

It might be a bug of the 2.4.0. Could you try the fix of this thread:
[ www.hikashop.com/forum/payment-methods/8...n-in-2-4.html#194548](http://www.hikashop.com/forum/payment-methods/875616-payment-with-points-is-broken-in-2-4.html#194548)
It might help solve the problem.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago [\#196117](#196117) by [bpm](/forum/user/5224-bpm "View bpm's Profile")  Replied by *[bpm](/forum/user/5224-bpm "View bpm's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196117 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

My plugins/hikashoppayment/userpoints/userpoints.php has not the line commented on your link.
I have installed hikashop 2.4.0 downloaded on 2015-03-24 that fix a problem on tags, probably you have just fix also the problem on userpoint payment plugin.

But my problem is not on payment but on user points generation. After purchase no points are added to user.

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

11 years 6 months ago [\#196159](#196159) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196159 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi,

Please provide more details about your configuration.
It could be a lot of things, like :
* The plugin "hikashoppayment / userpoints" not published
* A custom field with the wrong name (even if you write it right here ; a lot of people just forgot the "_" in the custom field namekey)
* An order status which does not give the points to the user (and the user will have his points later with a correct order status according to your hikashop/plugin configuration)
* A problem in the algorithm which just have to process the points per category and not a conversion rate (it should work but it's still possible that there is a problem ; there is still an old algorithm that I want to exterminate)

Regards,

---

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

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago [\#196267](#196267) by [bpm](/forum/user/5224-bpm "View bpm's Profile")  Replied by *[bpm](/forum/user/5224-bpm "View bpm's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196267 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi Jerome, thank's for your help.
The user point custom field is correct (if I manually set user points for users from admin page I see correct user points on checkout page and users can use them to pay products). So the payment part is ok.
When I select a credit product on checkout I see a message as "You can earn 100 points with this order" so I belive that a credit product is set correctly to generate user points. But after transition (status confirmed, but i try also to set shipped status) no points are credit to users.

What details do you need about my config?

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

11 years 6 months ago [\#196282](#196282) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196282 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi,

in order to know if the plugin right process the points, the easier is to check in your database; the table "hikashop_order" have a column "order_payment_params" where you should see the points data, like: Code:

O:8:"stdClass":1:{s:10:"userpoints";O:8:"stdClass":2:{s:10:"use_points";i:0;s:11:"earn_points";a:1:{s:2:"hk";d:12;}}}

You also have to check that you right have the latest package/fixes for the plugin "hikashop / userpoints" ; specially for the line Code:

if(!isset($oldUser-&gt;user_points) &amp;&amp; !in_array('user_points', array_keys(get_object_vars($oldUser))))

Which was in the previous version Code:

if(!isset($oldUser-&gt;user_points) &amp;&amp; !in_array('user_points', get_object_vars($oldUser)))

You also have to check your HikaShop configuration for the setting "Invoice order statuses" and the setting of the plugin "hikashop / userpoints" in the Joomla part for the setting "Valid order statuses" (which should be empty if "invoice order statuses is right configured" for points compatible statuses).

Regards,

---

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

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#196395](#196395) by [bpm](/forum/user/5224-bpm "View bpm's Profile")  Replied by *[bpm](/forum/user/5224-bpm "View bpm's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196395 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi Jerome, problem solved. I checked "Invoice order statuses" as you suggest and it was blank. Now user points are credit but with an other problem.

When I set "Points earning on categories" no points are credit. I found a probably bug on hikashop/userpoints/userpoints.php at line 383: Code:

$this-&gt;_makeLevel($all_category_ids[$id-&gt;product_id], 0, $sub_categories);

the _makeLevel function return always an empty array.

I commented the _makeLevel foreach and the Code:

break 2;

in the following foreach and now it is ok (also summing points between multiple categories). I have not test with subcategories.

Last edit: 11 years 6 months ago by [bpm](/forum/user/5224-bpm "View bpm's Profile").

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

11 years 6 months ago [\#196417](#196417) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No user points added after confirmed order](/forum/3-bug-report/875909-no-user-points-added-after-confirmed-order#196417 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Chrome  I have created: - the custom field user&#95;points - a product inside category &quot;credits&quot; - a new plugin userpoint, published with the following parameters:  When i try to buy a product inside category &quot;credits&quot; no points are added to the user.  Thanks")*

Hi,

Thanks for the report.
It is not the first time that I want to rewrite this algorithm for the "points per categories" and I know that Xavier worked on a little re-factoring. I will see with him how his modifications progressed and we will update the plugin.
I rewrote a big part of the plugin but some code/features are still coming from the old "alphauserpoints" plugin.

Regards,

---

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

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

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

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

[](#top)
