Skip to main content
Share Your Experience: Take the 2024 Developer Survey
76 votes
Accepted

Magento 2 remove "Estimate shipping costs and tax" from cart

I think you messed up some closing / opening tags and amount of them this code works: <referenceBlock name="checkout.cart.shipping"> <arguments> <argument name="jsLayout" ...
Corefix's user avatar
  • 1,161
10 votes

How to show subtotals in first checkout step?

All of these solutions imply that you need to copy the abstract-total.js to your own theme, but this is not necessary. Even more so: it might introduce new problems as soon as a Magento update decides ...
Giel Berkers's user avatar
  • 12.3k
9 votes

Magento 2 remove "Estimate shipping costs and tax" from cart

I also needed to get rid of the "Estimate Shipping costs and Tax" because of a conflict with a payment module. If your only objective is to not show the block, why not use CSS? This worked for me: ....
storepeinture's user avatar
9 votes
Accepted

Magento2 : Show summery total on checkout page

There are two changes required to display summary in shipping step. Override both files in your current theme. 1. change /Magento_Checkout/js/view/summary/abstract-total.js file define( [ ...
Emipro Technologies Pvt. Ltd.'s user avatar
8 votes

Magento 2 : Add Custom Tax Amount In Cart Programatically

You can observe to the event sales_quote_address_collect_totals_after and achieve it. For this, you need to setup a module and configure an event. Let's say our module is MStack_Exchange. File : app\...
Rajeev K Tomy's user avatar
7 votes

How to get the Grand Total with shipping charge and tax at onepage checkout in Magento 1.9?

You can get the grand total by using this: $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
Shoaib Munir's user avatar
  • 9,482
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/...
Lucky's user avatar
  • 315
7 votes
Accepted

Hide Shipping Method Title from Order Summary

Please override your file vendor/magento/module-checkout/view/frontend/web/js/view/summary/shipping.js to /app/design/frontend/Vendor/ThemeName/Magento_Checkout/web/js/view/summary/shipping.js ...
mohit vamja's user avatar
6 votes

Magento 1.9.2.2 - Grand Total less than Subtotal

This helped me with a similar issue "We're working in a 1.9 & PHP 7; detected this issue with paypal suspect fraud (due the difference amount). All correct in front-end (apply taxes); but in ...
Jelqui's user avatar
  • 71
6 votes
Accepted

Override ShippingInformationManagement

Follow the step: how to check is checked or not when i click next button,so based on this I can add custom fee in order totals. --You need to js saveShippingInformation method by following way. ...
Sohel Rana's user avatar
  • 35.9k
6 votes
Accepted

Working of discount coupons on the checkout page in Magento 2.2.2

1) For customer account: /V1/carts/mine/coupons/:couponCode I just explain how sale rules work for customer logged a) Set coupon: vendor/magento/module-quote/etc/webapi.xml <route url="/V1/...
Khoa TruongDinh's user avatar
5 votes
Accepted

Magento 2 - extension attributes interface

The getters and setters are not added to the TotalsInterface itself. Instead they are generated in Magento\Quote\Api\Data\TotalsExtensionInterface (which you should find in var/generation) and you ...
Fabian Schmengler's user avatar
5 votes
Accepted

Magento 2 add row total column in grid

I find a solution. I hope this can help you. Find the row in your ui component js file where is write the item tag with name "component": <argument name="data" xsi:type="array"> <...
ProcessKiller's user avatar
5 votes
Accepted

How to re-collect quote totals in Magento 2?

First of all, we can save the collect totals by using Checkout session: /** @var \Magento\Checkout\Model\Session $_checkoutSession */ $this->_checkoutSession->getQuote()->collectTotals()-&...
Khoa TruongDinh's user avatar
5 votes

Update order total after order place

Here I have created a solution to set custom item price and recalculate all the order totals. We will need to calculate manually as the collectTotals will not work after an order is placed. <?php ...
Ashish Viradiya's user avatar
5 votes

Magento 2 : Cart Total Not Updating

Please replace below code with my code : Replace This : $quote = $om->get('Magento\Quote\Model\Quote'); $quote->setTotalsCollectedFlag(false)->collectTotals()->save(); $checkout = $...
Sneha Panchal's user avatar
4 votes

Remove tax from grand total

you can managed this settign from admin Go to admin>System>Configuration>Sales>Tax>Shopping Cart Display Settings make Display Subtotal=Excluding Tax enter image description here ...
Charlie's user avatar
  • 3,136
4 votes

How to show subtotals in first checkout step?

I had a similar issue and this is the way i managed to get it working. You can override the following file app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.js and ...
St0iK's user avatar
  • 753
4 votes

Magento 2 - How to update grand total when shipping method is changed?

I have the solution First of I found its easier to copy all the files into my theme directory. Create the theme directory http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-...
Nathaniel Meyer's user avatar
4 votes
Accepted

What is $_total->getStrong()

Please check these line in Mage_Sales_Block_Order_Totals: https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Sales/Block/Order/Totals.php#L137-L143 getStrong() is just a ...
sv3n's user avatar
  • 11.7k
3 votes
Accepted

How to get Shopping Cart Discounts in Magento?

$appliedRuleIds = Mage::getSingleton('checkout/session')->getQuote()->getAppliedRuleIds(); This will give you the ids of the rules applied to the quote separated by comma. you can turn them ...
Manashvi Birla's user avatar
3 votes

Magento 2 remove "Estimate shipping costs and tax" from cart

You can just add the following to checkout_cart_index.xml (in your custom theme, not core of course) <referenceBlock name="checkout.cart.shipping" display="false"/>
pmccain's user avatar
  • 51
3 votes

Magento 2 : Add Custom Tax Amount In Cart Programatically

@Dhiren Vasoya Use these lines as well. $total->addBaseTotalAmount('tax', $this->additionalTaxAmt); $total->setGrandTotal((float)$total->getGrandTotal() + $this->additionalTaxAmt); $...
Gaurav's user avatar
  • 31
3 votes
Accepted

Magento 2 - Having trouble collecting totals for a custom gift card module

Collect Totals: We should base on shipping address. \Magento\Quote\Model\Quote::collectTotals (can be called at the first) loops through each quote address (quote address total): $total = $this-&...
Khoa TruongDinh's user avatar
3 votes

Hide Shipping Method Title from Order Summary

The above answer detailed by Mohit will work fine, although instead of over-riding the shipping.js file, best to add the changes as a Mixin. If you aren't familiar with Mixins, best to read up about ...
Zudian's user avatar
  • 358
3 votes
Accepted

Magento 2 checkout summary shipping check subtotal

You should do that. <!-- ko if: totals()['subtotal'] < 29.95 --> <span class="shipping-cost"><!-- ko i18n: '$ 5,95' --><!-- /ko --></span> <...
yvzyldrm's user avatar
  • 309
3 votes
Accepted

Magento2 How to refresh Admin Order Create Order Total Section

With the help of below code i got my problem solution jQuery.ajax({ url: url.build("/admin/router/controller/customfee"), data: {option: 1}, type: "...
Sanjay Shiyal's user avatar
2 votes

How to get order totals?

Magento doesn't give us an out-of-the-box solution for it, but you can make your own class, copying much of the same logic that the PDF renderer class uses to collect its totals. Instead of putting ...
Eric Seastrand's user avatar
2 votes

Magento 2 remove "Estimate shipping costs and tax" from cart

Wanted to share my solution as I felt the other answers weren't very clear. Magento ver. 2.3.4-p2 I don't want to just hide it (CSS trick above would suffice if I wanted to) but rather remove it to ...
PromInc's user avatar
  • 460
2 votes

Magento 1.8.0.1 - Grand total is showing subtracted VAT

I had encountered the same issue, steps to solve it are: Go to this location: app/code/core/Mage/Sales/etc/config.xml Make a copy of it in app/code/local: app/code/local/Mage/Sales/etc/config.xml ...
Sylvester's user avatar

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