frontend Tip's on Magento, Web Development & Other Stuff

How to validate form in magento

As you know, Magento uses Prototype as javascript library.  It provides a simple way to validate html form values. Below is an example: <form name=”my-form” id=”my-form” method=”post”> <label for=”firstname”> < ?php echo $this->__(‘First name’) ?> <span>*</span></label><br /> <input  id=”firstname” name=”firstname” class=”input-text required-entry”/> <label for=”lastname”> < ?php echo $this->__(‘Last name’) ?> <span>*</span></label><br /> <input  id=”lastname” name=”lastname”…

Read More

Magento templates and layout files location

It’s a bit late already, but I wanted to make sure I put at least one thing today so we’re going to go over the next question in the Magento Certification Study Guide. Here’s the question from the guide — lets get to it! Describe Magento templates and layout files location A theme consists of…

Read More