Need Zen-cart Scripts And Addons

PROJECT:
I am looking for a PHP programmer with skills in PHP, XML, and Zen-Cart. This is not a big project but a confusing one. Please READ this project before bidding.

I need a few scripts and addons created for my upcoming online store, these scripts and addons will allow my site to “talk” to another website via XML posts and files.

This is how it will work.

The first addon/script will allow me to pick categories I want to be included in the fist XML file. It will also only include products that are currently in store (not including out of stock items). The XML output will be as followed…

<Products>
<Product Id=””>
<GameName></GameName>
<ProductName></ProductName>
<SetName></SetName>
<Rarity></Rarity>
<Condition></Condition>
</Product>
</Products>

Product ID can simply be the products id number
GameName will be fixed as “Magic”
SetName will be pulled from the product attribute
Rarity will be pulled from the product attribute
Condition will be pulled from the product attribute

This XML file will be submitted to another website, so it must be a file.

Based on the first XML file, the other website will request info based on the items provided in the first XML file. When we request the info, we need to reply with this XML post. (Its based on item ID)

<Products>
<Product ID=”1″>
<Quantity>2</Quantity>
<Price>0.85</Price>
<UpdateTime>2009-02-16 15:47:56</UpdateTime>
</Product>
</Products> ect..

The next addon/script we need will be used to calculate shipping costs using info submitted via a XML post.

The XML post will look like this…

<RetrieveShippingOptions>
<ShippingData>
<Address1></Address1>
<Address2></Address2>
<City></City>
<State></State>
<Zip></Zip>
<CountryCode></CountryCode>
<Subtotal></Subtotal>
<Items>
<Item>
<Id></Id>
<Qty></Qty>
<Price></ Price >
</Item>
</Items>
</ShippingData>
</RetrieveShippingOptions>

The shipping costs will be calculated and a return XML post will be made as follows…

<ShippingMethods>
<ShippingMethod>
<ID>43</ID>
<Price>2.99</Price>
<ShortDescription>USPS First Class 3 to 4 days</ShortDescription>
</ShippingMethod>
<ShippingMethod>
<ID>56</ID>
<Price>15.99</Price>
<ShortDescription>UPS 2 Day Air 2 days (Insured)</ShortDescription>
</ShippingMethod>
<Errors></Errors>
</ShippingMethods>

Now if the other website makes a sale, it will send us a XML post that we will need to turn into a order that Zen-Cart can read. The XML post will look like this…

<VendorOrder>
<VendorOrderNumber>015-54-6040BD</VendorOrderNumber>
<ShippingFirstName>Jane</ShippingFirstName >
<ShippingLastName>Doe</ShippingLastName >
<Email></Email>
<ShippingAddress1>123 Main St</ShippingAddress1>
<ShippingAddress2></ShippingAddress2>
<ShippingCity>Anytown</ShippingCity>
<ShippingState>NY</ShippingState>
<ShippingZip>00000</ShippingZip>
<ShippingCountryCode>US</ShippingCountryCode>
<BillingFirstName>Jane</BillingFirstName>
<BillingLastName>Doe</BillingLastName>
<BillingAddress1>123 Main St</BillingAddress1>
<BillingAddress2></BillingAddress2>
<BillingCity>Anytown</BillingCity>
<BillingState>NY</BillingState>
<BillingZip>00000</BillingZip>
<BillingCountryCode>US</BillingCountryCode>
<Phone>555-555-555</Phone>
<IPAddress>196.126.1.100</IPAddress >
<Total>1.20</Total>
<SalesTax>0</SalesTax>
<ShippingMethod>121</ShippingMethod>
<ShippingCost>1.20</ ShippingCost>
<PaymentType>Visa</PaymentType>
<PayPalPayerStatus></PayPalPayerStatus>
<PayPalProtectionEligibility></PayPalProtectionEligibility >
<AVSCode>M</AVSCode>
<AVSCodeDesc>Match</AVSCodeDesc>
<CVVMatchCode>M</CVVMatchCode>
<CVVMatchCodeDesc>Match</CVVMatchCodeDesc>
<Products><Product>
<Id>15611</Id>
<Qty>1</Qty>
<Price>1.00</Price>
</Product>
<Product>
<Id>1531</Id>
<Qty>2</Qty>
<Price>.10</Price>
</Product>
</Products>
</VendorOrder>

Once we get the order from the other website, we need to send one last XML post out to the other website, this XML post can just be a addon, were we can fill in the required info and hit a “submit” button sending off the required info to the other site. But the output will need to be as followed…

<shippinginfo>
<package>
<vendortransid>dkeoalnni8893</vendortransid>
<transactionid>1261561</transactionid>
<shippingvendor>USPS</shippingvendor>
<trackingnumber>XX 123 456 789</trackingnumber>
<shippingdate>10/1/2010</shippingdate>
</package>
</shippinginfo>

Like I said, its not a big project, just complex.

Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *