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

#   Strange work of your Hikashop AlphaUserPoints Plug

##

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#104142](#104142) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104142 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")* was created by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")*

Hi,
I notice a bad behavior of you payment points plugin.
So, first i have this first points situation

[ ![point1.jpg](/forum/attachment/10175) ](/forum/attachment/10175 "point1.jpg")

I have this setting on your plugin

[ ![hikashop-point-plugin.jpg](/forum/attachment/10176) ](/forum/attachment/10176 "...int-plugin.jpg")

I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60

I set the order to payed and i have this situation

[ ![point-after-order-payed.jpg](/forum/attachment/10177) ](/forum/attachment/10177 "...rder-payed.jpg")

Then i set the order to confirmed and i have this

[ ![point-after-order-confirmed.jpg](/forum/attachment/10178) ](/forum/attachment/10178 "...-confirmed.jpg")

Finally i set the order to shipped and the final situation is

[ ![point-after-order-shipped.jpg](/forum/attachment/10179) ](/forum/attachment/10179 "...er-shipped.jpg")

The sistem gives me an amount of 72 points
But i must have only 15 points that are the points of my last purchase.
What's wrong?

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

- [ ![point1.jpg](/forum/attachment/10175) ](/forum/attachment/10175 "point1.jpg") [ ](/forum/attachment/10175?download=1 "point1.jpg")
- [ ![hikashop-point-plugin.jpg](/forum/attachment/10176) ](/forum/attachment/10176 "...int-plugin.jpg") [ ](/forum/attachment/10176?download=1 "...int-plugin.jpg")
- [ ![point-after-order-payed.jpg](/forum/attachment/10177) ](/forum/attachment/10177 "...rder-payed.jpg") [ ](/forum/attachment/10177?download=1 "...rder-payed.jpg")
- [ ![point-after-order-confirmed.jpg](/forum/attachment/10178) ](/forum/attachment/10178 "...-confirmed.jpg") [ ](/forum/attachment/10178?download=1 "...-confirmed.jpg")
- [ ![point-after-order-shipped.jpg](/forum/attachment/10179) ](/forum/attachment/10179 "...er-shipped.jpg") [ ](/forum/attachment/10179?download=1 "...er-shipped.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104175](#104175) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104175 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

You have a wrong configuration in the plugin.
In the option "Give points on statuses" you should list all "valid" statuses. So "shipped" should be in the list too.

Can you provide some text values instead of big screenshots, it is a little bit complicated to analyse the history of order/points.

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#104263](#104263) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104263 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Yes, now it is better but it is not perfect.
So I have theese order statuses:
-none
-created
-waiting payment
-payed
-confirmed
-on shipping
-shipped
-cancelled
-refunded
The statuse i like to give points is payed, confirmed, on shipping and shipped (set on "Give points on statuses").
When a customer make an order the status is created and the system picks up the points to make the discount. This is OK.
Then, if i set the order on waiting payment the system refund the points. This is bad!

If I go from the order status created to the confirmed status directly the points system work well.
But i can not jump the waiting payment status and I can not give the point untill the order is payed.
What can i do to fix that?

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104400](#104400) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104400 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

Please replace in the plugin Code:

if( !empty($order-&gt;order_status) &amp;&amp; $order-&gt;order_status != $this-&gt;previousOrderStatus &amp;&amp; !in_array($order-&gt;order_status, $confirmed) &amp;&amp; (in_array($this-&gt;previousOrderStatus, $confirmed) &#124;&#124; $this-&gt;previousOrderStatus == $created) ){

By Code:

if( !empty($order-&gt;order_status) &amp;&amp; $order-&gt;order_status != $this-&gt;previousOrderStatus &amp;&amp; !in_array($order-&gt;order_status, $confirmed) &amp;&amp; in_array($this-&gt;previousOrderStatus, $confirmed) ){

It will fix the problem in your configuration.
I will make more tests in order to finish the patch (there are some specific cases to support).

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#104740](#104740) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104740 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,
i think there is something wrong on it.
I change the code on plugin&gt;hikashoppayment&gt;alphauserpoints&gt;alphauserpoint.php
After that when i manage the status order i have a system block with a white page. It is the same, on frontend, when i add something on my cart.
When i come back to the original code all of things go fine.

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104828](#104828) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104828 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

The white page should be a php error (error 500), but I test the file in my side, I didn't have such problem.
Please check if you had an error logged in the "php error log" for this specific file (the plugin file).

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago -  13 years 5 months ago [\#104839](#104839) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104839 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Ok, i tried again and now it works.
Maybe i made a mistake with a bracket.
:whistle:
Excuse me, Thanks!

Will it be on the next release or i have to keep it in mind?

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Last edit: 13 years 5 months ago by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104847](#104847) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104847 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

It will be.

Regards,

---

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

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#104945](#104945) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104945 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,
I'm sorry but i have another problem.
I set the access level for only registered user like this:

Access level Custom

Public
- - Manager
- - - - Administrator
X- - Registered
- - - - Author
- - - - - - Editor
- - - - - - - - Publisher
- - - - GAS
- - - - Rivenditori
- - Super Users

I tried with a GAS user and the plugin give me the discount
Why?

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104965](#104965) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104965 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

GAS is under Registered. So I do not see any dysfunction.

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#104975](#104975) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#104975 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Excuse me, i'm sorry
But I can not understand haw does it work.
Yes Gas is under registered but i did'nt select the GAS. So, if i'll select registered it is like if i select all the user under registered without choice. Isn't it?

And also i tried with this:

Public
- - Manager
- - - - Administrator
- - - - GAS
X- - Registered
- - - - Author
- - - - - - Editor
- - - - - - - - Publisher
- - - - Rivenditori
- - Super Users

where GAS is under administrator and i selected only registered
The system give discount also to GAS. Is it ok for you?
If yes ...
How can i do to have a level forbidden to the discount?

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#105010](#105010) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105010 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

Please edit again the payment plugin and add the indicated code: Code:

function onAfterCartProductsLoad(&amp;$cart) { $method = $this-&gt;getMethod(); if(@$method-&gt;payment_params-&gt;virtual_coupon) { // Begin: code to add if(hikashop_level(2) &amp;&amp; !hikashop_isAllowed($method-&gt;payment_access)) return; // End: code to add if(isset($cart-&gt;additional['aup'])) return;

It will test the user access even if the payment plugin is only called by triggers (and not filtered in the payment listing).

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#105071](#105071) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105071 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

I'm not very good to php program.
So, could you explain better how i have to add the code, please?
I tried just with a copy and paste at the end of the plugin code but the system goes block/error.

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#105098](#105098) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105098 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

It is the same thing are before when I gave you some code. Instead of, there is no replacement but insertion.
But finally, it is same process.

Replace Code:

function onAfterCartProductsLoad(&amp;$cart) { $method = $this-&gt;getMethod(); if(@$method-&gt;payment_params-&gt;virtual_coupon) { if(isset($cart-&gt;additional['aup'])) return;

By: Code:

function onAfterCartProductsLoad(&amp;$cart) { $method = $this-&gt;getMethod(); if(@$method-&gt;payment_params-&gt;virtual_coupon) { if(hikashop_level(2) &amp;&amp; !hikashop_isAllowed($method-&gt;payment_access)) return; if(isset($cart-&gt;additional['aup'])) return;

Regards,

---

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

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#105120](#105120) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105120 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Yes,
now i understand and it works. ![;)](/media/kunena/emoticons/24.png ";)")
Thanks a lot, Jerome!

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

13 years 5 months ago [\#105123](#105123) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105123 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Please, Just to understand the entire plugin could you explain me what is the use of:

Images
Price € EUR
Percentage %

I've looked for on the help instruction but there is any instruction.

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTkyOC1zdHJhbmdlLXdvcmstb2YteW91ci1oaWthc2hvcC1hbHBoYXVzZXJwb2ludHMtcGx1Zz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#105130](#105130) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Strange work of your Hikashop AlphaUserPoints Plug](/forum/3-bug-report/81928-strange-work-of-your-hikashop-alphauserpoints-plug#105130 "Hi, I notice a bad behavior of you payment points plugin. So, first i have this first points situation  I have this setting on your plugin  I do a purchase of Euro 15,40 plus Euro 8 of shipping cost: the total is 23,40 - euro 1,80 for 36points = Euro 21,60  I set the order to payed and i have this situation  Then i set the order to confirmed and i have this  Finally i set the order to shipped and the final situation is  The sistem gives me an amount of 72 points But i must have only 15 points that are the points of my last purchase. What's wrong?")*

Hi,

It is generic options of payment plugins when the plugin is used as a payment method (display as a payment method in the checkout).

Regards,

---

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

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

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

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