Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How Can i Run Magento Code Outside of Magento !!! 
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

Hello

I have to show most sold products from my magento store site to my separate own company site.

How can i run magento code outside of magento ..

Please help me if anybody have any ideas

Thanks

Hridaya Ghimire

 
Magento Community Magento Community
Magento Community
Magento Community
 
crius
Guru
 
Avatar
Total Posts:  623
Joined:  2007-10-16
Denmark
 

You can use the Core API for communicating with your Magento store from other websites. I don’t think it has information about most sold products, though.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

My code like this

<?php

$proxy = new SoapClient('http://magento.cad.np/index.php/api/soap/?wsdl');

$sessionId = $proxy->login('hridaya', 'bestapi');


$filters = array(

'sku' => array('like'=>'%s%')

);

$products = $proxy->call($sessionId, 'product.list', array($filters));



var_dump($products);

?>

I found this error ...Please help me

Thanks

Hridaya

Fatal error: Class ‘SoapClient’ not found in /usr/home/cadlabs/domains/labs.cad.com.np/public_html/product_ajax.php on line 29

 
Magento Community Magento Community
Magento Community
Magento Community
 
crius
Guru
 
Avatar
Total Posts:  623
Joined:  2007-10-16
Denmark
 

Your non-Magento server needs SOAP support.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

I hav still problems whether non magento server supports SOAP

Please refer

http://labs.cad.com.np/product_ajax.php

Thanks Anders Rasmussen for reply

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top