This file contains hidden or 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
<reference name="header"> | |
<!-- jumpToMenu added --> | |
<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/> | |
<block type="core/template" name="jumpToMenu" template="page/html/jumptomenu.phtml"/> | |
</reference> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<!-- app/etc/modules/Magrin_Cachefilter.xml --> | |
<config> | |
<modules> | |
<Magrin_Cachefilter> | |
<active>true</active> | |
<codePool>local</codePool> | |
</Magrin_Cachefilter> | |
</modules> | |
</config> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!--app/code/local/Magrin/Cachefilter/etc/config.xml --> | |
<config> | |
<modules> | |
<Magrin_Cachefilter> | |
<version>0.1.1</version> | |
</Magrin_Cachefilter> | |
</modules> | |
<global> |
This file contains hidden or 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 | |
// app/code/local/Magrin/Cachefilter/Model/Design/Package.php | |
class SW_Core_Model_Design_Package extends Mage_Core_Model_Design_Package | |
{ | |
/** | |
* Get the configuration variable | |
* | |
* @return string | |
*/ |
This file contains hidden or 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
<?xml version="1.0"?> | |
<!--// app/code/local/Magrin/Cachefilter/etc/system.xml--> | |
<config> | |
<sections> | |
<dev translate="label"> | |
<groups> | |
<magrin_cache translate="label"> | |
<label>Cache Clear String</label> | |
<frontend_type>text</frontend_type> | |
<sort_order>100</sort_order> |
This file contains hidden or 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 | |
public function sendAction() | |
{ | |
try | |
{ | |
$mail = new Zend_Mail(); | |
$mail->send(); | |
} | |
catch (Exception $e) | |
{ |
This file contains hidden or 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 | |
$productId = 200; //Its my product id | |
$product = Mage::getModel('catalog/product')->load($productId); |
This file contains hidden or 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 | |
if($product->getTypeId() == "configurable"): | |
echo "yes"; | |
endif; |
This file contains hidden or 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 | |
$configurable= Mage::getModel('catalog/product_type_configurable')->setProduct($product); | |
$simpleCollection = $configurable->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions(); |
This file contains hidden or 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 | |
foreach($simpleCollection as $simpleProduct){ | |
echo "name:".$simpleProduct->getName(); | |
echo "<br>"; | |
echo "price:".$simpleProduct->getPrice(); | |
echo "<br>"; | |
} |