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

#   Clreadown Orders/Invoices and reset Order &amp; Invoice number, and anything else?

##

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

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](https://www.matcom.co.uk)
-

5 years 8 months ago [\#329940](#329940) by [nevillematthews](/forum/user/39340-nevillematthews "View nevillematthews's Profile")  *[Clreadown Orders/Invoices and reset Order &amp; Invoice number, and anything else?](/forum/35-orders-management/902006-clreadown-orders-invoices-and-reset-order-invoice-number-and-anything-else#329940 "-- url of the page with the problem -- :   www.mathost3.co.uk/lou4/index.php/order-...oduct/1-potato-label  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Firefox Developer 86.0b9(64-bit)  Hi  Following testing of any site I build with HikaShop I always have a need before we go live to reset the data, meaning clear down orders and counters in Hikashop, not products, categories etc.  Is there any docuentation on clearing down the data prior to our putting the site live.  I would imagine someone has written a script, I have on old one but I haven't used it for quite a while so wanted to be sure I didn't miss anything in the reset.  Thank you  Neville Matthews")* was created by *[nevillematthews](/forum/user/39340-nevillematthews "View nevillematthews's Profile")*

-- url of the page with the problem -- : [ www.mathost3.co.uk/lou4/index.php/order-...oduct/1-potato-label](http://www.mathost3.co.uk/lou4/index.php/order-labels/product/1-potato-label)
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.4.11
-- Browser(s) name and version -- : Firefox Developer 86.0b9(64-bit)

Hi

Following testing of any site I build with HikaShop I always have a need before we go live to reset the data, meaning clear down orders and counters in Hikashop, not products, categories etc.

Is there any docuentation on clearing down the data prior to our putting the site live.

I would imagine someone has written a script, I have on old one but I haven't used it for quite a while so wanted to be sure I didn't miss anything in the reset.

Thank you

Neville Matthews

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMjAwNi1jbHJlYWRvd24tb3JkZXJzLWludm9pY2VzLWFuZC1yZXNldC1vcmRlci1pbnZvaWNlLW51bWJlci1hbmQtYW55dGhpbmctZWxzZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

5 years 8 months ago [\#329954](#329954) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clreadown Orders/Invoices and reset Order &amp; Invoice number, and anything else?](/forum/35-orders-management/902006-clreadown-orders-invoices-and-reset-order-invoice-number-and-anything-else#329954 "-- url of the page with the problem -- :   www.mathost3.co.uk/lou4/index.php/order-...oduct/1-potato-label  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Firefox Developer 86.0b9(64-bit)  Hi  Following testing of any site I build with HikaShop I always have a need before we go live to reset the data, meaning clear down orders and counters in Hikashop, not products, categories etc.  Is there any docuentation on clearing down the data prior to our putting the site live.  I would imagine someone has written a script, I have on old one but I haven't used it for quite a while so wanted to be sure I didn't miss anything in the reset.  Thank you  Neville Matthews")*

Hi,

There is no need for a script. To clear the orders/invoices and reset the order and invoice numbers, you need to go in your phpmyadmin and empty the table "hikashop_order", "hikashop_order_product", "hikashop_download" and "hikashop_history". That's it.
Here are some links with screenshots of the phpmyadmin interfaces to do that:
[ tutorials2make.blogspot.com/2015/10/comp...able-phpmyadmin.html](http://tutorials2make.blogspot.com/2015/10/completely-empty-truncate-table-phpmyadmin.html)
[ help.nexcess.net/74113-siteworx/how-to-t...l-tables-in-siteworx](https://help.nexcess.net/74113-siteworx/how-to-truncate-mysql-tables-in-siteworx)

The following user(s) said Thank You: [nevillematthews](/forum/user/39340-nevillematthews "View nevillematthews's Profile")

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](https://www.matcom.co.uk)
-

5 years 7 months ago [\#330250](#330250) by [nevillematthews](/forum/user/39340-nevillematthews "View nevillematthews's Profile")  Replied by *[nevillematthews](/forum/user/39340-nevillematthews "View nevillematthews's Profile")* on topic *[Clreadown Orders/Invoices and reset Order &amp; Invoice number, and anything else?](/forum/35-orders-management/902006-clreadown-orders-invoices-and-reset-order-invoice-number-and-anything-else#330250 "-- url of the page with the problem -- :   www.mathost3.co.uk/lou4/index.php/order-...oduct/1-potato-label  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Firefox Developer 86.0b9(64-bit)  Hi  Following testing of any site I build with HikaShop I always have a need before we go live to reset the data, meaning clear down orders and counters in Hikashop, not products, categories etc.  Is there any docuentation on clearing down the data prior to our putting the site live.  I would imagine someone has written a script, I have on old one but I haven't used it for quite a while so wanted to be sure I didn't miss anything in the reset.  Thank you  Neville Matthews")*

Hi Nicholas

By a script I just meant a simple SQL script, I have attached mine.

Many thanks

Neville Matthews

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMjAwNi1jbHJlYWRvd24tb3JkZXJzLWludm9pY2VzLWFuZC1yZXNldC1vcmRlci1pbnZvaWNlLW51bWJlci1hbmQtYW55dGhpbmctZWxzZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

5 years 7 months ago [\#330251](#330251) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clreadown Orders/Invoices and reset Order &amp; Invoice number, and anything else?](/forum/35-orders-management/902006-clreadown-orders-invoices-and-reset-order-invoice-number-and-anything-else#330251 "-- url of the page with the problem -- :   www.mathost3.co.uk/lou4/index.php/order-...oduct/1-potato-label  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Firefox Developer 86.0b9(64-bit)  Hi  Following testing of any site I build with HikaShop I always have a need before we go live to reset the data, meaning clear down orders and counters in Hikashop, not products, categories etc.  Is there any docuentation on clearing down the data prior to our putting the site live.  I would imagine someone has written a script, I have on old one but I haven't used it for quite a while so wanted to be sure I didn't miss anything in the reset.  Thank you  Neville Matthews")*

Hi,

You sure can do it like that, especially if you need to do that several times a year.
The "empty the table" button of PHPMyAdmin actually just generates the TRUNCATE MySQL query and run it for you, so it's basically the same thing done differently ![:)](/media/kunena/emoticons/8.png ":)")

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

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

[](#top)
