Paypal payment cancelled and stock levels

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #2713

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


Hikashop Essential 1.4.0

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #2723

Hi,

That's actually what should happen. There seems to be a bug there.

Could you change the code

$cancelled_order_status = explode(',',$config->get('order_cancelled_status'));
to
$cancelled_order_status = explode(',',$config->get('cancelled_order_status'));
in the file administrator/components/com_hikashop/classes/order.php near line 85

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #2760

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.


Hikashop Essential 1.4.0

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #2766

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.

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #2779

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?


Hikashop Essential 1.4.0

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #2804

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.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum