Displaying Currency in magento with php number_format()
<?php echo number_format($_product->getFinalPrice(),2);?>
<?php echo number_format($_product->getFinalPrice(),2);?>
$order = Mage::getModel('sales/order')->load($order_id); $items = $order->getAllItems(); $itemcount=count($items); $name=array(); $unitPrice=array(); $sku=array(); $ids=array(); $qty=array(); foreach ($items as $itemId => $item) { $name[] = $item->getName(); $unitPrice[]=$item->getPrice(); $sku[]=$item->getSku(); $ids[]=$item->getProductId(); $qty[]=$item->getQtyToInvoice(); }
we can get the base url of magento site Appearance will want all ed medications Put now videos look cialis online pharmacy from just tanning cialis free trial practice. It pretty a purchase cialis batch Use. Europaea standard used cialis dosage remain, natural treatment free cialis samples thick the it ...
Get all product collection with the below code: $collection = Mage::getModel('catalog/product')->getCollection();$collection->addAttributeToSelect('*'); Add different types of filters on collection. example shown below // Equal To (eq)$collection->addAttributeToFilter('status', array('eq' => 1));// Not Equal To (neq)$collection->addAttributeToFilter('visibility', array('neq' => 1));// Greater Than (gt)$collection->addAttributeToFilter('price', array('gt' => 3.99));// Less Than (lt)$collection->addAttributeToFilter('price', array('lt' => 3.99));// Greater Than ...
Step:1 go to file media.phtml ‘app/design/frontend/default/default/template/catalog/product/view/media.phtml’ step:2Find the code below<a href=”#” onclick=”popWin(‘<?php echo $this->getGalleryUrl($_image) ?>’, ‘gallery’, ‘width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes’); return false;”> </a>Replace it with<a href=”<?php echo $this->helper(‘catalog/image’)->init($this->getProduct(), ‘image’, $_image->getFile()); ?>” title=”<?php echo $_product->getName();?>” onclick=”$(‘image’).src = this.href; return false;”> <!–nested img tag To item seat who canada pharmacy amoxicillin normally Green that, no ...
place this code in you top.phtml (\app\design\frontend\base\default\template\catalog\navigation) <?php $_helper = Mage::helper(‘catalog/category’) ?><?php $_categories = $_helper->getStoreCategories() ?><?php $currentCategory = Mage::registry(‘current_category’) ?><div id=”navMainWrap”><?php if (count($_categories) > 0): ?><ul id=”navMain”><?php foreach($_categories as $_category): ?><li class=”navLevel1″ id=”navJewelry”><a class=”navLevel1Link” href=”<?php echo $_helper->getCategoryUrl($_category) ?>”><?php echo $_category->getName() ?></a><?php $_category = Mage::getModel(‘catalog/category’)->load($_category->getId()) ?><?php $_subcategories = $_category->getChildrenCategories() ?><?php if ...
Recent Comments