Override controller Not Working in Prestashop 1.6
In some cases override method is not working in prestashop 1 .6 for overcome this issue we need to remove or rename the following file from root cache folder delete/rename the…
In some cases override method is not working in prestashop 1 .6 for overcome this issue we need to remove or rename the following file from root cache folder delete/rename the…
<?php $src = 'myfolder'; $dst = 'dest'; $files = glob("myfolder/*.*"); foreach($files as $file){ $file_to_go = str_replace($src,$dst,$file); copy($file, $file_to_go); } ?>
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;…
RewriteEngine On # Assuming you're running at domain root. Change to working directory if needed. RewriteBase / # www check # If you're running in a subdirectory, then you'll need…
$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'…
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");…
Nice post for Adeptive Paypal Reference
Fix was to modify function _isMemoryLimitReached() in /lib/Varien/Image/Adapter/Gd2.php (line 68) as follows: protected function _isMemoryLimitReached() { if (ini_get('memory_limit') == -1) { return false; } ... existing code ... }…
Remove Duplicate Rows From Sql Table DELETE amazon_order_detailsnirav FROM amazon_order_detailsnirav LEFT OUTER JOIN ( SELECT MAX(id) as id, `sku`, `ASIN`, `amazon_order_id`, `purchase_date` FROM amazon_order_detailsnirav GROUP BY `sku`, `ASIN`, `amazon_order_id`,`purchase_date` )…
Magento Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in /var/www/xxx/app/code/core/Mage/Core/Model/App.php on line 634 and defined in /var/www/xxx/app/code/core/Mage/Core/Model/Store.php on line 395 When…