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

#   No Stock Issue - Deleted Orders

##

- **[BaptisteG](/forum/user/5481-baptisteg "View BaptisteG's Profile")**
- [![BaptisteG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5481-baptisteg "View BaptisteG's Profile") Topic Author
- [ Offline](/forum/user/5481-baptisteg)

Less More

- Posts: 5
- Thank you received: 0
-
-

14 years 9 months ago [\#35450](#35450) by [BaptisteG](/forum/user/5481-baptisteg "View BaptisteG's Profile")  *[No Stock Issue - Deleted Orders](/forum/4-how-to/35450-no-stock-issue-deleted-orders#35450 "Hi everyone.  I'm actually trying to set up the Hikashop component for an Art Gallery website. The component is fine and seems to be working, but I have encountered a few issues. The most important of them is how to get the items to refill their stock when an order is deleted. As I said, it's an art gallery website, so we sell unique products. When I delete an order of an item from the back end of joomla, I have to manually reload the available stock from 0 to 1 for the item to be available for sale. How can I fix this, so that, when an order is deleted the available stock comes back to 1 automatically ? I've already tried to play with the &quot;cart retaining&quot; function, but it does not solve anything. The second issue comes hand to hand with the first one : How do configure the component so that the available stock decrease (from one to zero) only when the command has been PAID and not simply ordered. I don't want a piece of art to be unavailable because one customer wanted to buy it and finally changed his mind before the payment. How can I check within the component that the payment has effectively been made ? I cannot spend my time going back and forth between sites and email address, to check if orders have been completed. If I could solve those two problems I would have the perfect component ;)  Thanks,")* was created by *[BaptisteG](/forum/user/5481-baptisteg "View BaptisteG's Profile")*

Hi everyone.

I'm actually trying to set up the Hikashop component for an Art Gallery website. The component is fine and seems to be working, but I have encountered a few issues. The most important of them is how to get the items to refill their stock when an order is deleted. As I said, it's an art gallery website, so we sell unique products. When I delete an order of an item from the back end of joomla, I have to manually reload the available stock from 0 to 1 for the item to be available for sale. How can I fix this, so that, when an order is deleted the available stock comes back to 1 automatically ? I've already tried to play with the "cart retaining" function, but it does not solve anything.
The second issue comes hand to hand with the first one : How do configure the component so that the available stock decrease (from one to zero) only when the command has been PAID and not simply ordered. I don't want a piece of art to be unavailable because one customer wanted to buy it and finally changed his mind before the payment. How can I check within the component that the payment has effectively been made ? I cannot spend my time going back and forth between sites and email address, to check if orders have been completed. If I could solve those two problems I would have the perfect component ![;)](/media/kunena/emoticons/24.png ";)")

Thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1NDUwLW5vLXN0b2NrLWlzc3VlLWRlbGV0ZWQtb3JkZXJzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 9 months ago [\#35468](#35468) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: No Stock Issue - Deleted Orders](/forum/4-how-to/35450-no-stock-issue-deleted-orders#35468 "Hi everyone.  I'm actually trying to set up the Hikashop component for an Art Gallery website. The component is fine and seems to be working, but I have encountered a few issues. The most important of them is how to get the items to refill their stock when an order is deleted. As I said, it's an art gallery website, so we sell unique products. When I delete an order of an item from the back end of joomla, I have to manually reload the available stock from 0 to 1 for the item to be available for sale. How can I fix this, so that, when an order is deleted the available stock comes back to 1 automatically ? I've already tried to play with the &quot;cart retaining&quot; function, but it does not solve anything. The second issue comes hand to hand with the first one : How do configure the component so that the available stock decrease (from one to zero) only when the command has been PAID and not simply ordered. I don't want a piece of art to be unavailable because one customer wanted to buy it and finally changed his mind before the payment. How can I check within the component that the payment has effectively been made ? I cannot spend my time going back and forth between sites and email address, to check if orders have been completed. If I could solve those two problems I would have the perfect component ;)  Thanks,")*

Hi,

You should not delete the orders but change their status to cancelled. Then, the products quantities will be refilled.

You should use the auto cancel orders plugin available in the commercial editions of HikaShop (you will need to configure your cron task for that). The plugin will check periodically for created orders which haven't been paid for a certain period and will automatically cancel them to reclaim the stocks.
That way, you still avoid the case where two persons pay for the same item while avoiding the back and forth manual checks of the orders.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1NDUwLW5vLXN0b2NrLWlzc3VlLWRlbGV0ZWQtb3JkZXJzP3RtcGw9bWFya2Rvd24=) 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.071 seconds

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

[](#top)
