Archive for the ‘Magento eCommerce Tips’ Category

Newsletter Sign-up Checkbox on Magento Checkout Page

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/newsletter-sign-up-checkbox-on-magento-checkout-page’,size:’large’} Got this nice extension which puts a ‘Newsletter Sign-up’ check-box on the Magento checkout page.
http://www.magentocommerce.com/magento-connect/QuickModules/extension/1361/checkout-newsletter/
Due to permission restrictions I was not able to connect to the Magento Connect Manager link on my live cart. So I went ahead and installed it on my localhost Magento. Here are the steps:
1. [...]

Add javascript validation to your Magento forms

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/add-javascript-validation-to-your-magento-forms’,size:’large’} Ok, so you have a nice custom module with a form – now you want to add basic javascript validation to it. Simple. Example,

<input type=”text” name=”first_name” value=”" size=”20″ class=”required-entry input-text” />

The class required-entry will make the field mandatory – this works for text-box and drop down.
If your form appears [...]

Magento enable contact form, add custom field, link to top menu

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/magento-enable-contact-form-add-custom-field-link-to-top-menu’,size:’large’} How to enable the default Magento contact form?

System > Configuration > Contacts
Click the ‘Contact Us’ section on this page. Set ‘Enable Contact Us’ to ‘Yes’
Click the ‘Email Options’ section on the same page, just under it. Set the email address to which the comments should come, subject and email [...]

How Do I Create a 25% off Coupon

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/how-do-i-create-a-25-off-coupon’,size:’large’} To create Shopping Cart Price Rules go to Promotions -> Shopping Cart Price Rules and select Add New Rule.
We first enter a rule name and description. 25% off
Once those are in we select Active for Status.
You then need to select which Website the coupon will be good for. Main Website, Default website
You can select [...]

Access getConfigData from the controller in Magento

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/access-getconfigdata-from-the-controller-in-magento’,size:’large’} Quick Magento tip.
If you need to access the getConfigData() function from your controller do this:
Mage::getModel(‘<name of the model for this controller>’)->getConfigData(<fieldname>);
For example if you want to call getConfigData() from the Mage_Mymodule_MyworldController controller then:
Mage::getModel(‘Mage_Mymodule_Model_Myworld’)->getConfigData(<fieldname>);

How to Install Sample Data for Magento?

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/how-to-install-sample-data-for-magento’,size:’large’} Download Sample Data zip file from Magento Website and extract the zip file.
Drop all the tables from your magento database.  It would be easy to drop the
magento database and then recreate it instead of dropping individual tables. Import sample data sql file into your magento database. You have to drop all [...]

How to add a $25.00 Special Discount Coupon Code in Magento Cart

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/how-to-add-a-2500-special-discount-coupon-code-in-magento-cart’,size:’large’} Login to admin panel Select Shopping Cart Price Rules from Promotions Click on Add New Rule and enter the details Click on Actions from the left hand side Menu and enter the details Click Save Rule and that is it.