Using iBBDemo2 tool we can check any websites in ipad and iphone mode .
To download this application:
http://www.puresimstudios.com/ibbdemo/
To download this application:
http://www.puresimstudios.com/ibbdemo/
<
global
>
<
models
>
<
catalogrule
>
<
rewrite
>
<
rule
>Yourpackage_Yourmodule_Model_Rule</
rule
>
</
rewrite
>
</
catalogrule
>
</
models
>
Create file called Rule.php in YOUR module Model directory.
Add this code in newly created file:
class
Yourpackage_Yourmodule_Model_Rule
extends
Mage_CatalogRule_Model_Rule
{
/**
* Apply all price rules to product
*
* @param int|Mage_Catalog_Model_Product $product
* @return Mage_CatalogRule_Model_Rule
*/
public
function
applyAllRulesToProduct(
$product
)
{
$this
->_getResource()->applyAllRulesForDateRange(NULL, NULL,
$product
);
$this
->_invalidateCache();
//Notice this little line
Mage::app()->getCacheInstance()->cleanType(
'block_html'
);
$indexProcess
= Mage::getSingleton(
'index/indexer'
)->getProcessByCode(
'catalog_product_price'
);
if
(
$indexProcess
) {
$indexProcess
->reindexAll();
}
}
}
var error = false, day = parseInt(this.day.value) || 0, month = parseInt(this.month.value) || 0, year = parseInt(this.year.value) || 0;
Replace:
var error = false, day = parseInt(this.day.value, 10) || 0, month = parseInt(this.month.value, 10) || 0, year = parseInt(this.year.value, 10) || 0;
$_options = Mage::getResourceModel('eav/entity_attribute_option_collection') ->setStoreFilter(0) ->setAttributeFilter($attribute_id) ->setPositionOrder('asc') ->load();