37

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


20

In your theme's local.xml add the following code <?xml version="1.0" encoding="UTF-8" ?> <layout> <checkout_cart_index> <reference name="content"> <remove name="checkout.cart.coupon"/> </reference> </checkout_cart_index> </layout>


20

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 Cart->After Adding a Product Redirect to Shopping Cart->Yes


17

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 sort totals based on this data * * @return array */ protected function _getSortedCollectorCodes() { if (Mage::app()->useCache('...


16

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.phtml Just place on line 50 just after getUrl('checkout/cart/updatePost') ?>" method="post"> paste the below code: <?php echo $this->getBlockHtml('...


16

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"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...


15

Go to System > Configuration > Web > Session Cookie Management and set Cookie Lifetime


15

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-summary').mage('sticky', { container: '#maincontent' }); To remove this functionality, I copied the file theme.js to my theme magento_root/app/design/frontend/...


14

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 templates that render the cart items: app/design/frontend/{package}/{theme}/template/checkout/cart/item/default.phtml app/design/frontend/{package}/{theme}/...


14

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 NULL if the middle name is empty. But It will be created when you edit the customer from the admin panel. FIX: Override "app/code/core/Mage/Reports/Model/...


12

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 near Quantiy using below code. <div class="control qty"> <input id="cart-<?= /* @escapeNotVerified */ $_item->getId()...


11

@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 browsers Website session times out kill var/session directory Customer opens browser adds items to basket as guest. Guest checkout it hidden. Cause An event ...


11

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 extra column in sales_flat_quote_item to store that information. To do this properly write your own module, a tutorial about that you can find here on Tutsplus....


10

Goto admin>System>Configuration>Checkout>Shopping Cart>Configurable Product Image make it Product Thumbnail Itself this make child product image Instead of sending $_item->getProductId() send $_item and put somelogic $_item for configurable product $_Item>getSku give child product a other time give main products. so just child product ...


10

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\Magento_Ui\web\js\form\element\abstract.js This is the core location for it. If you look at line 27 you'll see: placeholder: ' ', I am assuming this is the main ...


8

In your theme directory In your /app/design/frontend/yourthemepackage/default/template/checkout/cart.phtml file or /app/design/frontend/default/yourtheme/template/checkout/cart.phtml file Just place on line 50 just after getUrl('checkout/cart/updatePost') ?>" method="post"> paste the below code <?php echo $this->getBlockHtml('formkey'); ?> it ...


8

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 additional directive you set will get assigned to that block, so in this case, product="52" will basically do setProduct('52') on the block, allowing you to ...


8

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 for each total. This one calls _getTotalRenderer that works like this: if there is a block with the name $code_total_renderer in the page ($code is the code of ...


8

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 single website. Also check if you have assigned respective root categories to their stores like this: Assign Domains to Stores We will assign our primary ...


8

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/view/minicart': { 'Vendor_Module/js/checkout/view/minicart': true } } } }; app/code/vendor/module/view/frontend/web/js/...


8

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')) ?>" class="action action-delete" data-post='<?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Cart')->...


8

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: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:...


7

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"> <remove name="checkout.cart.shipping"/> </reference> </checkout_cart_index> </layout>


7

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 creation and than clear checkout session.


7

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/checkout/cart/item/default.phtml Option 2 Override the Mage_Wishlist_Helper_Data::isAllowInCart method and make it return false always. For this second option ...


7

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" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" > </form>


7

Found the solution. I replaced <?php echo $this->getBlockHtml(‘formkey’); ?> with <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>"/> inside the fieldset of the form. Got info from this article http://www.bricksandmortarweb.com/blog/update-cart-working-magento-1-9/


7

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 controller_action_postdispatch_checkout_cart_delete, you can use this one sales_quote_remove_item. You can get the sku like this: public function deleteItem($observer) { $item = $observer-&...


7

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/js/action/get-totals' ], function ($, getTotalsAction) { "use strict"; $.ajax({ method: "post", url: ...


7

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" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="...


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