[Skip to main content](#vessel-content)

#   Paypal payment cancelled and stock levels

##

- **[theDigger](/forum/user/349-thedigger "View theDigger's Profile")**
- [![theDigger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/349-thedigger "View theDigger's Profile") Topic Author
- [ Offline](/forum/user/349-thedigger)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 11 months ago [\#2713](#2713) by [theDigger](/forum/user/349-thedigger "View theDigger's Profile")  *[Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2713 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")* was created by *[theDigger](/forum/user/349-thedigger "View theDigger's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 11 months ago [\#2723](#2723) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2723 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")*

Hi,

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

Could you change the code Code:

$cancelled_order_status = explode(',',$config-&gt;get('order_cancelled_status'));

to Code:

$cancelled_order_status = explode(',',$config-&gt;get('cancelled_order_status'));

in the file administrator/components/com_hikashop/classes/order.php near line 85

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[theDigger](/forum/user/349-thedigger "View theDigger's Profile")**
- [![theDigger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/349-thedigger "View theDigger's Profile") Topic Author
- [ Offline](/forum/user/349-thedigger)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 11 months ago [\#2760](#2760) by [theDigger](/forum/user/349-thedigger "View theDigger's Profile")  Replied by *[theDigger](/forum/user/349-thedigger "View theDigger's Profile")* on topic *[Re: Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2760 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 11 months ago [\#2766](#2766) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2766 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[theDigger](/forum/user/349-thedigger "View theDigger's Profile")**
- [![theDigger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/349-thedigger "View theDigger's Profile") Topic Author
- [ Offline](/forum/user/349-thedigger)

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 11 months ago [\#2779](#2779) by [theDigger](/forum/user/349-thedigger "View theDigger's Profile")  Replied by *[theDigger](/forum/user/349-thedigger "View theDigger's Profile")* on topic *[Re: Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2779 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 11 months ago [\#2804](#2804) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal payment cancelled and stock levels](/forum/4-how-to/2713-paypal-payment-cancelled-and-stock-levels#2804 "Hi,  Is it possible to set the order to cancelled if to customer choose to cancel at Paypal?  I have set &quot;Cancelled order statuses&quot; to &quot;cancelled,refunded&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3MTMtcGF5cGFsLXBheW1lbnQtY2FuY2VsbGVkLWFuZC1zdG9jay1sZXZlbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
