4x Masonry Grid

Style & publish your blog list anywhere on your site using a bunch of Scalia's blog options!

$collection= Mage::getResourceModel(‘catalog/product_collection’)->addAttributeToSelect(‘*’)->setStoreId($storeId)->addStoreFilter($storeId)->setOrder(‘ordered_qty’, ’desc’)->setPageSize(10) ; foreach($collection as $product){$name=$product->getName();$productId=$product->getId();$price=$product->getPrice();}

August 16, 2013 Read more

Get Base Url :Mage::getBaseUrl();Get Store Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);Get Skin Url :Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);$this->getSkinUrl(‘images/imagename.jpg’);Get Media Url :Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);Get Js Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);Get Current UrlMage::helper(‘core/url’)->getCurrentUrl();Get Home UrlMage::helper(‘core/url’)->getHomeUrl();

August 16, 2013 Read more

Currency In Dropdown format In page.xml add the Block if not exist <block type=”directory/currency” name=”currency” as=”currency” template=”directory/currency.phtml”/> Template File /app/design/frontend/template/Your_Interface/YOUR-TEMPLATE-NAME/template/directory/currency.phtml…

August 16, 2013 Read more

My Account/app/design/frontend/Your-Interface/Your-Theme/layout/customer.xml My cart and Checkout/app/design/frontend/Your-Interface/Your-Theme/layout/checkout.xml My Wishlist/app/design/frontend/Your-Interface/Your-Theme/layout/wishlist.xml

August 16, 2013 Read more

$order_id = 100; //order id goes here$_order = Mage::getModel(‘sales/order’)->load($order_id);      $_cctype = ”;if(!empty($_order)){              $_cctype = $_order->getPayment()->getCcTypeName();}echo $_cctype;

August 16, 2013 Read more
1 6 7 8 14