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

#   change state of copied order

##

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

Less More

- Posts: 30
- Thank you received: 0
-
-

9 years 7 months ago [\#266643](#266643) by [syno](/forum/user/40370-syno "View syno's Profile")  *[change state of copied order](/forum/35-orders-management/889677-change-state-of-copied-order#266643 "-- HikaShop version -- : 264 -- Joomla version -- : 36 -- PHP version -- : 7  Hello,  how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status &quot;paid&quot; I need &quot;new order&quot; .  Is this possible?  Regards, Syno")* was created by *[syno](/forum/user/40370-syno "View syno's Profile")*

-- HikaShop version -- : 264
-- Joomla version -- : 36
-- PHP version -- : 7

Hello,

how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status "paid" I need "new order" .

Is this possible?

Regards,
Syno

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4OTY3Ny1jaGFuZ2Utc3RhdGUtb2YtY29waWVkLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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: 86583
- Thank you received: 14324
-
-

9 years 7 months ago [\#266658](#266658) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[change state of copied order](/forum/35-orders-management/889677-change-state-of-copied-order#266658 "-- HikaShop version -- : 264 -- Joomla version -- : 36 -- PHP version -- : 7  Hello,  how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status &quot;paid&quot; I need &quot;new order&quot; .  Is this possible?  Regards, Syno")*

Hi,

On the listing of the orders you can change the status of all the orders, even the copied ones:
[ monosnap.com/file/YHHAv8sIN4L59ca2hV1aOCVrisU7xL](https://monosnap.com/file/YHHAv8sIN4L59ca2hV1aOCVrisU7xL)

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

9 years 7 months ago [\#266697](#266697) by [syno](/forum/user/40370-syno "View syno's Profile")  Replied by *[syno](/forum/user/40370-syno "View syno's Profile")* on topic *[change state of copied order](/forum/35-orders-management/889677-change-state-of-copied-order#266697 "-- HikaShop version -- : 264 -- Joomla version -- : 36 -- PHP version -- : 7  Hello,  how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status &quot;paid&quot; I need &quot;new order&quot; .  Is this possible?  Regards, Syno")*

Hello Nicolas,

thank you for your answer. Yes I know that I can change the state manually. What I meant is the initial state of the copied order. If I copy an order with the state "paid" the new order also has the state "paid" and this state is recorded in the orders history. I need the the initial state of the copied order to be "new"and this should be in recorded in the history.

Regards,
Syno

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4OTY3Ny1jaGFuZ2Utc3RhdGUtb2YtY29waWVkLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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: 86583
- Thank you received: 14324
-
-

9 years 7 months ago [\#266701](#266701) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[change state of copied order](/forum/35-orders-management/889677-change-state-of-copied-order#266701 "-- HikaShop version -- : 264 -- Joomla version -- : 36 -- PHP version -- : 7  Hello,  how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status &quot;paid&quot; I need &quot;new order&quot; .  Is this possible?  Regards, Syno")*

Hi,

There is no system for that. The goal of the copy function is to create a duplicate, not to change some things along the way.
That would require modifications of the copy process.
More precisely, you'd have to modify the code of the function "copyOrder" in the file administrator/components/com_hikashop/classes/order.php
I suppose you could try adding such code before the save:
$order-&gt;order_status = "created";

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

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

9 years 7 months ago [\#266818](#266818) by [syno](/forum/user/40370-syno "View syno's Profile")  Replied by *[syno](/forum/user/40370-syno "View syno's Profile")* on topic *[change state of copied order](/forum/35-orders-management/889677-change-state-of-copied-order#266818 "-- HikaShop version -- : 264 -- Joomla version -- : 36 -- PHP version -- : 7  Hello,  how can I change the state of a copied order. At the moment the state of the new order is set like in the old order. But instead of status &quot;paid&quot; I need &quot;new order&quot; .  Is this possible?  Regards, Syno")*

Hello Nicolas,

thank you for your answer. This is exactly what I needed!

Thank you for the great support!

Regards,
Syno

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

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