window.location.href - get entire url
window.location.protocol - get protocol: "http" / "https"
window.location.host - get hostname, e.g: "www.g31zone.com"
window.location.pathname - get script name, e.g: "example/index.html"
Research and Development work on PHP, MYSQ,JQuery,Angular Js,React Native,Laravel,Wordpress,Magento,Joomla
Wednesday, November 21, 2012
Javascript – get Url
display product in magento with sql in list.phtml file
Place this following code in your phtml file where you want to display particular category products this will return array of products and you can use this array to display product of particular category.
$sql = “SELECT product_id FROM catalog_category_product WHERE category_id=57″;
$data = Mage::getSingleton(‘core/resource’) ->getConnection(‘core_read’)->fetchAll($sql);
Tuesday, November 20, 2012
Monday, November 19, 2012
Sunday, November 11, 2012
Friday, November 9, 2012
magento cash on devliary extension
http://www.magentocommerce.com/magento-connect/cashondelivery.html
Tuesday, November 6, 2012
Subscribe to:
Posts (Atom)