Points not calculated in backend order

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204001

-- HikaShop version -- : 2..4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : Point of order created in backend not calculated

Hi

We found that the userpoint plugin is not working for order created directly in backend, frontend point is working perfectly for both AUP and HK

And also backend order category explorer is not showing at all, we have to filter out the product and variants name from filter to enter order in backend

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 5 months ago #204012

Hi,

1. I don't see any issue. The points are properly given to the customer when the order is confirmed from the backend, regardless of whether it was first created from the backend or the frontend. And I can confirm that in the code of the user points system that I checked.
So maybe it's something to do with the way you created the order ? For example, if you don't assign a customer to the order, or if you do it after you confirmed the order, or if you add the products after you already confirmed the order. In all these cases, the points won't be added to the customer.
Maybe you could provide a precise step by step of what you do in the backend so that we could try to reproduce the issue?

2. Again the category explorer displays fine in the product selection popup of orders. Did you maybe turned it off in the Display settings of the HikaShop configuration ?

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204061

I had check backend configuration of categories explorer and sure it is turn on

however, my case is that the explorer shown, but there are no categories show, even root is missing

attached screen shot for your reference



for points, i had made a new installation, confirm points is awarded with frontend order, but when it come to backend order the point is no recorded in database again, i had entered all customer info as well as address and back to the order listing to confirm the order

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 5 months ago #204077

Hi,

For the explorer, it looks like an issue with the category tree in the database. Go in the Products>Categories menu and click on the "rebuild" button there and that will reconstruct the category tree, hopefully fixing the problem.

For points, I see that you opened another thread for the same issue where you specify that you customized the user points plugin. Please continue the discussion there and avoid posting messages for the same issue through several threads:
www.hikashop.com/forum/3-bug-report/8768...e-than-1.html#204032

The following user(s) said Thank You: ler@singmuiheng.com

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204163

Thanks nicolas, the rebuild fix the problem

i had removed the point customization and test on new install, it is the same that backend order is not calculated for points, thus i believe is independent issue

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204195

I had do some debugging and found that function getPointsEarned($order) is not triggered at all while doing backend order entry

Please advise where is the part to trigger function getPointsEarned($order) during backend order

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 5 months ago #204213

Hi,

Like I told to Nicolas yesterday ; The points are processing when the order is created.
It stored the data in the "order_payment_params" and it allow the plugin to know the points to give or to retrieve depending the order status modifications.
But the points are just processed once, when the order is created.

And because you create an empty order in the backend (when using the "new" button) the points can't be processed.
At this moment the best will be to add a feature to allow you to reprocess the points in an order ; like the "refresh association" button in HikaSerial.

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: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204302

So i believe this consider a bug?

Not sure if i am getting your meaning correctly

So if i change the order status from confirm to created again the point will be processed?

Or if involve coding change please help enlighten where is the part involve so that we can make changes and share to every one like the previous custom points per products

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 5 months ago #204329

Hi,

It is not a bug.
The fact that the points are processed when the order is created is in fact a fix for a lot of issues that we had with points in the front-end.

To resume :
When the order is created the points are determined (what the user will earn, what is used).
When the order status change, depending the status the user will earn or lose points depending the points which are been determined during the order creation.

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: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #204334

Like what I said the point are not processed during backend order, the param in databse is always empty on current logic

A copy of the same order will trigger the point proccesing in new copy and store in param field

So it is confirm a bug when there is no way to get correct point during normal order entry in backend


Please help to enlightenment where is these piece of code for order status trigger so that we can help to correct it

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 5 months ago #205224

Hi, wonder if the backend order point calculation method have been confirmed as a bug?

The only way to trigger backend point calculation is now to create a order (which will have empty point parameter) and then save & close, select this created order and duplicate, the duplicated order will have correctly calculated point parameter in database

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 5 months ago #205284

Hi,

As explained in my two previous messages ; that's not a bug and considering that fact as a bug will introduce big and important new bugs in the front-end (like it was before).
So no, it's not a bug and it won't be considered as a bug.
I can be considered as a missing features ; but not as a bug.

It is not a bug.
The fact that the points are processed when the order is created is in fact a fix for a lot of issues that we had with points in the front-end

At this moment the best will be to add a feature to allow you to reprocess the points in an order ; like the "refresh association" button in HikaSerial.


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: 567
  • Thank you received: 11
  • Hikashop Business
9 years 2 months ago #212773

Ok, since frontend have smooth process, but this is a bug for backend.......User can not manual enter order in control panel when they have point plugion enabled.............

Not a very acceptable reason just to say this is to ensure smooth process in frontend while backend can not work

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

Time to create page: 0.071 seconds
Powered by Kunena Forum