Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Product Exported Csv Files Are Empty (0 Bytes) ! Rate Topic   - - - - -

 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 26 July 2017 - 08:28 AM #1

Hello,

 

I'using cs-cart 4.6.1. My site is multilingual. (English and Persian). The default language is Persian. The problem is when I want to export products,  csv file is created but it is empty. Even for exporting ONLY ONE product! Export of Another data such as Users or Orders are OK, but the issue occurs in exporting product data. 

 

As the first reason, I thought maybe the problem is with Character's Unicode. Because there is no problem in exporting products with ONLY English characters in their names. But about products with both English and Non-English characters in theirs names, the exported csv file is empty. 

The above reason failed because I found some products (with both English and Non-English characters in theirs names) that can be exported properly! In addition, I have non-English characters in Suppliers name and Order information that I can export them easily without any problem too! 

 

As an another attempt, I installed a fresh cs-cart on local using xampp and set the Persian language and created some non-English products, I can export them correctly! 

 

Another thing I'm considering is the exported csv files for suppliers and orders data are not empty because they don't have LANGUAGE BAR SELECTION  on top of their sections! 

But when I go to product management section, there is a LANGUAGE BAR that I can choose my default language, so in product export page I have 'select language' in Export OPTIONS sections. 

 

I'm stuck with this issue and really can't get my head around this! Please help me if there is a solution. Is this problem related to server configuration too?!

 

Thanks



 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 06 August 2017 - 06:57 AM #2

I've found the solution. My mistake! Language code values in cscart_product_descriptions table are 'FA' and 'EN'. They should be 'fa' and 'en'. My cs-cart database is imported from old version to new one.That's why such an issue happened. After changing lang_code values to correct ones, exported files are not empty anymore :)



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4609 posts

Posted 06 August 2017 - 08:12 AM #3

thanks for info


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 09 August 2017 - 09:20 AM #4

thanks for info

You're welcome!