User points and emails

  • Posts: 1119
  • Thank you received: 114
7 years 2 weeks ago #264454

Hi,

In the email order creation used user points shows fine but in any other emails like changing to confirmed or shipped used user points isn't showing.
It just shows " used points: 0.00 € " then as example it should be " used points: -30 points ".

All fine for order created but not when you change status.

Thanks

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
7 years 2 weeks ago #264457

Hi,

Please indicate your HikaShop version number.
Can you also please confirm that you do not have any email override ?
Which email are you talking about exactly ; the administrator notification ? The customer notification ? The manual email ?

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.

  • Posts: 1119
  • Thank you received: 114
7 years 2 weeks ago #264487

Hi,

HikaShop Business 3.0.1 [1703071721]

I can confirm that i noticed when i was customizing emails and as i remember same was with 2.6.4 version.

I have removed all my emails customization to be sure its hikashop default and now i don't even get points used in order created email. Its just show 0.00 eur.
I have attached some screenshots.
It should show -32 points used...

Same issue with admin email.

Update. I have done more testing and found that in back end order edition page where additional information it shows that points used 0.00 eur. I have attached one more screenshot.

Attachments:
Last edit: 7 years 2 weeks ago by kyratn.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
7 years 2 weeks ago #264592

Hi,

Thank you for your feedback. We've added a patch for that.

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

  • Posts: 1119
  • Thank you received: 114
7 years 2 weeks ago #264596

Hi,

I have updated and i see it is working. However it does not with my preload customization. Could you please tell me on witch line and where i should take a look?

Thanks

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

  • Posts: 1119
  • Thank you received: 114
7 years 2 weeks ago #264597

Found it. All working. Thank you for great support!

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
7 years 2 weeks ago #264598

Hi,

We didn't change any code in the preload of any email unfortunately :)
The patch was located in the file administrator/components/com_hikashop/classes/order.php

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

  • Posts: 1119
  • Thank you received: 114
7 years 2 weeks ago #264660

Hi,

Well, I did update and it still wasn't working. So I have looked into 3.0.1 preload version and found that I had to change this:

if(!empty($additional->order_product_price) || empty($additional->order_product_options)) {

to this:
if( (!empty($additional->order_product_price) && ($additional->order_product_price > 0) ) || empty($additional->order_product_options)) {

I had 2.6.4 preload version.

It looks like it is working now.

Thanks Nicolas and all hikashop team for brilliant support.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.073 seconds
Powered by Kunena Forum