Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design
Showing posts with label Cart Page. Show all posts
Showing posts with label Cart Page. Show all posts

How to remove the discount / coupon code from cart page – Magento


If you want to remove discount / coupon code option from your cart page, change following changes in your xml file.

Remove or add comment to the following code from

/app/design/frontend/default/Yourtheme/layout/checkout.xml

If this file is not exist in your theme, go to 

/app/design/frontend/base/default/layout/checkout.xml

<block type=”checkout/cart_coupon” name=”checkout.cart.coupon” as=”coupon” template=”checkout/cart/coupon.phtml”/>

Get Configurable Product SKU and Its Simple Product SKU in Cart Page Magento

Put this code at templet/checkout/cart/item/default.phtml after this line "$_item = $this->getItem();"

<?php
echo $temp = $_item->getProductId();
echo "<br/>";
$_product = Mage::getModel('catalog/product')->load($temp);
echo "Config. Product :";
echo $_product->getSku();
echo "<br/>";

echo "Simple Product :";
echo $_item->getSku();
?>


 

Copyright @ 2017 HKBlog.