37 votes

Disable/ Remove "Estimate Shipping and Tax" Magento 1.9

In your local.xml file, add the following. This should remove the block. <checkout_cart_index> <remove name="checkout.cart.shipping" /> </checkout_cart_index>
user avatar
20 votes

Remove Discount Coupon from Magento ver 1.9?

In your theme's local.xml add the following code <?xml version="1.0" encoding="UTF-8" ?> <layout> <checkout_cart_index> <reference name="content"> <...
user avatar
20 votes
Accepted

Magento2 redirecting to Shopping cart

Like Magento1.x, there is an option in Magento2 admin panel to redirect to shopping cart page after adding product to cart. Change the option as, Stores->Configuration->Sales->Checkout->Shopping ...
user avatar
  • 3,931
17 votes
Accepted

Grand Total not updated when discount code is applied

Please follow the below steps might be useful. Path:- app/code/core/Mage/Sales/Model/Config/Ordered.php Comment this code /** * Aggregate before/after information from all items and ...
user avatar
16 votes
Accepted

clear shopping cart is not working

In your theme directory, in the file: /app/design/frontend/yourthemepackage/default/template/checkout/cart.phtml or in the file: /app/design/frontend/default/yourtheme/template/checkout/cart....
user avatar
16 votes
Accepted

Customize sticky behaviour of Cart Summary: Magento 2

I finally found the answer to this. The sticky behavior of the cart summary is due to the code in the file magento_root/vendor/magento/theme-frontend-blank/Magento_Theme/web/js/theme.js. $('.cart-...
user avatar
  • 894
16 votes
Accepted

How to add breadcrumbs on cart page in magento2?

Create a file app/design/frontend/vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml and add following code in checkout_cart_index.xml file <?xml version="1.0"?> <!-- /** * ...
user avatar
  • 6,209
14 votes
Accepted

Auto update cart quantity when change quantity

First edit the cart template /app/design/frontend/{package}/{theme}/template/checkout/cart.phtml and add an id on the form element for easier access. Let's say you add 'id="cart-form"'; Now edit the ...
user avatar
  • 196k
14 votes
Accepted

How to increase customer session time

Go to System > Configuration > Web > Session Cookie Management and set Cookie Lifetime
user avatar
14 votes

Abandoned Carts Don't Show in Reports Magento 1.9.2.2

This is a magento core bug. What happens is, when customers are registered on website, the middle name attribute entity value is not created at the customer_entity_varchar table. The value should be ...
user avatar
  • 617
13 votes
Accepted

Adding quantity increment button in cart and mini cart

app/code/Amsi/UserManagement/view/frontend/templates/cart/item/default.phtml I have added For both increment and decrementing quantity. You can add the button ...
user avatar
  • 1,714
11 votes

persistent shopping cart disadvantages

@Marius while you would expect that to be logical in reality there is an edge case where the guest checkout option is disabled. Replication Logged in customer adds items to basket Customer closes ...
user avatar
  • 818
11 votes

Shopping cart sorting

We'll need to fix this in 2 parts. The first part is actually tracking which simple products in the cart come from grouped products. The second is the sorting. First for the tracking. We'll add an ...
user avatar
  • 37.4k
10 votes
Accepted

How to get child product image in Magento Cart

Goto admin>System>Configuration>Checkout>Shopping Cart>Configurable Product Image make it Product Thumbnail Itself this make child product image Instead of sending $_item->...
user avatar
  • 75.8k
10 votes
Accepted

Magento2 - How to add placeholder to knockoutjs field?

This is a bit of a shot in the dark, as I've only looked at it for around 15 minutes. But it looks as thought the placeholder is coming from the Abstract.js this file is located Vender\Theme\...
user avatar
  • 1,363
9 votes
Accepted

Hide State/Province from Estimate and shipping tax from cart page magento2

You can do it by following method: Create a file with name checkout_cart_index.xml under app/design/frontend/Vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml and add the below code: &...
user avatar
8 votes

Constructing add-to-cart url from CMS page

I would just use the {{block}} directive to call your own .phtml file. You could do something such as: {{block type="core/template" template="your_template.phtml" product="52"}} Remember, any ...
user avatar
  • 4,638
8 votes

which phtml file is called by $this->renderTotals()?

The easier way to find out what template is used is to enable the template path hints. But here is the stacktrace you need to follow. Mage_Checkout_Block_Cart_Totals::renderTotals calls renderTotal ...
user avatar
  • 196k
8 votes
Accepted

Share cart in magento 2 multistore

Finally I sorted it out. So for sake of others, here is how we share cart between Magento multistore setup on different domains: Magento configuration: Create 2 different stores, store views under a ...
user avatar
  • 1,183
8 votes

How to modify minicart.js Magento 2?

You'd better extend the minicart component. For example: app/code/vendor/module/view/frontend/requirejs-config.js var config = { 'config': { 'mixins': { 'Magento_Checkout/js/...
user avatar
  • 760
8 votes

How to update cart qty using ajax Magento 2

Reload totals cart after ajax change quantity 1. Step In your custom them create ( Magento_Theme/layout/checkout_cart_index.xml ) <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
user avatar
8 votes

Magento 2 Custom remove item from cart button

You can simply use in app/design/frontend/Vendor/Themename/Magento_Checkout/templates/cart/item/default.phtml below code. <a href="#" title="<?= $block->escapeHtml(__('Remove item'...
user avatar
  • 3,109
7 votes

Disable/ Remove "Estimate Shipping and Tax" Magento 1.9

Check this and put in your theme's local.xml file <?xml version="1.0" encoding="UTF-8" ?> <layout> <checkout_cart_index> <reference name="content"> <...
user avatar
7 votes
Accepted

Programatically clear the cart of a logged-in user

Check quote status is_active for the quote (sales_flat_quote) regarding to the created order. If its active (value is 1) set it inactive ($quote->setIsActive(0)->save()) after successfully order ...
user avatar
7 votes
Accepted

how or where can i remove add to wishlist from shopping cart?

You have 2 options here. Option 1. Edit all cart and cart item templates and remove the wishlist column. For this you need to edit: checkout/cart.phtml checkout/cart/item/default.phtml downloadable/...
user avatar
  • 196k
7 votes
Accepted

Cannot update quantity from cart

you have to include the form key,in cart.phtml. <form method="post" action="<?php echo $this->getBaseUrl('checkout/cart/updatePost')?>"> <input type="hidden" name="form_key"...
user avatar
  • 3,931
7 votes

Update Shopping Cart button in checkout/cart does not update the quantity when clicked

Found the solution. I replaced <?php echo $this->getBlockHtml(‘formkey’); ?> with <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->...
user avatar
  • 151
7 votes

which observer to call while removing item from cart and empty cart?

Besides the controller pre|post dispatch events that don't do you much good, though you can still use them controller_action_predispatch_checkout_cart_delete and ...
user avatar
  • 196k
7 votes
Accepted

Magento 2 : Update Cart summary html

Update cart summary in ajax response has been solved, we need to call getTotalsAction() javascript function as i mentioned below code : demo.js define([ 'jquery', 'Magento_Checkout/...
user avatar
  • 197
7 votes
Accepted

$block Class Some Method is won't appear in get_class_methods() call

Throughout, Magento uses a range of magic methods (they start with get, set, uns and has) which do not appear in the method list. These methods are shortcuts to access data that has been set on the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible