2009-04-19 03:58:04Damodar Bashyal
On next release I'll be adding html minify. This will remove unnecessary spaces and lines which are just the waste for bandwidth. The less size the file it loads faster. Also it saves bandwidth of the visitor. I have already applied to my site today. If you view the source code of this page you will understand what i am talking about.
Google's pages are compact, so probably it will like this idea and also other search engines. But of course this feature will be optional, which you can turn on/off for entire size and also set different on/off option for some controllers/pages.
More»
2009-05-02 03:30:26Damodar Bashyal
How to use jQuery with Magento?
Download jQuery from jQuery site
Add this line to the bottom of jQuery.js
CODE:
1-jQuery.noConflict();
Copy the file to the js/jquery folder|directory
In page.xml, add it to the list of js files as:
CODE:
1-<action method=“addJs“><script>jquery/jquery-1.2.6.noConflict.min.js</script></action>
or,
CODE:
1-<action method=“addItem“><type>js</type><name>jquery.js</name><params/></action>
How to use jQuery with magento now?
The below procedure is one way.
More»
2009-04-23 04:28:46Damodar Bashyal
This one is crazy with magento because sometimes it works and sometimes it just shows blank page. Once it gave me a real hard time. Finally found solution somewhere. I just had to do was add
CODE:
1-->debug()
on the object that i wanted to print as
CODE:
1-$obj->debug(); //e.g. if i have $_cart = Mage::getModel('checkout/cart'); //to use print_r or var_dump, i need to do print_r($_cart->debug());
These are methods available for a product:
More»