problem in order price submited in the order list of hikashop

  • Posts: 201
  • Thank you received: 7
1 year 3 months ago #354425

hi
1-When we want to buy a product, either after the purchase or after the purchase, the onafterorderupdate event is triggered twice, and the amount of the order that is passed to it is almost equal, but there is a slight difference, which is clear in the video. There is Hikamarket in the property (order->hikamarket) These events happened after Hikamarket was installed. We are developing a plugin that is connected to Hikashop and Hikamarket.
2- could you check order of vendors when customer use coupon ? it seems the sum price operation is not done correctly.

File Attachment:

File Name: dumpresult...8-16.zip
File Size:66 KB

please see this:
Modified: screenpal.com/watch/c0jDl0Vp6rx

Attachments:
Last edit: 1 year 3 months ago by sadaf3d.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 3 months ago #354434

Hi,

1. Your video link doesn't work.
But from what you're saying this is normal. You need to check the order_type of $order. If it's "sale" then it's the main order. HikaMarket can also create order entries but with the type "subsale". It creates one subsale for each vendor of the order. That way, it can handle having different products from different vendors in the same main order.

2. What do you mean ?

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

  • Posts: 201
  • Thank you received: 7
1 year 3 months ago #354472

1- i modify video link. also i attach the sump result.
2- i understood that subsale and sale and i see in database but the problem is these two order has not same total price if use coupon in the checkout process. can you check it ? is it possible related to my payment gateway plugin?

Last edit: 1 year 3 months ago by sadaf3d.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 3 months ago #354475

Hi,

No. It's probably related to the settings of your coupon. There is a setting in coupons to decide if the amount of a coupon should be for the merchant or for the vendor: i.imgur.com/wOPI1QA.png
Based on that, the amount reduced by the coupon could be not reduced in the subsale.
So I would recommend checking the settings of your coupon.
In fact, looking at your dump, I can see that this setting is not turned on:
i.imgur.com/q7asCDo.png

The following user(s) said Thank You: sadaf3d

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

Time to create page: 0.085 seconds
Powered by Kunena Forum