Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    6
    Plugin Contributions
    0

    Default Generating Products & Attributes from Imported Data File

    Hi - can anyone help me please?

    I want to upload a CSV file and use the contents to generate Products, Attributes and Products with Attributes Stock.

    When I have the data imported as-is into a table, I work through it and create the product records and want to generate the product options, values and stock for the different sizes.

    What I am stuck on - is the products_options_id and any others that aren't autoincremented.

    I see that there is a function call to zen_db_prepare_input used to create this value - but I don't understand it.

    Can anyone explain how I get the next insert ID for these files?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Generating Products & Attributes from Imported Data File

    Easy Populate is the probable route to go.

    Go to:

    http://www.modhole.com/modhole/index..._Document_id=2

    And download version 1.2.5.4

    There is my Easy Populate tutorial on the WIKI

    http://www.zen-cart.com/wiki/index.php/Easy_Populate

    (NB: Easy Populate ADVANCED is the commercial version and is better programmed to handle attributes - available at MODHOLE)
    20 years a Zencart User

  3. #3
    Join Date
    Sep 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: Generating Products & Attributes from Imported Data File

    Hi schoolboy

    I have looked at Easy Populate, but this is something I want to use regularly to upload the current stock picture from a VFP Stock & Accounts system.

    I have the answer to this particular problem - I'll just use SELECT MAX(id) FROM file_name and increment this value. (Hopefully that works)

    Thanks for the quick response.

  4. #4
    Join Date
    Sep 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: Generating Products & Attributes from Imported Data File

    OK - I have got all the PHP / SQL code working to generate the categories, products, attributes and stock from my data that I've imported into a table via phpMyAdmin

    Now - I need to be able to locate a file uploaded by ftp and automatically read this data into the temporary table, then delete / move the CSV file.

    Any ideas how to do this?

 

 

Similar Threads

  1. Tax & Imported Products
    By Renz in forum General Questions
    Replies: 5
    Last Post: 9 Oct 2012, 03:37 AM
  2. No text attributes imported from osc
    By CharInLasVegas in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 8 Feb 2009, 04:21 AM
  3. Generating Data from Uploaded CSV File
    By pockets in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Nov 2008, 09:13 PM

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