Create Subdomain Programatically in php

Create Sub domain : function create_subdomain($subDomain,$cPanelUser,$cPanelPass,$rootDomain) { // $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain; $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain . "&dir=public_html/subdomains/" . $subDomain;…

How to add Custom Image Field in Category Magento

$setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $entityTypeId = $setup->getEntityTypeId('catalog_category'); $attributeSetId = $setup->getDefaultAttributeSetId($entityTypeId); $attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId); $setup->addAttribute('catalog_category', 'image1', array( 'type' => 'varchar', 'input' => 'image', 'backend' => 'catalog/category_attribute_backend_image', 'group' => 'General', 'label'…

Paypal Adaptive Payment

ini_set("track_errors", true); //set PayPal Endpoint to sandbox $sandbox=""; $API_AppID = XXXXXXXXXXXXXXXXXXX;//your adaptive payment app Id //value for check sandbox enable or disable $sandboxstatus=1; if($sandboxstatus==1){ $sandbox="sandbox."; $API_AppID="APP-80W284485P519543T"; } $url = trim("https://svcs.".$sandbox."paypal.com/AdaptivePayments/Pay");…