Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    Default Importing Order Information into New Store

    I want to import the contents of the order history from a ZC 1.5.1 store into my new 1.5.4 store. I have tried exporting into a CSV file and then uploading into the corresponding table in the new store.

    However, the order date fields keep defaulting, it doesn't let me import dates, so it is completely screwing up my orders, I cannot tell which is new and which are old!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Importing Order Information into New Store

    I cannot tell which is new and which are old!
    What are you attempting to do???
    Apparently not upgrade
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    Default Re: Importing Order Information into New Store

    I am trying to migrate the date from the old tables to the new ones.

    The date fields do not seem to allow date to populate from the .csv files that I've used to import the information. I've not come across this before, the dates are in the import file but do not write to the fields in the target table.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Importing Order Information into New Store

    Quote Originally Posted by WWWD View Post
    I am trying to migrate the date from the old tables to the new ones.

    The date fields do not seem to allow date to populate from the .csv files that I've used to import the information. I've not come across this before, the dates are in the import file but do not write to the fields in the target table.
    While such "migration" would be/have been better to do as part of an upgrade, are the dates in the format: YYYY-MM-DD? In your CSV file?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Importing Order Information into New Store

    Quote Originally Posted by WWWD View Post
    The date fields do not seem to allow date to populate from the .csv files that I've used to import the information. I've not come across this before, the dates are in the import file but do not write to the fields in the target table.
    Why are you exporting/importing using .csv ? (yes, there ARE valid reasons for this), but if this is a matter of migrating the data from one version of ZenCart to another, then you are better served doing this in .sql format and the dates will be retained).

    I should also mention that SQL servers can be/are quite finicky about the data being imported into date/time fields because internally these are stored as a timestamp, which is typically the number of seconds that have passed since January 1970.

    There's several reasons for this.
    1) It makes date related calculations easy and reliable.
    2) It negates the effects of timezone differences for when/if the data is migrated from a server based in (say) USA to a server based in UK
    3) It maintains compatibility between different servers that may happen to use a different date *format*, such as MM-DD-YYYY, DD-MM-YYYY and even D-M-Y

    This is never an issue with the SQL export/import, but with .CSV these timestamps (numbers) are converted to/from a human readable text format, and if the server being imported to doesn't understand the text format, it'll either set the date to null, zero, or 01-01-1970

    Cheers
    RodG
    Last edited by RodG; 19 Jul 2015 at 06:37 AM.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Importing Order Information into New Store

    I want to import the contents of the order history from a ZC 1.5.1 store into my new 1.5.4 store
    You are best off not attempting to pick & choose which data to import or not
    If upgrading follow the tutorials on that and import a "FULL" database from your 1.5.1 shop and then re-run zc_install and select upgrade database only
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Importing a product spreadsheet into a new store
    By nadsab in forum General Questions
    Replies: 5
    Last Post: 13 Mar 2012, 09:44 AM
  2. Importing older mysql store into 1.38
    By rayrock1111 in forum General Questions
    Replies: 0
    Last Post: 15 Mar 2010, 01:50 AM
  3. Importing Rss Product Feed into my Zencart store
    By Checooper in forum General Questions
    Replies: 2
    Last Post: 20 Aug 2008, 05:52 PM
  4. importing information from store to a front page
    By kitcorsa in forum General Questions
    Replies: 2
    Last Post: 4 Feb 2008, 12:05 PM
  5. Importing order information
    By magicpants in forum Managing Customers and Orders
    Replies: 0
    Last Post: 23 Apr 2007, 11:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR