Forums / General Questions / Possible to grab xml post data to create a product to add to cart?

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

Locked

Views: 1,375

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 May 2008, 6:52 PM
#1
jrinco11 avatar

jrinco11

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

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:

<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?)

15 May 2008, 11:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

15 May 2008, 11:27 PM
#3
jrinco11 avatar

jrinco11

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

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

DrByte:

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!