this example css code, to perform animate like jQuery, but without any js code, but following code works on modern browser only <style> .theBox…
Continue reading CSS: Animate with CSS Only
Leave a CommentIndonesian Magento Developer
this example css code, to perform animate like jQuery, but without any js code, but following code works on modern browser only <style> .theBox…
Continue reading CSS: Animate with CSS Only
Leave a Commentthis an old trick, but very useful for me, especially when dealing with html page only or simple php, here you go, put this code…
Continue reading HTML : Avoid Page Cache
1 Commentbelow example CSS wildcard selector tag[class^=”begins-with”] { } example, applied to tag with class : <div class=”begin-with-sdhjshdj”></div> tag[class$=”end-with”] { } example, applied to tag…
Continue reading CSS: Wildcard CSS Selectors Tricks
Leave a Commentthis is the way how to clear everything in the cart, clear the items & cart session, $cartHelper = Mage::helper(‘checkout/cart’); $items = $cartHelper->getCart()->getItems(); foreach ($items…
Continue reading Magento: Clear Everything in The Cart
Leave a Commenthere is example css script to make glowing border (like neon effect) on text field and textearea field input[type=”text”]:focus, textarea:focus { box-shadow: 0px 0px 9px…
Continue reading CSS: Glowing Text Field & Textarea on Focus State
1 Commenti will show you, example code, how to create map directions use Googgle Map, here is the code: <style> #map_canvas { width: 100%; height:…
Continue reading Javascript: Create Map Directions by Google Maps
Leave a Commentlet say..you want to modify/add style inside DIV tag contains “Jhon” string below example the code <div>John Resig</div> <div>George Martin</div> <div>Malcom John Sinclair</div> <div>J. Ohn</div>…
Continue reading jQuery: Search String Inside DIV tag
Leave a Commenti’m facing this problem almost a week solution: update the table, with sql: update catalog_product_entity set type_id=”simple” where type_id”simple”
Continue reading Magento: Cannot Add to Compare for Some Product
Leave a Commentbelow script is to get all store views data: Mage::app()->getWebsites(); Mage::app()->getStores(); foreach (Mage::app()->getWebsites() as $website) { foreach ($website->getGroups() as $group) { $stores = $group->getStores(); foreach…
Continue reading Magento: Get All Store Views Data
Leave a Commentthis how i did it, load customer array data by email $email = “[email protected]”; $customer = Mage::getModel(“customer/customer”); $customer->setWebsiteId(Mage::app()->getWebsite()->getId()); $customer->loadByEmail($email); /*—print the object array–*/ print_r($customer->getData());
Continue reading Magento: Load Customer Data by Email
Leave a Commenthere you go!! echo Mage::app()->getLayout() ->createBlock(‘checkout/cart_sidebar’) ->setTemplate(‘checkout/cart/mini-cart.phtml’) ->toHtml();
Continue reading Magento: Directive for Mini Cart
Leave a CommentGo to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory. $cookieParams = array( ‘lifetime’ => $cookie->getLifetime(), ‘path’ => $cookie->getPath(), /* comment this line ‘domain’ => $cookie->getConfigDomain(), ‘secure’…
Continue reading Magento: Backend Login issue on Chrome Browser
Leave a Commentthis is how i did it add to cart: echo Mage::getUrl(‘checkout/cart/add’, array(‘product’=>$_product->getId(),’qty’=>1)) addto wishlist: Mage::helper(‘wishlist’)->getAddUrl($_product);
Continue reading Magento: Create Directive Button Add to Cart & Add to Wishlist
2 Commentsit is very stupid way to create jquery tabs… the CSS code: .product-tabs li a{ float: left; display: block; padding: 20px 0px; width: 187px; text-align:…
Continue reading jQuery: Stupid Way to Create Tabs
Leave a Commentfor attribute type “text field” : $_product->getData(‘attribute_code’) for attribute type “dropdown” : $_product-getAttributeText(‘attribute_code’)
Continue reading Magento: Get Product Attribute Data Dropdown & Text
Leave a Commentthis example of jQuery snippet for animated scroll-up <a href=”#”>Back to Top</a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { $(‘body,html’).animate({“scrollTop”:0},’slow’); }); }); </script>
Continue reading jQuery:Animated Scroll Back to Top
Leave a CommentThis snippet will prevent the default behaviour of a hyperlink <a href=”#”>Go </a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { e.preventDefault(); }); }); </script>
Continue reading jQuery: Prevent Href/Hyperlink
Leave a CommentIn my experice, this is my top website to learn Magento Magentocommerce.com yeahh…of course this is official place to learn magento Magento Tag at Stackoverflow…
Continue reading Top 5 Website to Learn Magento Programming
Leave a Commentcommand: mysqldump -u[username] -p[password] [databasename] | gzip > [filename].sql.gz example: mysqldump -uadmin -padm1n magentos | gzip > db_magentos.sql.gz another option: mysqldump < mysqldump options> |…
Continue reading Linux: Mysqldump with compression file result
Leave a Commentfor example change indonesian locale currecy format edit file: lib/Zend/Locale/Data/id.xml <currencyFormats> <currencyFormatLength> <currencyFormat> <pattern>¤#.##0,00</pattern> </currencyFormat> </currencyFormatLength> </currencyFormats> Change to <currencyFormats> <currencyFormatLength> <currencyFormat> <pattern>¤#,##0.00</pattern> </currencyFormat> </currencyFormatLength>…
Continue reading Magento: Change Currency Thousand Separator from Comma to Dot
Leave a Commentthis is example how to add an external JS/CSS files to magento header into layout file : <default> <reference name=”head”> <block type=”core/text” name=”google.cdn.jquery”> <action method=”setText”>…
Continue reading Magento: Add External JS/CSS File to Header Tag
Leave a CommentDisplay sub category list with name/title & url: $catID = 33; $datas = array(); $children = Mage::getModel(‘catalog/category’)->load($catID)->getChildren(); $children = explode(“,”,$children); foreach ($children as $category) {…
Continue reading Magento: Get Sub Category List
Leave a Commentedit your http://yourmagentourl/.httaccess file ############################################ ## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems… BrowserMatch…
Continue reading How to Speed up Magento
Leave a Commentquick command to create and extract tar archive in Linux Shell: create tar: tar -cvf name.tar /path/to/directory extract tar: tar -zxvf name.tar
Continue reading Linux: Create & Extract Tar Archive Syntax
Leave a Comment1. skinDirective Description: Used to retrieve path of skin folder and its files, theme fallback respected Example: {{skin url=’images/image.jpg’ _theme=’blank’}} Synonym: Mage::getDesign()->getSkinUrl($params[‘url’], $params) Params: url…
Continue reading My Favorite Magento Directive Syntax
Leave a CommentThis is my second post…try posting from my android 6 inch phone…haha.. and I’m surprise wordpress admin already support resposive layout design….haha ….
Leave a Comment