- Posts: 23
- Thank you received: 0
Paypal payment cancelled and stock levels
15 years 9 months ago #2713
by theDigger
Hikashop Essential 1.4.0
Paypal payment cancelled and stock levels was created by theDigger
Hi,
Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?
I have set "Cancelled order statuses" to "cancelled,refunded" but when I manually cancel an order the stock level of the product is not reset.
The shop I'm working on right now sells hand made clothes and there's just 1 in stock of many of the items. So it's important that if the customer cancel at paypal the stock is reset.
Nils
Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?
I have set "Cancelled order statuses" to "cancelled,refunded" but when I manually cancel an order the stock level of the product is not reset.
The shop I'm working on right now sells hand made clothes and there's just 1 in stock of many of the items. So it's important that if the customer cancel at paypal the stock is reset.
Nils
Hikashop Essential 1.4.0
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2723
by nicolas
Replied by nicolas on topic Re: Paypal payment cancelled and stock levels
Hi,
That's actually what should happen. There seems to be a bug there.
Could you change the code
to
in the file administrator/components/com_hikashop/classes/order.php near line 85
That's actually what should happen. There seems to be a bug there.
Could you change the code
Code:
$cancelled_order_status = explode(',',$config->get('order_cancelled_status'));
Code:
$cancelled_order_status = explode(',',$config->get('cancelled_order_status'));
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2760
by theDigger
Hikashop Essential 1.4.0
Replied by theDigger on topic Re: Paypal payment cancelled and stock levels
Ok, that fixes the stock level when you manually change the status. Guess this will be fixed in the next release.
The order status is still "created" when I choose to cancel at Paypal though.
The order status is still "created" when I choose to cancel at Paypal though.
Hikashop Essential 1.4.0
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2766
by nicolas
Replied by nicolas on topic Re: Paypal payment cancelled and stock levels
Yes, it will be included.
Actually, when you click on cancel in paypal you are redirected to the URL you set in the paypal plugin configuration so hikashop doesn't know that the user clicked on cancel. We need to modify the code of the plugin to redirect to a new controller in order to cancel the order and then only redirect to the URL in the configuration. That's something we will add in next version.
Actually, when you click on cancel in paypal you are redirected to the URL you set in the paypal plugin configuration so hikashop doesn't know that the user clicked on cancel. We need to modify the code of the plugin to redirect to a new controller in order to cancel the order and then only redirect to the URL in the configuration. That's something we will add in next version.
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2779
by theDigger
Hikashop Essential 1.4.0
Replied by theDigger on topic Re: Paypal payment cancelled and stock levels
Ok, great. With the pace of new releases so far the next release shouldn't be far away...
How many developers are working on Hikashop?
How many developers are working on Hikashop?
Hikashop Essential 1.4.0
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2804
by nicolas
Replied by nicolas on topic Re: Paypal payment cancelled and stock levels
Yes, we will tr to publish rapidly a new version as we found issues with the shipping selection process on the checkout which doesn't work properly.
It depends: we are 2 full time persons working on HikaShop, plus external persons, freelances or not, working with us from time to time.
It depends: we are 2 full time persons working on HikaShop, plus external persons, freelances or not, working with us from time to time.
Please Log in or Create an account to join the conversation.
Time to create page: 0.195 seconds