Sep 24, 2012

Jul 30, 2012

Magento: How to override prototype form validations.


Step 1:
if(Validation) {  
Validation.addAllThese([
[
'custom-form-validation-zip-class',
'Please enter the vaild zip code.',
function(v)
{
if (!(/^[0-9-]+$/.test(v))) {
return false;
}
return true;
}
],
   [ ]
])
}

Step  2:
<input type="text" name="zip" id="zip "class="input-text required-entry  custom-form-validation-zip-class " />

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Magento: Zip code validation allows only numeric & hyphen


function zip_val (zip)
{
if (!(/^[0-9-]+$/.test(zip))) {
return false;
}
return true;
}

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Jul 12, 2012

Magento: How to change Admin route frontname & admin route name

There is no simple solution to this. You cannot just change the frontname of the admin route. You must also change the route name. This is because Magento expects both route frontnames and route names to be unique across all routers. Specifically, Mage_Core_Model_Url::getUrl() eventually calls a method on the front controller which retreives the router from the route name, which must be unique or there will be conflicts.
For more details click here...

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Magento: Routers Flow & Types

Magento has four types of routers as follows.
1)Admin Router
2)Frontend Router
3)CMS Router
4)Default Router
For more details click here...

Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/

Jul 4, 2012

Magento 2: What's New in It?


In an article straight from the Magento blog, Magento have announced the Magento 2project is well and truly under way.
“eCommerce adoption and technologies are growing and so is Magento”, says Magento 2 post. Due for release mid/end 2012, Magento 2 is the result of the Magento team’s learning curve in the world of ecommerce application development since its inception back in 2001.
Early talks of the new system have suggested a whole new revamp of Magento was scheduled (solving issues like database complexity and performance), and with it came much excitement. Since then there hasn’t been a lot of information made available, leaving many Magento fans and developers wondering whether it was all hot air.
But, this latest article has well and truly laid that speculation to rest, and as the cherry on the cake, Magento have even provided us with some features (albeit vague) of what we can expect from Magento 2. Much in the way of improved functionality and performance has been promised. Some of the new features set to be included are:
  • Clearer processes and transparency
  • Improved product quality
  • Improved performance and scalability
  • Improved product security
  • Enhanced Modular architecture
  • Improved coverage of Web APIs
  • Simplified customisation processes
  • Improve Multi-language support
  • Improve education and product documentation
So there we have it – certainly some much appreciated improvements scheduled for the future, and if not that specific at present, all will no doubt become clearer as time and development moves on.
What is clear from Magento’s wish/feature list, is that the guys in charge have listened to the online community, both users and developers, as much as their own heads, which certainly stands us in good stead for the future.
Note:This article originally taken from "http://www.thepixel.com/magento-2-whats-new".

Jun 20, 2012

RRB Technician Recruitment 2012- 12042 Vacancy ITI Diploma BSc


Government of India, Ministry of Railways has published Centralized Employment Notice No. 04/2012 for the recruitment of Technicians in various trades. Brief information about the eligibility requirements are following:
Education: ITI (Matriculation)/ BSc./ 10+2 (science) etc. depending on the job. Vacancies exist for following qualifications:
Age Limit: 18 to 30 years on 1st July 2012.
Pay Scale:
Technician Grade II/ Signal- Rs. 5200-20200 (GP 2400)
Technician Grade III and all others – Rs. 5200-20200 (GP 1900)
Application Fee:
Technician Grade II/ Signal- Rs. 60
Technician Grade III and other posts- Rs. 40
Official Notification and Complete Details: Complete details of the recruitment process, application format etc. have been published in the official notification which you can download from the following link:
We strictly advise the candidates to understand the application process which is pretty complex. Although, the number of vacancies advertised by the Railway is around 12042 but candidates must keep in mind that they can apply for only certain categories for which they meet the eligibility requirements. There are certain categories of post for which Common Application Form would be accepted. Candidates are advised to choose their priority options carefully. The written exams are scheduled to take place on 16th December 2012.

Note: This post originally taken from site "http://exam-jobs.com/rrb-technician-recruitment-1232901.html"

Jun 10, 2012

Mahadiscom 7000 opening 2012


MUMBAI: The Maharashtra State Electricity Distribution Company Ltd (MSEDCL) has planned to recruit 7,000 assistant electricians/linemen to boost their services across the State by July 25.

Recently, the public power utility had declared that over 75 per cent of Maharashtra is now free from load-shedding. Against this backdrop, MSEDCL has planned to undertake one of the biggest recruitment drives. The selection of the candidates will be made on the marks secured in the Secondary School Certificate (SSC) examinations.

Visit below links for more details & online application form.

Jun 1, 2012

Magento: How to add checkbox field in Admin custom module form and populate the checkbox

How to add Checkbox field in Form:

Open app/code/local/Namespace/CustomModuleName/Block/Adminhtml/ CustomModuleName /Edit/Tab/Form.php and add the below code.


$fieldset->addField('checkbox_name', 'checkbox', array(        
          'name'      => ' checkbox_name ',        
          'onclick' => 'this.value = this.checked ? 1 : 0;',            
          'tabindex' => 1
        ));

How to re-populate the checkbox on Edit page:

Just add the extra line in ablove code like below:


$fieldset->addField('checkbox_name', 'checkbox', array(        
          'name'      => ' checkbox_name ',        
          'onclick' => 'this.value = this.checked ? 1 : 0;',            
          'tabindex' => 1
        ))->setIsChecked($model->getCheckboxName());


                                                                                                                                     Thanks, Done...
=========================================================================

May 18, 2012

Archive for the ‘Magento eCommerce Tips’ Category



You see an XML error either on your screen or in your system.log but, you do not know which XML file has caused it? These tips should help you get started:
  • Edit this file on line 432
    [magento root]/app/code/core/Mage/Core/Model/Layout/Update.php
    add this code:
    1if (!$fileXml instanceof SimpleXMLElement) {
    2    <span style="background-color: yellow">// add this log statement - ensure to enable error logging on your shop Mage::log(print_r($filename, true));</span>
    3    continue;
    4}
  • Edit this file on line 515
    [magento root]/lib/Varien/Simplexml/Config.php
    1if ($xml instanceof Varien_Simplexml_Element) {
    2    $this->_xml = $xml;
    3    return true;
    4}<span style="background-color: yellow"else // add this else statement to the if - ensure to enable error logging on your shop Mage::log(print_r($string, true)); }</span>
  • Clear the Magento cache and reload the page you are working on
  • Now check your /var/lib/system.log file – you should see the XML filename or the XML string that is causing the error.
Additional Help:
As you must have guessed from the file names of the above files:
  • If the error is from this file:
    [magento root]/lib/Varien/Simplexml/Config.php on line 510
    then it, means there is an error in one of your module config files. Check one of these config.xml files:
    • [magento root]/app/etc/modules/config.xml
    • [module path]/etc/config.xml
  • If the error is from this file:
    [magento root]/app/code/core/Mage/Core/Model/Layout/Update.php on line 431
    then, there is an error in your theme layout XML file.
Hope, this helps you debug faster.

Note: This content is originally taken from site "sree.cc/category/magento_ecommerce_tips"
Click here for more Tips...