Use the below code to format a price according to default currency in Magento $price = $_product->getPrice() /// This is in product details page. /// Replace it with necessary price value according to your requirement. $formatted price = Mage::helper(‘core’)->currency($price);
Author: Sumit Surai
How To Change Value Of OnClick Event Dynamically With JavaScript
The following script changes the onclick event of the button “Test” dynamically according to which radio button is selected. The JavaScript function changeOnClick() changes the event dynamically. Hi! Hello! Bye!
"Flex Library Not Loaded" Error In Magento
The Problem Image upload not working in Magento backend. Whenever entering product details getting an error alert saying Flex Library Not Loaded The Solution This happens due to improper Magento installation. Just give full permission to the following folder /js/lib That should solve the problem. Njoy 🙂
Magento :: Images Not Showing In Front End
It is a common issue in Magento. After uploading images from back end, the images are shown in back end, but are not displayed on the front end. To solve follow the below steps. Any one of them might solve the issue for you, or even you might need to apply all. Try your luck… Continue reading Magento :: Images Not Showing In Front End
Magento Customize Error Page
After spending a lot of time and energy creating a beautiful Magento theme, once you get an error somewhere, you would notice that you are shown the default vanilla Magento theme. Whats worse is that it still has the Magento logo!!!Actually the error page Magento shows is not placed inside the theme folder. To customize… Continue reading Magento Customize Error Page
jQuery Useful Links Of Tutorials, Manual, Examples
jQuery with its huge number of plugins is a Javascript framework that can do everything … well, almost everything 😛 So I list below few links that will help people working with jQuery 1. http://jquery14.com/ (14 consecutive days of new releases for jQuery 1.4)2. http://api.jquery.com/visual/ (A jQuery Manual that is helpful and stylish)3. http://jqueryui.com/demos/ (jQuery… Continue reading jQuery Useful Links Of Tutorials, Manual, Examples
Drupal Database Installation Problem Solved
While installing Drupal sometimes you might get stuck on the database configuration page. After entering the data and submitting, the page just reloads and nothing happens. Follow the below steps for the solution. 1. I know you have already done this step, but just to mention, please go through the database details once again and… Continue reading Drupal Database Installation Problem Solved
Zen Cart header_php File Not Updating
I faced a problem last day while updating the header_php.php file for one of the pages I created in Zen Cart. Even after making changes in the header_php file, the changes were not reflected when I viewed the page in browser. The header_php.php file is present in \includes\modules\pages\{page_name}\where {page_name} should be replaced by the name… Continue reading Zen Cart header_php File Not Updating
Magento :: How To Call Static Blocks From PHTML Pages
Magento offers the web master to put static contents where ever he likes in the site with the help of CMS -> Static Blocks. These blocks can be easily edited from the admin panel. To call and show their contents on any phtml file write the following code. echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘identifier’)->toHtml() ; Here identifier should be… Continue reading Magento :: How To Call Static Blocks From PHTML Pages
Jpeg Images Not Displayed In Internet Explorer
The problem Sometimes you will notice that certain jpeg images are not shown while using Internet Explorer. The same images are displayed without any problem in other browsers, the file paths are OK, the HTML is perfect … but IE just refuses to show them. So what is the problem? The problem is that IE… Continue reading Jpeg Images Not Displayed In Internet Explorer