How to call webservice in php?

Blog Archives

How to call webservice in php?

I have called web services in php by using curl function. In below I have given  one example.  I have sent XML Request by using curl function.Because My web services return data on XML Format. $xml_data = ”; //pass parameter

Posted in Blog, PHP Tagged with: , ,

Passing values and parameters to template file using XML and ShortCode from Magento Admin

At times there is a need to pass some parameters to template file in Magento. Some of the conditions are as follow: 1) Category Id is needed to be passed to display all the products of that particular category 2)

Posted in Blog, Magento Tagged with: , ,

How to display blog posts (Fishpig module) with featured images on magento homepage?

When we integrate fishpig with magento we can have one folder “wordpress” in the template folder.(path:- appdesignfrontendbasedefaultwordpress). in that we can create our custom folder like “xyz”. in that we need to create one .phtml file called “xyz.phtml”. the followings

Posted in Blog, Magento Tagged with: , , , , ,

Getting Skin, Media, JS, Store URL in Magento

Following is a quick note on how to get different URL’s in Magento Getting URL using PHP code : Base URL : Mage::getBaseUrl(); Skin URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); Skin URL : $this->getSkinUrl(‘images/imagename.jpg’); Media URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); JS URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); Store

Posted in Blog, Magento Tagged with: , ,