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

#   Problem with CSV order export for Vendor in fron end

##

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

Less More

- Posts: 128
- Thank you received: 2
-
-

9 years 4 months ago [\#273893](#273893) by [sabroso](/forum/user/38789-sabroso "View sabroso's Profile")  *[Problem with CSV order export for Vendor in fron end](/forum/22-market-bug-report/891120-problem-with-csv-order-export-for-vendor-in-fron-end#273893 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6  Hi there,  When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message &quot;Nothign to export&quot; - see screenshot.  However there are lots of orders with that Payment method.  When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.  I'm using two payment methods MangoPay and Stripe which have been renamed to &quot;Credit/Debit Card&quot; and &quot;Test Payment&quot; respectively.  thanks!")* was created by *[sabroso](/forum/user/38789-sabroso "View sabroso's Profile")*

-- HikaShop version -- : 3.1.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.7.3
-- PHP version -- : 5.6

Hi there,

When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message "Nothign to export" - see screenshot.

However there are lots of orders with that Payment method.

When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.

I'm using two payment methods MangoPay and Stripe which have been renamed to "Credit/Debit Card" and "Test Payment" respectively.

thanks!

- [ ![screenshot.png](/forum/attachment/39171) ](/forum/attachment/39171 "screenshot.png") [ ](/forum/attachment/39171?download=1 "screenshot.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 4 months ago [\#273899](#273899) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Problem with CSV order export for Vendor in fron end](/forum/22-market-bug-report/891120-problem-with-csv-order-export-for-vendor-in-fron-end#273899 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6  Hi there,  When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message &quot;Nothign to export&quot; - see screenshot.  However there are lots of orders with that Payment method.  When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.  I'm using two payment methods MangoPay and Stripe which have been renamed to &quot;Credit/Debit Card&quot; and &quot;Test Payment&quot; respectively.  thanks!")*

Hello,

Thanks for the report.
In "components/com_hikamarket/view/ordermarket/view.html.php" please replace Code:

if(!empty($pageInfo-&gt;filter-&gt;filter_payment)) $filters['order_payment_method'] = 'hkorder.order_payment_method = ' . $db-&gt;Quote($pageInfo-&gt;filter-&gt;filter_payment);

By Code:

if(!empty($pageInfo-&gt;filter-&gt;filter_payment) &amp;&amp; $vendor-&gt;vendor_id &lt;= 1) $filters['order_payment_method'] = 'hkorder.order_payment_method = ' . $db-&gt;Quote($pageInfo-&gt;filter-&gt;filter_payment); if(!empty($pageInfo-&gt;filter-&gt;filter_payment) &amp;&amp; $vendor-&gt;vendor_id &gt; 1) $filters['order_payment_method'] = 'hkorder.order_payment_method = ' . $db-&gt;Quote('market-'.$pageInfo-&gt;filter-&gt;filter_payment);

We will add that patch in our side for the next release.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 128
- Thank you received: 2
-
-

9 years 4 months ago [\#273930](#273930) by [sabroso](/forum/user/38789-sabroso "View sabroso's Profile")  Replied by *[sabroso](/forum/user/38789-sabroso "View sabroso's Profile")* on topic *[Problem with CSV order export for Vendor in fron end](/forum/22-market-bug-report/891120-problem-with-csv-order-export-for-vendor-in-fron-end#273930 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6  Hi there,  When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message &quot;Nothign to export&quot; - see screenshot.  However there are lots of orders with that Payment method.  When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.  I'm using two payment methods MangoPay and Stripe which have been renamed to &quot;Credit/Debit Card&quot; and &quot;Test Payment&quot; respectively.  thanks!")*

Thank you Jerome,

Unfortunately I have tested the patch and it does not work, still no results when the Vendor selects a payment method on the front end.

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 4 months ago [\#273931](#273931) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Problem with CSV order export for Vendor in fron end](/forum/22-market-bug-report/891120-problem-with-csv-order-export-for-vendor-in-fron-end#273931 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6  Hi there,  When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message &quot;Nothign to export&quot; - see screenshot.  However there are lots of orders with that Payment method.  When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.  I'm using two payment methods MangoPay and Stripe which have been renamed to &quot;Credit/Debit Card&quot; and &quot;Test Payment&quot; respectively.  thanks!")*

Hello,

My bad, the filter give an ID, please replace the previous line with Code:

if(!empty($pageInfo-&gt;filter-&gt;filter_payment)) $filters['order_payment_method'] = 'hkorder.order_payment_id = ' . $db-&gt;Quote($pageInfo-&gt;filter-&gt;filter_payment);

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 128
- Thank you received: 2
-
-

9 years 4 months ago [\#273978](#273978) by [sabroso](/forum/user/38789-sabroso "View sabroso's Profile")  Replied by *[sabroso](/forum/user/38789-sabroso "View sabroso's Profile")* on topic *[Problem with CSV order export for Vendor in fron end](/forum/22-market-bug-report/891120-problem-with-csv-order-export-for-vendor-in-fron-end#273978 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6  Hi there,  When a Vendor tries to export his orders to CSV from the front end and filters the output by payment type, he gets error message &quot;Nothign to export&quot; - see screenshot.  However there are lots of orders with that Payment method.  When he filters the export by dates or order status seems to work fine, but not when filtering by Payment method.  I'm using two payment methods MangoPay and Stripe which have been renamed to &quot;Credit/Debit Card&quot; and &quot;Test Payment&quot; respectively.  thanks!")*

OK, that works, thank you

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

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