Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    2
    Plugin Contributions
    0

    Default Possible to grab xml post data to create a product to add to cart?

    hey ya'll, so I'm looking at different ways of implementing something...

    I have a catalog I am able to retrieve product information from a website which when "add to cart" is clicked, on a particular product, it will send xml data via a FORM-POST to a url of my choosing. I can't seem to find out if it is possible to have zencart be able to utillize this xml data about the product, ie:

    Code:
    <Root>
    	<Item basket_id=”number I create”>
    		<ItemID>AAA</ItemID>
    		<Description>Textual description</Description>
    		<Quantity>Number</Quantity>
    		<Price>Number</Price>
    		<DimensionA>Usually a number</DimensionA>
    		<DimensionB> Usually a number </ DimensionB>
    	</Item>
    </Root>
    and add it to a basket/cart in zencart. From what I have been able to gather, the only items that are 'addable' to a cart in zencart are products created within the zencart software itself -- in other words, I believe I cannot use external (to zencart) data to add a product into a cart -- is that correct, or is this actually possible? (or is what I'm trying to do totally not clear, haha?)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Possible to grab xml post data to create a product to add to cart?

    Zen Cart works only with products in its database. It doesn't offer you the ability to create products out of thin air on-the-fly without adding them to the database first.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Possible to grab xml post data to create a product to add to cart?

    Quote Originally Posted by DrByte View Post
    Zen Cart works only with products in its database. It doesn't offer you the ability to create products out of thin air on-the-fly without adding them to the database first.
    ah, alright ,that's what I was thinking -- but just to be sure, you understand what I'm talking about, right? I retrieve the product information from POST by XML from a third party provider, and am trying to create a cart for these items.

    Since zencart is not able to do this particular function, any suggestion of what could?

    thanks for your help thus far!

 

 

Similar Threads

  1. LinkPoint Invalid XML - how to grab copy of the XML request?
    By smallarmsdealer in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Jan 2014, 07:57 PM
  2. is it possible to send POST data via zen_redirect?
    By crazysarah in forum General Questions
    Replies: 1
    Last Post: 11 Aug 2012, 05:01 PM
  3. Replies: 0
    Last Post: 28 Jan 2011, 12:44 PM
  4. Replies: 11
    Last Post: 18 Sep 2009, 05:13 AM

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