Fatal error: Uncaught Error: Function name must be a string in app/code/core/Mage/Core/Model/Layout.php:555
-
zendnwar
-
February 24, 2016
-
Magento
-
192 Comments
This is because you need to clarify the `$callback` variable will be called as a method (function). The original bit of code was: (file app/code/core/Mage/Core/Model/Layout.php) Now you need to replace it with this with: 1 $out .= $this->getBlock($callback0)->{$callback1}(); Don’t edit the files directly – instead create a separate extension which overrides Mage_Core_Model_Layout with your own model. If that isn’t to …
Continue Reading
safari browser add to cart does not work in magento
-
zendnwar
-
February 7, 2016
-
Magento
-
238 Comments
Updated the the cookie lifetime in the admin console from 3600 to 86400 and this fixed the login and the add to cart in IE, Safari and iPhone. configuration->web->session cookie management->cookie lifetime
Continue Reading
How to disable compilation in Magento
-
zendnwar
-
February 7, 2016
-
Magento
-
0 Comments
It can be done by two: 1. From Magento admin Navigate to System > Tools > Compilation page and click on Disable button Navigate to System > Cache Management screen and use Flush Cache button. 2. Via SFTP/FTP, by editing the includes/config.php file To disable compilation in Magento, edit includes/config.php. #define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’); define(‘COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);
Continue Reading
Magento: change to Product Name or Description not displayed on frontend
-
zendnwar
-
January 2, 2016
-
Magento
-
0 Comments
Try re-indexing data and flushing cache from Magento Admin. System -> Index Management System -> Cache Management If does not working please check following step: Please goes to Manage Attribute Select “short description”, “description” & “Name” and Scope should be changed “Global” This solved my problem.
Continue Reading
What happens when existing orders are edited in the Magento admin
-
zendnwar
-
November 14, 2015
-
Magento
-
0 Comments
When an order is edited in admin, that order gets cancelled and new order with edited data is created again
Continue Reading
How to Set Custom Title to the Success page in Magento
-
zendnwar
-
November 14, 2015
-
Magento
-
0 Comments
Copy checkout.xml file from app/design/frontend/base/default/layout/checkout.xml to app/design/frontend/default/yourtheme/layout/checkout.xml under checkout_onepage_success tag <reference name=”head”> <action method=”setData” translate=”title”><key>title</key><value>your title </value></action> </reference>
Continue Reading
please enter a valid url. protocol is required (http // https // or ftp //) in magento instaltion
-
zendnwar
-
August 21, 2015
-
Magento
-
0 Comments
For this you need to remove the validation for the particular section. 1. Open \app\design\install\default\default\template\install\config.phtml 2. Find the textbox where the base url is entered. It will be around line no 85 with name ‘configunsecure_base_url‘ 3. Remove ‘validate-url’ from its class and save the file. Replace <li> <label for=”base_url”><?php echo $this->__(‘Base URL’) ?> <span class=”required”>*</span></label><br /> <input type=”text” name=”configunsecure_base_url” id=”base_url” …
Continue Reading
How to get data from Magento System Configuration?
-
zendnwar
-
July 30, 2015
-
Magento
-
0 Comments
<?php Mage::getStoreConfig(‘sectionName/groupName/fieldName’); ?>
Continue Reading
How to get attribute set name in Magento?
-
zendnwar
-
July 30, 2015
-
Magento
-
0 Comments
<?php Mage::getModel(‘eav/entity_attribute_set’)->load($_product->getAttributeSetId())->getAttributeSetName(); ?>
Continue Reading
Get custom attribute value in Magento
-
zendnwar
-
July 22, 2015
-
Magento
-
0 Comments
$attribute=$_product->getResource()->getAttribute(‘custom_attribute_code’); if ($attribute) { echo $attribute_value = $attribute ->getFrontend()->getValue($_product); } Hope it will you.
Continue Reading