- Posts: 171
- Thank you received: 4
order export puntuation
when i export orders from the shop, the total prices are written wrong in the CSV file.
exampel in backend 338,95 dkk and in csv it stands as 33.895.000
i can see its same number, but shouldn't it look the same ?
Please Log in or Create an account to join the conversation.
Can you create a new export, save your CSV file and open it using a simple text editor ?
It is possible that your spreadsheet software convert the number without understanding the number separator.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
maybee making a xls export button would be the smarter way to do this as it seems the csv isn't compatible with it.
Please Log in or Create an account to join the conversation.
It is important in some cases to export the prices with more than 2 decimals or the prices wouldn't be correct.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
just need a way for them, to get it working easy.
Please Log in or Create an account to join the conversation.
You may understand that we can't adapt Hikashop to fit an external software bug... it's nonsense.
It you really want to avoid this, a solution would be to edit the export.php file in administrator/com_hikashop/views/order/tmpl and add some code there to replace the coma by a dot in every price.
However it will require some good php skills and I definitely think that using another software (maybe simply a more recent version of excel, we don't have this bug here) is the best solution.
Please Log in or Create an account to join the conversation.
Another solution would be to make the export configurable to use a user defined (or just choose between comma and dot) decimal separator and then make the export do the string replace. Let's call that a feature request for the future
Please Log in or Create an account to join the conversation.
Also, the decimal separator support in Excel can also be changed so that it can import both comma or dot separated formats:
superuser.com/questions/385511/easy-way-...l-separator-in-excel
That's even easier than setting the locale in the code in HikaShop.
Please Log in or Create an account to join the conversation.
We get a dot for the thousands as well as for the decimal separator. That doesn't make sense to me and impossible to run a script or do a simple search and replace.
Example:
Price of product is: 3,97 in the export it shows as 397.000
Items that cost 270 euro, display as 2.700.00
Please help us fix this in a professional manner. It is really an issue and clients need those exports to work well for their monthly bookkeeping.
I have several sites where this is an issue and I am afraid I will have to offer an alternative component if this is not fixed soon.
Thank you for your understanding.
Please Log in or Create an account to join the conversation.
In my previous post, I already gave a link to some code to add in order to change the exported format of prices. You can add that code from stackoverflow in the file "export" of the view "order" via the menu Display>Views.
Please Log in or Create an account to join the conversation.
Please take this as a serious request, I am now forced to test VM
Please Log in or Create an account to join the conversation.
When I build websites I advice people to use Hikashop. I think it is well made, stable and has good support. Almost all Hikashop owners are small companies that need to do their VAT and other bookkeeping monthly and use an electronic bookkeeping system. Mainly online here. We have about 20 different online bookkeeping options here in the Netherlands. Paying and reporting tax is only possible online so the whole process is an electronic one. Most bookkeeping systems I know have a connector for at least Magento and Virtuemart. None has one for Hikashop. I have done research and got quotes for building a connector which will be around 2500 euro if the online bookkeeping system has an API. Most people are asking me if it would not be cheaper to use VM2. If I convince them Hika is better they usually are willing to make the extra step of export/import but then it needs to be a seamless effort. It has to be done at least once a month and then fiddling around is not an option.
So please help me keeping Hika on the map here by trying to find a proper way around this silly comma/decimal system. Part is PHP and localisation, part is also the export of Hika that spits out different number in different ways.
CSV export is not just a gimmick, for a lot of people it is the main connection to the their bookkeeping. Hikashop has grown mature, the pressure for new feature is no longer there. Please spent a bit of your resources to make this all work.
Bastiaan
Please Log in or Create an account to join the conversation.
As Nicolas said, you just have to replace the comma by a dot with some code.
All the exports are working fine, there is no price problems, so if it's adding a 0 at the end of the price it's probably due to a wrong modification.
Actually, thanks to the mass actions present in HikaShop you can export the desired data. Not formatting the prices as wanted, but it can be possible by creating a plugin based on the current export feature. By this way you can format the csv file as wanted.
I have added your request in the todo list, but if you need it shortly, you can ask for a quote via our contact form, or post a request on the commercial jobs section of this forum.
Please Log in or Create an account to join the conversation.
As the previous commenter said, Hikashop has matured and it is time to focus on running the business as well as selling products. Otherwise it will be impossible for you to compete on a larger scale (for example with Magento etc.).
Best regards,
Zian
EDITED: got it working with your suggestion. but some of the post still applies.
Please Log in or Create an account to join the conversation.
We need a weekly CSV export to accounting and they go crazy with this export. I can't expect them to convert and convert before they import it in their accounting software. Accounts use windows and excel so there must be a proper way to make them happy.
Please Log in or Create an account to join the conversation.
The exported files are properly openable in Excel without changing anything of the CSV. Simply, when you open the CSV with Excel you need to make sure that it uses the correct punctuation to read the CSV file. See the answers of that link:
stackoverflow.com/questions/11421260/csv-decimal-dot-in-excel
It's a shame to want to switch the webshop just because Excel is not configured properly to open the CSV.
Please Log in or Create an account to join the conversation.