Thứ Ba, 30 tháng 8, 2011

How to get contact us email address in magento

Here’s the code to get Contacts email:



<?php echo Mage::getStoreConfig('contacts/email/recipient_email');?>

Or you can change it from admin -> System-> Configuration. From the left tab select Contacts then On the right side you will see Email Options Tab. From that tab you can see there is a field for send Emails To.Change th evalue to your require email address

Thứ Năm, 4 tháng 8, 2011

How to uncheck Radio button by jquery








Write the Below code to Unchecked Radio Button by Jquery




<script type="text/javascript">
$(document).ready(function(){
$("#btn").click(function(){
$('input[name="rd"][type="radio"]:checked').each(function(){
$(this).attr("checked", false);
});
});
});
</script>






<form action="" name="aa" method="post">
<input type="radio" name="rd" value="1"/>
<input type="radio" name="rd" value="2"/>
<input type="radio" name="rd" value="3"/>
<input type="button" id="btn" value="Click" />
</form>

How to change value and fetch value of Minimum Order Amounts of free shipping in magento


First of all to make Minimum Order Amounts of Free Shipping to [STORE VIEW] instead of [WEBSITE] then Go to app->code->core->Mage->Shipping->etc->System.xml


then change the value of <show_in_store> to 1 under carriers -> groups -> freeshipping ->free_shipping_subtotal.


Now to fetch the value of the Minimum Order Amount according to store view write the below code



<?php echo Mage::getStoreConfig('carriers/freeshipping/free_shipping_subtotal'); ?>