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/bash | |
modify_desktop_entry() { | |
local file="$1" | |
local tmpfile=$(mktemp) | |
local pattern='^Exec=/opt/google/chrome/google-chrome' | |
if ! [[ -f "$file" ]]; then | |
printf "File not found: %s\n" "$file" >&2 | |
return 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
->addForeignKey( | |
$installer->getFkName($tableName, COLUMN_NAME, $tableNameFkName, COLUMNFK_NAME), | |
COLUMN_NAME, //column has to be UNSIGNED if the foreign column is | |
$installer->getTable($tableNameFkName), | |
COLUMNFK_NAME, | |
\Magento\Framework\DB\Ddl\Table::ACTION_CASCADE | |
) | |
; |
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
echo Mage::getUrl($_product->getUrlPath(), array('_query' => array('param' => 'value'))) |
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
class Store_Core_Block_Catalog_Product_View_Type_Simple extends Mage_Catalog_Block_Product_View_Type_Simple{ | |
protected $_priceBlockDefaultTemplate = 'catalog/product/matched-price.phtml'; | |
protected function _getPriceBlockTemplate($productTypeId) | |
{ | |
if (isset($this->_priceBlockTypes[$productTypeId])) { | |
if ($this->_priceBlockTypes[$productTypeId]['template'] != '') { | |
return $this->_priceBlockTypes[$productTypeId]['template']; | |
} | |
} |
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
<action method="addRenderer"> | |
<type>select</type><block>bundle/catalog_product_view_type_bundle_option_select</block> | |
</action> |
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 | |
require_once '../../../../Mage.php'; | |
Varien_Profiler::enable(); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
umask(0); | |
Mage::app(); |
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
try { | |
product_img = $this->helper('catalog/image')->init($_product, 'header_slider_img'){ | |
catch (Exception $e) { | |
Mage::log('Slider '.$e->getMessage(), null, 'slider.log'); | |
} |
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> | |
<reference name="customer_account_navigation"> | |
<action method="removeLinkByName"> | |
<name>linkName</name> | |
</action> | |
</reference> | |
</customer_account> |