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

#   Hide Cancelled Order

##

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

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 4 months ago [\#321720](#321720) by [davec](/forum/user/7092-davec "View davec's Profile")  *[Hide Cancelled Order](/forum/35-orders-management/900353-hide-cancelled-order#321720 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19  Hi  I wish to hide cancelled orders in the order lists within the customers CP. I did find a post , adding the code doesn't seem to work. I would appreciate an update/assistance on this please?  Thanks  David B)")* was created by *[davec](/forum/user/7092-davec "View davec's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19

Hi

I wish to hide cancelled orders in the order lists within the customers CP. I did find a post [ HERE](https://www.hikashop.com/forum/orders-management/884454-hide-cancelled-order-on-frontend.html), adding the code doesn't seem to work. I would appreciate an update/assistance on this please?

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

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

6 years 4 months ago [\#321722](#321722) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide Cancelled Order](/forum/35-orders-management/900353-hide-cancelled-order#321722 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19  Hi  I wish to hide cancelled orders in the order lists within the customers CP. I did find a post , adding the code doesn't seem to work. I would appreciate an update/assistance on this please?  Thanks  David B)")*

Hi,

That solution is for the orders listing, when you click on the "my orders" link of the control panel.
The line Code:

$row =&amp; $this-&gt;rows[$i];

doesn't exist anymore in order / listing.php but you can still add the same code after the line: Code:

foreach($this-&gt;rows as &amp;$row) {

and it will work all the same.
Now for the "latest orders" area of the control panel, you need to add the line: Code:

if($order-&gt;order_status=='cancelled') continue;

after the code: Code:

foreach($this-&gt;cpanel_data-&gt;cpanel_orders as $order_id =&gt; $order) {

in the file user / cpanel_orders.php and it will work.

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

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

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 4 months ago [\#321759](#321759) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[Hide Cancelled Order](/forum/35-orders-management/900353-hide-cancelled-order#321759 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19  Hi  I wish to hide cancelled orders in the order lists within the customers CP. I did find a post , adding the code doesn't seem to work. I would appreciate an update/assistance on this please?  Thanks  David B)")*

Hi Nicolas

can you confirm this is the correct place for the code you provided.

foreach($this-&gt;cpanel_data-&gt;cpanel_orders as $order_id =&gt; $order) {
$order_link = hikashop_completeLink('order&amp;task=show&amp;cid='.$order_id.$url_itemid.$cancel_url)if($order-&gt;order_status=='cancelled') continue;

Thanks

David ![B)](/media/kunena/emoticons/9.png "B)")

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

6 years 4 months ago -  6 years 4 months ago [\#321764](#321764) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Hide Cancelled Order](/forum/35-orders-management/900353-hide-cancelled-order#321764 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19  Hi  I wish to hide cancelled orders in the order lists within the customers CP. I did find a post , adding the code doesn't seem to work. I would appreciate an update/assistance on this please?  Thanks  David B)")*

Hello,

From what Nicolas said as result, you have to get this :
**...
$cancel\_url = '&amp;cancel\_url='.base64\_encode(hikashop\_currentURL());
foreach($this-&gt;cpanel\_data-&gt;cpanel\_orders as $order\_id =&gt; $order) {
if($order-&gt;order\_status=='cancelled') continue;
$order\_link = hikashop\_completeLink('order&amp;task=show&amp;cid='.$order\_id.$url\_itemid.$cancel\_url);
?&gt;
...**

Hope this will be more clear.
Regards

Last edit: 6 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

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