Post by atcheaven » Mon Jan 24, 2022 12:37 pm

HI Guys

I have an issue where every time I do a customer refund where the customer paid with PayPal, all the items on the order are returned into site inventory.
Pretty much the only time I will do a refund is where the shipping cost was overcharged.

Is there any way I can toggle off the restock mode so that it does not return items into inventory, currently I need to manually remove the extra stock that has been added back into stock.

Thanks

Newbie

Posts

Joined
Sun Jan 27, 2019 12:04 pm

Post by thekrotek » Mon Jan 24, 2022 2:12 pm

So you do PARTIAL refund, right?

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by by mona » Mon Jan 24, 2022 6:27 pm

restock is done when the order status changes from one in the "processing statuses" or "complete statuses" to a status which is not in any of them.
So double check what you have in those statuses sets in admin.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Mon Jan 24, 2022 7:56 pm

If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by atcheaven » Tue Jan 25, 2022 12:29 pm

Thanks guys, so yes, just when I do a partial refund, all the stock is returned to inventory.

Checking the statuses I see I have the following ticked

In Processing order Status, I have: Complete, Pending, Processing, Reversed and Shipped ticked,

In Complete order Status I have: Complete and Shipped ticked

Newbie

Posts

Joined
Sun Jan 27, 2019 12:04 pm

Post by thekrotek » Tue Jan 25, 2022 2:07 pm

atcheaven wrote:
Tue Jan 25, 2022 12:29 pm
Thanks guys, so yes, just when I do a partial refund, all the stock is returned to inventory.
This maybe the issue then. Which PayPal extension are you talking about?

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by atcheaven » Tue Jan 25, 2022 4:50 pm

I have PayPal Payments standard ?

Newbie

Posts

Joined
Sun Jan 27, 2019 12:04 pm

Post by ADD Creative » Tue Jan 25, 2022 5:55 pm

atcheaven wrote:
Tue Jan 25, 2022 12:29 pm
Thanks guys, so yes, just when I do a partial refund, all the stock is returned to inventory.

Checking the statuses I see I have the following ticked

In Processing order Status, I have: Complete, Pending, Processing, Reversed and Shipped ticked,

In Complete order Status I have: Complete and Shipped ticked
Add the PayPal refund status to one of the above. If you do want to return stock to the inventory you will then have to manually change the order status to something not in the above.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by thekrotek » Tue Jan 25, 2022 8:48 pm

ADD Creative wrote:
Tue Jan 25, 2022 5:55 pm
Add the PayPal refund status to one of the above. If you do want to return stock to the inventory you will then have to manually change the order status to something not in the above.
It won't help. Refunded and Partially Refunded are two different statuses in PayPal.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by thekrotek » Tue Jan 25, 2022 8:49 pm

atcheaven wrote:
Tue Jan 25, 2022 4:50 pm
I have PayPal Payments standard ?
If you want this to work automatically, you need to modify extension and add support for Partially Refunded transaction status. It differs from Refunded.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by ADD Creative » Tue Jan 25, 2022 9:19 pm

thekrotek wrote:
Tue Jan 25, 2022 8:48 pm
It won't help. Refunded and Partially Refunded are two different statuses in PayPal.
Not for the IPN message PayPal sends for PayPal Standard. You get the 'Refunded' payment_status whether it's full or partial.
https://developer.paypal.com/api/nvp-so ... nformation

As long as the original posted is happy to manage the stock for full refunds, it would help.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by thekrotek » Tue Jan 25, 2022 10:12 pm

ADD Creative wrote:
Tue Jan 25, 2022 9:19 pm
Not for the IPN message PayPal sends for PayPal Standard. You get the 'Refunded' payment_status whether it's full or partial.
https://developer.paypal.com/api/nvp-so ... nformation

As long as the original posted is happy to manage the stock for full refunds, it would help.
Not really. If Partially Refunded status is not sent by IPN, you can simply check for mc_gross and compare it with order total. This will be your Partially Refunded status.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by mikeinterserv » Tue Jan 25, 2022 11:16 pm

atcheaven wrote:
Mon Jan 24, 2022 12:37 pm
I will do a refund is where the shipping cost was overcharged.
Easier to have an accurate shipping charge no ?

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: Bing [Bot] and 183 guests