This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Copy app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php | |
To | |
app/code/local/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php | |
Open your local copy of Grid.php and around line 114 add the following: | |
*/ | |
$this->addColumn('status', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
General Contact | |
<?php | |
/* Sender Name */ | |
Mage::getStoreConfig('trans_email/ident_general/name'); | |
/* Sender Email */ | |
Mage::getStoreConfig('trans_email/ident_general/email'); | |
?> | |
Sales Representative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change: (Line:227 in 1.6.1.0) | |
<?php | |
$session->clear(); | |
?> | |
To: | |
<?php | |
//$session->clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getCartQuantity () { | |
$cart = Mage::getModel('checkout/cart')->getQuote()->getData(); | |
if (isset($cart['items_qty'])) | |
return (int)$cart['items_qty']; | |
else | |
return 0; | |
} | |
echo getCartQuantity ().' Item(s)'; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $this->__('Hi %s', Mage::getSingleton('customer/session')->getCustomer()->getFirstname()); ?> | |
<?php echo $this->__('Hello Mr %s', Mage::getSingleton('customer/session')->getCustomer()->getLastname()); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<customer_account_create> | |
<reference name="customer_form_register"> | |
<action method="setShowAddressFields"><value>true</value></action> | |
</reference> | |
</customer_account_create> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $parentname = $this->getCurrentCategory()->getParentCategory()->getName(); echo $parentname; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $j = jQuery.noConflict(); | |
var $j = jQuery.noConflict(); | |
$j(document).ready(function(){ | |
$j("div").hide(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $this->getSkinUrl('images/YOURFILE.jpg') ?> |
OlderNewer