Step 1:
Create New CMS Page in Below Content Add.
{{block type="catalog/product_outofstock" template="catalog/product/list.phtml" column_count="4"}}
Step 2 :
Create New PHP File Below Path.
Example :- app/code/local/Mage/Catalog/Block/Product/Outofstock.php
Step 3 :
OutofStock.php...
Friday, December 4, 2015
Saturday, September 19, 2015
Product price change programatically after add to cart in magento
Step 1: Create an Attribute for the products
Example :- Change Price Set its type yes/no for the
product
Step 2: Open File
code/core/mage/checkout/model/cart.php
Step 3: Goto on this function
public function save() { ...
Add Increase and Decrease Quantity Buttons in Magento
open addtocart.phtml
file replace this code
Path :- app\design\frontend\default\your theme\template\catalog\product\view\addtocart.phtml
<?php $_product = $this->getProduct(); ?>
<?php $buttonTitle =
Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
<?php...
Sunday, August 30, 2015
Custom Step Checkout Page
public function saveExcellenceAction(){ if ($this->_expireAjax()) { return; } if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost('excellence', array()); // my custom code start $custom_price = $data['like']; $quote = Mage::getSingleton('checkout/session')->getQuote();...
Tuesday, August 4, 2015
Custom tab add in magento admin system configuration
Custom tab in magento admin system configuration :How to create custom tab or menu from magento admin system configuration section. Easiest way to create, just need to follow below stepsWe just want to create below two files, in your required place. Here my module is called ModuleName.app\code\local\NameSpace\ModuleName\etc\system.xmlapp\code\local\NameSpace\ModuleName\etc\adminhtml.xmlsystem.xml:<?xml...
Create Custom Contact us form in Magento
Step 1:app/design/frontend/default/default/template/admincontact/simple_contact.phtml <form action="<?php echo Mage::getBaseUrl().'admincontact/index/save' ?>" id="contactForm" method="post" name="contact_form"> ...