Paying with virtual points issue

  • Posts: 27
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
8 years 1 month ago #251659

-- HikaShop version -- : 2.6.4

Hi

I believe I found a bug related to payment with points where virtual points is activated.
Please see the video here displaying the issue:

dl.dropboxusercontent.com/u/2592749/hika...tualpoints_issue.mp4

There are 2 issues in the video, one major one.

I hope you can confirm the issue.

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #251661

Hi,

Well, looking at your video, it does seems some things could be improved with the virtual points system, but it doesn't necessarily means that there is a bug.
It's possible that this could happen if you configured your points plugins to give more points than it is necessary to pay for the order.
If you gain 2 points per euro but that it only costs 1 point for each euro to pay for the order, then you'll actually be able to purchase the products for free and earn points at the same time. And that might explain why the system behaves strangely in that case, as that's usually not something you want to do.
I didn't get to see all the settings of all your points plugins in your video and the backend access you had provided before doesn't work anymore so I can't say whether it's that or not, but it could be a plausible scenario.
Could you check on that and provide the screenshots of the settings of your points plugins ?

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
8 years 1 month ago #251720

Hi

I have reactivated your backend access so you can see. :-)

If it was an issue with "to many points given" (don't believe it is) then why is no points removed from users account, only points given. Altså the fact that this strange behaviour only occurs when user has zero points - not if user has e.g. 1 point, trying to buy the same item.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #251889

Hi,

If you want to use the "virtual points", you also need to use the "virtual coupon" ; otherwise you enter in configuration which cannot be supported by the plugin.

Please note that the "virtual points" is an option added into the plugin from a "feature request" but is not a full supported feature because the plugins wasn't design for such kind of case.
The setting allow the user to have virtually the points of products in his cart before confirming the order.
That is why you need to use the "virtual coupon" in the same time because it allow to generate dynamically the discount in the cart depending the user points. While the original behavior is to use the points to create a coupon.
So generating a coupon with points that the user do not have yet and might not buy at the end.. Is a contradiction.

Once you have created an order, you will be able to find in the database column "order_payment_params" a PHP serialize object.
In that object there will be information from the "user points" plugin, like the number of points used and the number of points earned.
It allows the plugin to give or retrieve the points depending the modification of the order status.

I hope these explanations will help you to understand how the "user points" plugin is working.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum