Magento
Magento: Mobile Number validation to any form
1.Open Your form and in the input field add the class : validate-mobileno For Example: 2. At the bottom of your form you will find a script add the following code in your script tag For Example:
1.Open Your form and in the input field add the class : validate-mobileno For Example: 2. At the bottom of your form you will find a script add the following code in your script tag For Example:
You can enable Template path hint in two ways: WAY 1: Connet your Database and enter values into ‘core_config_data’ table Run the following query on the Magento database: When you’ve finished development want to turn off template hints in the admin panel, open the core_config_data table and change the ‘value’ Read more…
In Your Static block suppose this is the product add to cart link: you need to call a function with parameter of product id, in your header write a script with the following code: and inside the controller add the function:
Navigate to file view.phtml app/design/frontend/your-package/your-theme/template/catalog/layer/view.phtml Remove all file code with the following code
app/code/local/Mage/Catalog/Block/Product/New.php app->design->fronted->your_package->your_theme->template->catalog->product->new.phtml Add code in cms->page->design->Layout Update XML area.
Create A small extension for the requirement Create a file: app/code/local/Sushant/Catalog/etc/config.xml Helper: app/code/local/Sushant/Catalog/Helper/Observer.php Enable Your module :
Step1: Make a backup your view.phtml file app/design/frontend/your_package/tour_theme/template/catalog/layer/view.phtml If not available copy and pase it from base and remove all view.phtml file code and replace with the following code:
Display blog posts to CMS pages : In app/design/frontend/default/default/template/aw_blog/ Step 1: Create a new file home_latest_blog.phtml with the following code: If You want to change blog post limit Change in ->setPageSize(3) set your size Step 2: Now call home_latest_blog.phtml in cms page Open your cms page -> Edit page -> Read more…
Magento default tier price display in list format please see in image now i have display tier price in table format. To show the tier price in table format open your product view page and add the following code: app/design/frontend/rwd/default/template/catalog/product/view.phtml Another Style: