Product in stock after order cancellation

  • Posts: 54
  • Thank you received: 0
7 years 10 months ago #271425

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : firefox 53

Hi,
When a customer cancels a payment, the product does not return to stock. How to set it to automatically be available again?

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

  • Posts: 83746
  • Thank you received: 13552
  • MODERATOR
7 years 10 months ago #271428

Hi,

For that to open, the order status needs to change from "confirmed" to "cancelled" or "refunded".
Is the order status beeing changed in the order ?
Also the order statuses need to be properly configured in the menu System>Order statuses.
How are configured the order statuses in that menu ?

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

  • Posts: 54
  • Thank you received: 0
7 years 10 months ago #271561

Hi.
The order status change from "created" to "cancelled" automatically when I cancelled payment.
Order status now has default settings, I have tried different combinations, but I probably do something wrong

Attachments:

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

  • Posts: 83746
  • Thank you received: 13552
  • MODERATOR
7 years 10 months ago #271622

Hi,

How did you configure the "Update the product stock on confirmed status" setting in the HikaShop configuration ?
And which payment methods are you using ?

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

  • Posts: 54
  • Thank you received: 0
7 years 10 months ago #271702

Hi.
"Update the product stock on confirmed status" - is set to "no". Of course, I also checked how it works with the "yes" option and if the payment is confirmed, update the item in stock and update order status is correct.
But what in that case: I have the last product, one customer has already created an order but has not yet made a payment because he is wondering but also did not cancel the payment. The product is visible all the time in the store and at that time the other customer will also confirm the order and pay immediately. The first customer finally decided that he wanted to pay, but the product was already bought. How will hikashop behave in this situation?
That's why I thought it would be better to update the stock at the time when the order was created. But when the order is canceled, the product does not return to stock.
I use IDEAL and Paypal.

P.S. How to finish the order when it has created status, because when i edit this order from the front i do not see any button redirecting to the payment page?

Attachments:
Last edit: 7 years 10 months ago by Wrosch.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 10 months ago #271992

Hello,

1 - You should configured your "cancelled" orders statuses (it's "Anulowane" for your language).
Best is to set "cancelled" and "refunded" in that list.

2 - How are you cancelling the orders exactly ?

3 - The "pay later" include some checks ; but we generally recommend to "destock" the product at the order creation and afterwards use the cron plugin to cancel orders after a period of time.

4 - When you finish the checkout the payment method "end" page is displayed and it's the plugin which handle the redirection.
You should see with the iDeal support for more details. Afterwards if you're using the HikaShop Paypal plugin, it should work fine.

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: 54
  • Thank you received: 0
7 years 10 months ago #272003

Hello,
1. Ok. But after 15 minutes the statuses returns to its original settings (they become disabled).

2. I Use the button "cancel payment" at the bottom of the page for IDEAL. The order status change from created to cancelled on backend hikashop propertly, but product does not come back to stock.

3. When I don’t use the button "cancel payment" and don’t pay also, the cron plugin change the status from created to cancelled after 15 minutes properly, but the product does not come back to stock. When I change the status manually from created to cancelled on backend hikashop product returns correctly to the stock.
For paypal everything works correctly.

4. The payment plugins redirect to the payment page propertly, but if I don’t pay and close the payment page, before cron changes the order status to canceled it is available for customer on the front-end as created. Can he then finish the order any way?

P.S. I also wrote to ideal support.

Attachments:
Last edit: 7 years 10 months ago by Wrosch.

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

  • Posts: 54
  • Thank you received: 0
7 years 10 months ago #273259

Hi.
Two days ago I sent you a mail with data to my site, where I asked you to check why the order statuses deactivated themselves?
I wanted to set statuses as you wrote

1 - You should configured your "cancelled" orders statuses (it's "Anulowane" for your language).
Best is to set "cancelled" and "refunded" in that list.

but I can't. When customer cancelled order, order statuses return to the initial settings (att) and product does not return to stock. Can you help me with that?

Attachments:
Last edit: 7 years 10 months ago by Wrosch.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 10 months ago #273312

Hello,

For the "automatic" cancelling, I guess that maybe it's a feature of IDeal plugin, but can't be sure of it because this plugin wasn't develop by ourself, maybe you have to ask to this plugin creator ?
For the second point, the product will be return in stock only if as said previous you configure your order statuses (Refunded or Cancelled).



Regards

Attachments:
Last edit: 7 years 10 months ago by Philip.

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

  • Posts: 23
  • Thank you received: 0
7 years 9 months ago #275509

Hi all,

I was also looking into the Order status issue with Dominik and can confirm that (as far as I know) cciDEAL does not have the functionality to change the order status in System > Order statuses itself. I wouldn't know why a payment plugin would even want to do that :)

I can see the behaviour happening on his site, can't reproduce it on my development site.

Is there any functionality or setting in HikaShop that changes (automatically) the settings for Order statuses?

It also seems to happen with the default PayPal plugin, so it seems not to be specific to cciDEAL.

Kind regards
David


iDEAL for Hikashop by Dutch iDEAL experts

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

  • Posts: 83746
  • Thank you received: 13552
  • MODERATOR
7 years 9 months ago #275541

Hi,

Order statuses can either be changed by the payment plugins upon receiving payment notifications, or other plugins like the order auto cancel plugin which cancels created orders automatically after a certain period in order to free the stock, or with mass actions (menu System>Mass actions), or if the merchant in the backend changes the status himself, or if the customer cancels the order on his orders listing (if you activated that capability).

Normally, when the status is changed an entry is logged in the history table :
- if the IP there is the IP of an iDeal server, then it comes from the payment plugin.
- if the IP is the server where the website is or hikashop.com's IP address, then it has been done through a cron task (potentially by a mass action or a plugin like the order auto cancel plugin.
- if the IP address is the merchant's IP address, then it must come from an action the merchant made on the website.
- if the IP address is the customer's, then it must come from him cancelling the order.
- if there is no history of the order status change, then it must be a third party plugin which doesn't go through HikaShop to save the order status change, or deactivate the history logging when calling the save of the change.
- if the order is directly created with that order status, then it's either the payment plugin or the order status settings in the menu System>Order statuses that are wrong.

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

  • Posts: 23
  • Thank you received: 0
7 years 8 months ago #275704

WIP


iDEAL for Hikashop by Dutch iDEAL experts
Last edit: 7 years 8 months ago by Chill Creations.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum