Entries by puneetk00

How to remove decimal price in magento

Open  code/core/Mage/Directory/Model/Currency.php  Find the following :-  public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)     {         return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);     } on line no 194 change this code to:-  public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)     {         return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);     } Puneet Kumar Magento Developer

How to add custom fields for Order Line Items with price in magento

Work Flow to add custom Field to Order line ItemUse this url to add to cart: Ex: http://192.168.1.9/sspc_test/SSPC1900/checkout/cart/add/?product=196&qty=2&training_location=California1. checkout_cart_item_default.phtml:::Add the following below product name<dl class=”item-options Kiran” id=”checkout_cart_item_default”><dt>Training Location</dt><dd><?php echo $_item->getTrainingLocation(); ?></dd></dl>2. Table: sales_flat_quote_itemAdd field: training_location3. Product Detailed Page: Add training_location text field as input4. Code -> Core -> Mage -> Sales -> Model -> Quote.phpFind: […]

Mysql trigger query

CREATE TRIGGER format_stage_name BEFORE INSERT ON osg_seminarman_application FOR EACH ROW BEGIN set NEW.full_name = CONCAT(NEW.first_name, ‘ ‘, NEW.last_name) ; Puneet Kumar Magento Developer

Magento how to mail in magento php script

Magento how to mail in magento php script ? try { /* Note: We get the processed email template and subject and send it manually to counter a problem of the transactional email not sending (for some weird reason!) i.e: $email_template->send( $to_email, $to_name, array( ‘order’ => $order, ‘store’ => Mage::app()->getStore(), ‘items_html’ => $email_html ) ); […]