Forums / Developer / Importing product data from an external csv file

Importing product data from an external csv file

Author Message

steve walker

Tuesday 14 September 2004 4:38:33 am

Hi there,

There have been a multitude of posts on importing external data in Ez, such as:

http://ez.no/community/forum/developer/content_import_questions

http://www.ez.no/ez_publish/documentation/development/importing_attribute_data

http://ez.no/community/forum/setup_design/import_product_data_from_xl_spreadsheet_customisation_of_administration_interface

..with none resulting in an 'easy to do' implementation - and there are the contributions found at:

http://www.ez.no/community/contributions/import_export

which don't hold much for simple data importation.

I want to import data from an xl or csv file - preferably using a web interface that has a 'browse to source file' form on it - that when uploaded updates, creates and deletes the products belonging to a particular class.

The name would (could) be the unique identifier, and the imported file would list the other attributes to be imported into each named product.

There has been a lot of work done by Alex, Paul(s) and others to create import scripts, but I havent seen an easy to use result as yet.

I would have thought a contribution that specifically imported product data from external files would be a really useful function. Is there anyone out there who would consider helping create this sort of contribution or has some working scripts to get the ball rolling?

Regards, Steve.

http://www.oneworldmarket.co.uk

steve walker

Tuesday 14 September 2004 4:58:20 am

One thought on this - could the erp plugin contrib be used with a soap exportation from excel to bring the data in?

Steve

http://www.oneworldmarket.co.uk

Paul Forsyth

Tuesday 14 September 2004 6:36:34 am

Steve,

You will probably hate me for saying but i think there is something do this in 3.5. At least i seem to remember something going in... Will take a look.

However, the hardest part about importing is matching to your object/class structure. Reading the data is very simple, and most of the examples you listed will do this.

paul

steve walker

Tuesday 14 September 2004 6:54:48 am

Paul,

Thanks for your reply. 3.5... on the one hand ¡damn!, on the other hand it sounds like there is some good new functionality coming up in 3.5.

Is there a release date for 3.5 as yet? Or is it possible to extract the import function as an extension ala the multioption?

If I knew for sured that 3.5 would be able to do this and it was going to be released in the not too distant future I could in theory carry on dev'ing the rest of the site and the data imprtation function toward the end of the build.

Normally you kind of want to get these fundamentals working early on in the build...

Regards, Steve.

http://www.oneworldmarket.co.uk

Paul Forsyth

Tuesday 14 September 2004 7:05:32 am

3.5 details are here:

http://ez.no/community/news/ez_publish_3_5_release_plan

Though it was announced last week the alpha has slipped a week. Not sure if they other dates have.

I think this functionality is more integrated. Datatypes are much easier to pull out :)

If you want we could discuss the object/class structure offline to determine what kind of import it will be.

paul

Frederik Holljen

Tuesday 14 September 2004 7:50:38 am

We will try to keep the release dates for the beta and final even though it may become a bit tight. Any further updates will be posted.

eZ debug

Timing: Jan 14 2025 21:48:19
Script start
Timing: Jan 14 2025 21:48:19
Module start 'content'
Timing: Jan 14 2025 21:48:20
Module end 'content'
Timing: Jan 14 2025 21:48:20
Script end

Main resources:

Total runtime1.2136 sec
Peak memory usage6,144.0000 KB
Database Queries198

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 684.4688214.7734
Module start 'content' 0.00611.0793 899.24221,870.8438
Module end 'content' 1.08540.1281 2,770.0859635.4844
Script end 1.2135  3,405.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00640.5290210.0003
Check MTime0.00140.1153210.0001
Mysql Total
Database connection0.00060.051610.0006
Mysqli_queries1.123992.60751980.0057
Looping result0.00170.14141950.0000
Template Total1.182997.520.5914
Template load0.00360.295320.0018
Template processing1.179397.175920.5897
Template load and register function0.00130.107710.0013
states
state_id_array0.00100.078410.0010
state_identifier_array0.00160.135020.0008
Override
Cache load0.00330.2694410.0001
Sytem overhead
Fetch class attribute can translate value0.00130.111040.0003
Fetch class attribute name0.00190.153070.0003
XML
Image XML parsing0.00120.095640.0003
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00100.0791210.0000
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs