Registration Mobile number validation In Magento

Blog Archives

Registration Mobile number validation In Magento

Some time in account registration we need validate mobile no, for that use this code <input type=”text” name=”telephone” id=”telephone” value=”<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>” title=”<?php echo $this->__(‘Telephone’) ?>” class=”input-text validate-mobileno” /> Replace script  <script type=”text/javascript”> //<![CDATA[  var dataForm = new VarienForm(‘form-validate’,

Posted in Blog, Magento Tagged with: , , ,

Creating a Count Down Timer when Customer Logs Out From Account in Magento

Magento has a very Lame Layout Screen when customer logs out. To make it little interesting I thought why not add a count down timer over there. So this is how i made a count down timer using JavaScript. Goto

Posted in Blog, Jquery/Ajax, Magento Tagged with: ,

How to share custom data on social network site !!!

For Facebook share <a id=”ref_fb” href=”;p[title]=<?php echo $ftitle;?>&amp;p[summary]=<?php echo $fdescription;?>&amp;p[url]=<?php echo urlencode($fshare_url);?>&amp; p[images][0]=<?php echo $fimage_url;?>” onclick=”, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’); return false;”>&nbsp;</a> For Twitter share <a id=”ref_tw” href=”<?php echo $ttitle; ?>+<?php echo urlencode($tshare_url);?>” onclick=”, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’);return false;”>&nbsp;</a>   For Linkedin share <a

Posted in Blog, Wordpress Tagged with: , , , , ,

How to execute function on first load using Javascript

Often there is a requirement to execute some function just once. For example : You need to show the promotional pop-up banner first time the customer visits the website. There are many ways to achieve this. The way i use

Posted in Blog, Jquery/Ajax Tagged with: ,

How to Create a Custom WordPress Widget

Add in function.php file in wp-content/twentytwelve Below Widget function. register_sidebar( array( ‘name’ => __( ‘widget name’, ‘twentytwelve’ ), ‘id’ => ‘widget id’, ‘description’ => __( ‘Appears on posts and pages except the optional Front Page template, which has its own widgets’,

Posted in Blog, Wordpress Tagged with: , ,

Validate Individual Form Field In Magento

Validating an individual form field in Magento is pretty easy. You can use the inbuilt Magento function named Validation.validate(). You can do this in two way 1) Call the function from the individual field 2) Call the function on some

Posted in Blog, Jquery/Ajax, Magento Tagged with: , , ,