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
<block type="core/text" name="head.jquery"> | |
<action method="setText"> | |
<text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>]]></text> | |
</action> | |
</block> |
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 | |
Zend_Debug::dump(Mage::app()->getLayout()->getUpdate()->getHandles()); |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
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
"stores";"sku";"filename";"attributes";"exclude" | |
"admin";"HTC Touch Diamond";"htc_touch_diamond.png";"image";"no" | |
"admin,default,french";"intelc2d";"intelc2d.png";"";"yes" | |
"german";"intelc2d";"intelc2d.png";"small_image,thumbnail";"no" |
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
_site |
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 | |
/* @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ | |
$installer = $this; | |
$installer->startSetup(); | |
// Add the attribute `baz` with some fields | |
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'baz', array( | |
'label' => 'The Baz', // The label ;) |
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 | |
defined('__DIR__') || define('__DIR__', dirname(__FILE__)); | |
// Inclure Mage | |
require_once __DIR__ . '/../app/Mage.php'; | |
// Init Mage | |
Mage::app('admin')->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); |
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 | |
class Jbh_ProductAttribute_Helper_Output extends Mage_Core_Helper_Abstract | |
{ | |
/** | |
* Change the output of our attribute | |
* @param Mage_Catalog_Helper_Output $outputHelper The helper | |
* @param string $attributeHtml The HTML | |
* @param array $params The parameters |
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
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db |
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
vagrant@vagrant-debian-wheezy:~$ sudo mount -v -o vers=3 192.168.42.1:'/Users/jacques/Sites/laurecrea/htdocs/' /var/www/magento/ | |
mount: no type was given - I'll assume nfs because of the colon | |
mount.nfs: timeout set for Fri Aug 2 13:11:26 2013 | |
mount.nfs: trying text-based options 'vers=3,addr=192.168.42.1' | |
mount.nfs: prog 100003, trying vers=3, prot=6 | |
mount.nfs: trying 192.168.42.1 prog 100003 vers 3 prot TCP port 2049 | |
mount.nfs: prog 100005, trying vers=3, prot=17 | |
mount.nfs: trying 192.168.42.1 prog 100005 vers 3 prot UDP port 44373 | |
mount.nfs: mount(2): Permission denied | |
mount.nfs: access denied by server while mounting 192.168.42.1:/Users/jacques/Sites/laurecrea/htdocs/ |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: firewall | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Firewall | |
# Description: Configure all iptables rules. |