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

#   How To: Omit certain orders from cust order list

##

- **[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")**
- [![mkj101us's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9513.jpeg)](/forum/user/9513-mkj101us "View mkj101us's Profile") Topic Author
- [ Offline](/forum/user/9513-mkj101us)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 4 weeks ago [\#70205](#70205) by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")  *[How To: Omit certain orders from cust order list](/forum/2-general-talk-about-hikashop/70205-how-to-omit-certain-orders-from-cust-order-list#70205 "Hello,  I need to omit orders with a certain status from being displayed on the customers order history listing page. I need to omit the &quot;created&quot; orders, I have noticed those are inserted into the database as soon as they click  on the hikashop site but have not yet completed the transaction through the payment gateway (e.g. PayPal). Once they complete the transaction through the PayPal payment gateway I get a notification from PayPal and update the order status to something other than &quot;created&quot; and everybody is happy.  However, if they do not complete the payment (leave the page rather than &quot;cancel and return to site&quot;), there is an errant &quot;created&quot; order listed on their order history and nobody is happy. I would like to omit errant &quot;created&quot; order that from their listing.  Thanks, -Mike")* was created by *[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")*

Hello,

I need to omit orders with a certain status from being displayed on the customers order history listing page. I need to omit the "created" orders, I have noticed those are inserted into the database as soon as they click &lt;Purchase&gt; on the hikashop site but have not yet completed the transaction through the payment gateway (e.g. PayPal). Once they complete the transaction through the PayPal payment gateway I get a notification from PayPal and update the order status to something other than "created" and everybody is happy.

However, if they do not complete the payment (leave the page rather than "cancel and return to site"), there is an errant "created" order listed on their order history and nobody is happy. I would like to omit errant "created" order that from their listing.

Thanks,
-Mike

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 weeks ago [\#70298](#70298) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: How To: Omit certain orders from cust order list](/forum/2-general-talk-about-hikashop/70205-how-to-omit-certain-orders-from-cust-order-list#70298 "Hello,  I need to omit orders with a certain status from being displayed on the customers order history listing page. I need to omit the &quot;created&quot; orders, I have noticed those are inserted into the database as soon as they click  on the hikashop site but have not yet completed the transaction through the payment gateway (e.g. PayPal). Once they complete the transaction through the PayPal payment gateway I get a notification from PayPal and update the order status to something other than &quot;created&quot; and everybody is happy.  However, if they do not complete the payment (leave the page rather than &quot;cancel and return to site&quot;), there is an errant &quot;created&quot; order listed on their order history and nobody is happy. I would like to omit errant &quot;created&quot; order that from their listing.  Thanks, -Mike")*

Hi,

You can edit the view "order / listing" in HikaShop &gt; Display &gt; Views (backend template).
And add the line: Code:

if($row-&gt;order_status == 'created' &amp;&amp; $row-&gt;order_created &lt; time() - 1*86400){ continue; }

After the existing code: Code:

for($i = 0,$a = count($this-&gt;rows);$i&lt;$a;$i++){ $row =&amp; $this-&gt;rows[$i];

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

- **[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")**
- [![mkj101us's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9513.jpeg)](/forum/user/9513-mkj101us "View mkj101us's Profile") Topic Author
- [ Offline](/forum/user/9513-mkj101us)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 4 weeks ago [\#70427](#70427) by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")  Replied by *[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")* on topic *[Re: How To: Omit certain orders from cust order list](/forum/2-general-talk-about-hikashop/70205-how-to-omit-certain-orders-from-cust-order-list#70427 "Hello,  I need to omit orders with a certain status from being displayed on the customers order history listing page. I need to omit the &quot;created&quot; orders, I have noticed those are inserted into the database as soon as they click  on the hikashop site but have not yet completed the transaction through the payment gateway (e.g. PayPal). Once they complete the transaction through the PayPal payment gateway I get a notification from PayPal and update the order status to something other than &quot;created&quot; and everybody is happy.  However, if they do not complete the payment (leave the page rather than &quot;cancel and return to site&quot;), there is an errant &quot;created&quot; order listed on their order history and nobody is happy. I would like to omit errant &quot;created&quot; order that from their listing.  Thanks, -Mike")*

Thanks Xavier,

That got me on the right track and what I needed.

Thanks,
-Mike

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

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