Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

XML Export Help


joss54

Recommended Posts

Hello everybody,

 

with many hours spent and a lot of help from contributions and forum I have an eshop up and running some time now.

 

The new dilemma is that I would like to export 2 xml files, one with the categories and another with all the products.

 

The first should have the categories as

	  <category>
  <id>1</id>
  <title>CPU</title>
  </category>
  <category>
  <id>11</id>
  <title>CPU -> Intel</title>
  </category>
  <category>
  <id>86</id>
  <title>CPU -> AMD</title>
  </category>

 

The second one with the products should be something like

	  <product>
  <id>860</id>
  <title>AMD ATHLON 64</title>
  <description>CPU - Socket 754</description>
  <image>http://www.mytempshop.com/catalog/popup_image.php?pID=860</image>
  <price>140.50</price>
  <category_id>86</category_id>
  <url>http://www.mytempshop.com/catalog/product_info.php?cPath=86&products_id=860</url>
  </product>

 

Now... I've tried a contribution named XML Export to just have a look what it exports but it has a problem showing

Fatal error: Call to undefined function: tep_get_category_tree() in /home/mytempshop/public_html/catalog/xml_export.php on line 251

 

Knowledge of php and xml very few... Can someone please help with that?

 

Thanks in advance

Link to comment
Share on other sites

Hello everybody,

 

with many hours spent and a lot of help from contributions and forum I have an eshop up and running some time now.

 

The new dilemma is that I would like to export 2 xml files, one with the categories and another with all the products.

 

The first should have the categories as

	  <category>
  <id>1</id>
  <title>CPU</title>
  </category>
  <category>
  <id>11</id>
  <title>CPU -> Intel</title>
  </category>
  <category>
  <id>86</id>
  <title>CPU -> AMD</title>
  </category>

 

The second one with the products should be something like

	  <product>
  <id>860</id>
  <title>AMD ATHLON 64</title>
  <description>CPU - Socket 754</description>
  <image>http://www.mytempshop.com/catalog/popup_image.php?pID=860</image>
  <price>140.50</price>
  <category_id>86</category_id>
  <url>http://www.mytempshop.com/catalog/product_info.php?cPath=86&products_id=860</url>
  </product>

 

Now... I've tried a contribution named XML Export to just have a look what it exports but it has a problem showing

Knowledge of php and xml very few... Can someone please help with that?

 

Thanks in advance

 

Sorry you must put xml_export.php file in your /admin folder. I will revise install instruction in contrib area.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...