... and yet another update. Well, more of a wrap-up.
Sorry for all the long bla-bla, but since the issue seems to be"new" and I've tried to dig in as I hoped I could get it resolved in the not-so-distant future, I thought I share all my findings here.
So, here we go:
1.) Easy to do, so for now I'm going for DIY.
2.) Small code change, but only the tip of the iceberg: it doesn't solve everything.
3.) Partially solved with the fix of 2., and requiring changes in views, plus in my case also PDF invoice.
4.) Looks like I found a way to fix this issue in the email preloads... of course, several of them, and not all being the same (see above: payment notification to admin is different, obviously). As stated, more complex than anticipated.
5.) Solved in view override.
However, some things fixed, and another one comes up:
6.) Also in the "footer" of the checkout cart, things go haywire if:
- payment of order in full with points (as always in this thread)
- shipping to be included in points payment (as per config)
- there is shipping cost for this order (in this case export... had so far tried free shipping only)
The checkout cart footer then looks like this example:
Subtotal: 35.00
Shipping: 10.00
Coupon: -45.00 (from points used)
Total: 10.00
Not only is the display wrong here... no, the system also insists on these 10.00 to be paid. Aaahhh...!
And fixing this seems to be even more complex.
Bottom line:
After two full days spent on this, getting some of it fixed but no end in sight, I reckon the HikaShop User Points
payment plugin in its current state is not fit for full payment of orders with points.
Since points earning is working fine, the HikaShop User Points plugin itself is seemingly not to blame. Hence, it's pointless (pun intended
) to consider AltaUserPoints or else.
These things do happen, perhaps as a result of HikaShop's "organic growth" over the years (which is a good thing, generally). Whatever the cause: I'm now giving up trying to fix it, reverse my mods and, as a "workaround", instead try to convince my client to allow only partial payment with points up to a certain percentage of order value... praying that he'll accept and that this will work flawlessly in the system once configured...
Just for the record, I can't see "virtual points" as a valid alternative as this appears to be not the same at all.
Case
not closed: of course, it'll be great if it'd work correctly out of the box as configured, incl math and results in checkout once shipping gets involved, and be displayed correctly everywhere.
Seeing how much seems to be involved in a complete fix, I'm pretty sure it can't happen over night. Ok, as far as I'm concerned: better well than rush-rush. So, as said before, I'll keep an eye on future changelogs, hoping that in the meantime my client accepts the "workaround" of limiting points spending.
Thanks for reading and considering, no need for a long reply with detailed explanations or so. Instead keep up your good work on code!