|
Code samples - PHP - VB - C Sharp |
|
|
|
|
Please find here below, PHP, VB, C Sharp code sample to call our VMConnector Web services functions: - PHP DEMO and PHP SOURCE CODE sample to QUERY Virtuemart Products information:
- DEMO Link (test online our demo Virutemart Shop)
- PHP CODE Link (get the PHP source code to query Virtuemart catalog products)
- PHP SOURCE CODE sample to CREATE / UPDATE / DELETE Virtuemart Categories information:
- PHP CODE Link (get the PHP source code to update Virtuemart catalog categories)
- Unzip all files into a temp directory
- Edit "vmc_cat_clt.php" file and change the following lines to reflect the right URL where you installed VMConnector module for Virtuemart:
- $vmconnector_url = "http://www.yoursite_1.com/modules/mod_vmconnector/";
- $joomid = "xxxxxxxxxxxx";(put a valid Joomla / Virtuemart admin user-id )
- $joompass = "xxxxxxxxxxx";
- Save "vmc_cat_clt.php"
- Copy this file and the unzipped NuSoap folder into your web site directory like: http://www.yoursite_2.com/testcat (can be localhost on your PC or Mac)
- Run "http://www.yoursite_2.com/testcat/vmc_cat_clt.php", this will add a categorie "categoryName1" to your Virtuemart in "http://www.yoursite_1.com"
- For more information on how to use VMConnector web services, please refer to our online documentation . Thank you.
- VMCClient version 1.5.x SOURCE CODE (MS VB.NET)
- VB.NET CODE Link All the VMConnector functions calls are detailed in a real working client.
This is one of the best way to study web services functions requirements.
- C# (Sharp) sample source code to UPDATE Virtuemart products
More samples will come. A PHP Virtuemart sysnchronization client will be available soon, it will be open source and will allow you to connect your own database products throufh ADODB open source.
|