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

#   Hide 'cancelled' order on frontend

##

- **[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")**
- [![aran.gibbs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42033.png)](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile") Topic Author
- [ Offline](/forum/user/42033-aran-gibbs)

Less More

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

10 years 6 months ago -  10 years 6 months ago [\#239827](#239827) by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")  *[Hide 'cancelled' order on frontend](/forum/35-orders-management/884454-hide-cancelled-order-on-frontend#239827 "-- HikaShop version -- : 2.6.3  HI,  I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section? I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.  Aran")* was created by *[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")*

-- HikaShop version -- : 2.6.3

HI,

I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section?
I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.

Aran

- [ ![Screen&#95;Shot&#95;2016-05-11&#95;at&#95;13&#95;51&#95;37.png](/forum/attachment/31357) ](/forum/attachment/31357 "...t&#95;13&#95;51&#95;37.png") [ ](/forum/attachment/31357?download=1 "...t&#95;13&#95;51&#95;37.png")

Last edit: 10 years 6 months ago by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile").

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

10 years 6 months ago [\#239831](#239831) 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 on frontend](/forum/35-orders-management/884454-hide-cancelled-order-on-frontend#239831 "-- HikaShop version -- : 2.6.3  HI,  I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section? I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.  Aran")*

Hi,

An easy solution will be to add the line: Code:

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

after the line: Code:

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

in the file 'listing' of the view 'order' via the menu Display&gt;Views.

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

- **[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")**
- [![aran.gibbs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42033.png)](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile") Topic Author
- [ Offline](/forum/user/42033-aran-gibbs)

Less More

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

10 years 6 months ago -  10 years 6 months ago [\#239930](#239930) by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")  Replied by *[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")* on topic *[Hide 'cancelled' order on frontend](/forum/35-orders-management/884454-hide-cancelled-order-on-frontend#239930 "-- HikaShop version -- : 2.6.3  HI,  I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section? I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.  Aran")*

Thanks that worked a charm! Feature request would be to have this configurable from the backend so you can choose which statues are displayed to clients and even if the My Orders section shows at all.

Last edit: 10 years 6 months ago by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile").

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

- **[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")**
- [![aran.gibbs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42033.png)](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile") Topic Author
- [ Offline](/forum/user/42033-aran-gibbs)

Less More

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

7 years 7 months ago -  7 years 7 months ago [\#305029](#305029) by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")  Replied by *[aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile")* on topic *[Hide 'cancelled' order on frontend](/forum/35-orders-management/884454-hide-cancelled-order-on-frontend#305029 "-- HikaShop version -- : 2.6.3  HI,  I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section? I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.  Aran")*

Hi,

I've picked up a client whos running hikashop 4.03 and wants to hide canceled order but I can't find the above line add in our suggestion. Does this solution still work on 4.03?

Thanks

Last edit: 7 years 7 months ago by [aran.gibbs](/forum/user/42033-aran-gibbs "View aran.gibbs's Profile").

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

7 years 7 months ago [\#305041](#305041) 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 on frontend](/forum/35-orders-management/884454-hide-cancelled-order-on-frontend#305041 "-- HikaShop version -- : 2.6.3  HI,  I'm wondering if it's possible to hide orders with a status of Cancelled on the frontend in the My Account &gt; Orders section? I think it looks messy to show them there esp. when they are created as part of a failed payment process like hitting cancel &amp; return in Paypal.  Aran")*

Hi,

While that line of code still works in 4.0.3, the line: Code:

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

was removed with the rewrite of the order listing in HikaShop 4.
So now, you would need to add that line of code after the line: Code:

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

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

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