DawnG Posted November 1, 2007 Posted November 1, 2007 (edited) I'm using the Easy CSV Import to carry out some bulk uploads, but the prices are going in incorrectly. http://www.oscommerce.com/community/contributions,4920 For example if I set a price at £11.95 the price that is uploaded to the database is 1195.000 I have two questions relating to this contrib: 1 - How do I fix the pricing issue? 2 - How would I customise to include the header tags fields i.e. Products Page Title, Page Header Description, Product Keywords Any help would be greatly appreciated. Edited November 1, 2007 by DawnG Quote
DawnG Posted November 9, 2007 Author Posted November 9, 2007 -bump- Does anyone have any ideas? Quote
♥geoffreywalton Posted January 24, 2008 Posted January 24, 2008 Haven't tried it but what happens if you remove the currency symbol e.g. 11.59 not £11.59 Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
bb_wolfe Posted February 9, 2008 Posted February 9, 2008 I'm using the Easy CSV Import to carry out some bulk uploads, but the prices are going in incorrectly.http://www.oscommerce.com/community/contributions,4920 For example if I set a price at £11.95 the price that is uploaded to the database is 1195.000 I have two questions relating to this contrib: 1 - How do I fix the pricing issue? 2 - How would I customise to include the header tags fields i.e. Products Page Title, Page Header Description, Product Keywords Any help would be greatly appreciated. Here is now to fix: Open the file /admin/csv_import.php Edit line 298: Original: $data[$products_fields['products_price']] = str_replace('.', '', $data[$products_fields['products_price']]); Comment that line out. New: //$data[$products_fields['products_price']] = str_replace('.', '', $data[$products_fields['products_price']]); Then reupload that file and you should be good. Not sure WTF he was doing when he said "Excel uses ',' as decimal separator, mysql decimal uses '.'" in his comments, but it's wrong. Clear the categories then try the import again. Email [email protected] if you need help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.