|
Vendor XML Product Import |
|
|
|
|
Written by craig
|
|
Thursday, 28 October 2010 07:26 |
|
In JHShop V1.5.2 we are introducing a Vendor XML Import System that runs off of a cron job:
all that is needed is an xml layed out as per below:
<ROOT> <Product> <Category>HARDWARE > KEYBOARDS</Category> <ProductCode>25-MSINTKB</ProductCode> <ProductName>Microsoft Internet Keyboard PS/2</ProductName> <Brand>MICROSOFT</Brand> <Price>69.99</Price> <ProductURL> http://www.snasco.co.za/product_info.php?products_id=25 </ProductURL> <ImageURL> http://www.snasco.co.za/images/microsoft/intkeyboardps2.gif </ImageURL> <ProductDescription> The Internet Keyboard has 10 Hot Keys on a comfortable standard keyboard design that also includes a detachable palm rest. The Hot Keys allow you to browse the web, or check e-mail directly from your keyboard. The IntelliType Pro software also allows you to customize your hot keys - make the Internet Keyboard work the way you want it to! </ProductDescription> <StockLevel>15</StockLevel> <Currency>ZAR</Currency> </Product> <Product> <Category>NOTEBOOKS > MECER</Category> <ProductCode>29-B5125Q</ProductCode> <ProductName>Mecer Xpression B5125Q Calpella</ProductName> <Brand>MECER</Brand> <Price>7699.99</Price> <ProductURL> http://www.snasco.co.za/product_info.php?products_id=29 </ProductURL> <ImageURL>http://www.snasco.co.za/images/l_mecer-m748s.jpg</ImageURL> <ProductDescription> Mecer Xpression B5125Q Calpella Core i-Series Notebook (Intel HM55)Intel Arrandale Core i5-450M 2.4GHz / 2.66GHz W/3M 1333MHz [i5-450M]2GB DDR3-1333, Upgradable to 8GB. < 640GB SATA IIDVDRW Super Multi DriveEmbedded ATi Radeon HD5470 W/1GB DDR3Embedded 56K Voice Fax/ModemEmbedded Gigabit EthernetBuilt-in 7-in-1 Card Reader (MMC/RSMMC/SD/MiniSD/MS/MS Pro/MS Duo)Embedded 802.11 b/g/n Wireless LANBuilt-in BluetoothIntel High Definition Audio, Built-in Speaker & Microphone Built-in 2.0M Pixel CameraBuilt-in Fingerprint ReaderSuppot Intel Anti-Theft Technology1 x Half Mini PCIe Slot for Internal 3G Module3 x USB2.0, 1 x e-SATA, 1 x HDMI, Multi Gesture Touch PadExpress Card Slot (34/54mm) 2 Year WarrantyLi-Ion Battery (6 cell / 4400 mAh, 3.5 hours operating) & Charger, Excluding Carry BagMicrosoft Security Essentials Anti VirusWindows 7 32/64 Bit Home PremiumDimension: 374 x 256 x 25/38mm Weight: 2.6kg </ProductDescription> <StockLevel>9</StockLevel> <Currency>ZAR</Currency> </Product>
</root>
Then in your JHShop admin area under catalog vendors setup your vendor with the url and relevent settings
Set your cron to run php /path/to/joomla/components/com_jhshop/system/cron.php
This will then import your products for you.
|