Questions tagged [totals]

Questions about totals calculation in cart, checkout and orders. This includes subtotal, grand total, discount total and others.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Row total mismatch on credit memo page (magento version 2.4.3)

See this image it's the order page. The highlighted product's calculations are correct. See this image it's the credit memo page. The highlighted product's calculations are incorrect. Can you kindly ...
Hamendra Sunthwal's user avatar
0 votes
0 answers
82 views

Magento2: How to set custom cart item row total

I would like to set cart item rows total without modifying the item price before or after add to cart event. Any suggestion would really appreciated. Thank You
Suresh Chikani's user avatar
0 votes
0 answers
116 views

Magento 2: Quote is null in collect() totals function immediately after a successful order has been placed?

So I am overriding collect() using etc/sales.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
Michael Mussulis's user avatar
0 votes
1 answer
57 views

First Round the product prices and then calculate the total in cart and checkout?

I want to first round the product price upto 2 decimal and then calculate the total . Right now first it calculate the total and then round the total upto 2 decimal points.
Mehran's user avatar
  • 472
0 votes
0 answers
67 views

Totals missing in order / invoice after updating to Magento 2.4

After I updated to Magento 2.4, the totals in the invoice and order PDF are missing. I checked the settings and resaved them, doesnt help. The confirmation mail was also missing some information, this ...
user4095519's user avatar
0 votes
1 answer
38 views

Total doesn't include tax

The total price doesn't include the tax price. I tried to change the tax settings in admin->stores->configuration->sales->tax. But it's not working. I checked the totals data. The ...
Aaron Wang's user avatar
0 votes
1 answer
648 views

Magento2 How to refresh Admin Order Create Order Total Section

I am creating new order from backend and i have to refresh order total section after my custom ajax request. does any one know how i can achive this ?
Sanjay Shiyal's user avatar
0 votes
0 answers
43 views

Unable to find getPrice method in catalog

Simple issue but can't figure it out alone : Under base vendor/magento/module-catalog/view/base/web/template/product/price/special_price.html There is this part that is used to calculated the product ...
Claims's user avatar
  • 944
0 votes
2 answers
1k views

Changing & Adding items in checkout_index_index.xml

I'm trying to customize Order Summary in the sidebar. The module that I'm currently working on will modify the final total price and I need to display the additional price under Shipping. I've taken ...
xSimas's user avatar
  • 1
1 vote
0 answers
43 views

How to remove email invoice coupon code description

In invoice, when the client uses a coupon code it shows in total like Discount(description) I just want to remove the description, where this can be edited? Thanks in advance, Best regards
Rui Silva's user avatar
  • 374
1 vote
1 answer
2k views

Magento2 set custom shipping amount when create order programatically

We have created a custom shipping method using the custom module and trying to save the shipping amount based on the subtotal ex: if subtotal < 25 shipping amount is $5 if subtotal > 25 shipping ...
Nagaraju Kasa's user avatar
1 vote
3 answers
430 views

Magento 2 move tax section in to grand totals in cart page

I want to move the tax in between the order total incl tax and order total excl tax in the cartpage. The Tax section is in the vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/tax....
Jancy Abraham's user avatar
2 votes
0 answers
188 views

Magento2 how to display additional custom total value in shipment email

I have added a new custom cart total (e.g. Extra Fee) in my current project. I made it display on almost every page, email and pdf files. However, I can't able to find a way to display it in the ...
Pratik Navapara's user avatar
0 votes
1 answer
288 views

Magento 2 - How to format cart item price?

In magento 2, I don't know how to format cart item price. I have a price format like this : £1,522.58 and I want this format £1522,58 I succeed to change the format of the total cart price by ...
Fbr's user avatar
  • 147
0 votes
1 answer
121 views

How to get items tax_amount in magento 2.3 collectTotals()

All data I need in my module visible in next print print_r($quote->collectTotals()->debug()); Output is show me Array ( [entity_id] => 3 [store_id] => 1 [...
S.M. Pat's user avatar
  • 103
1 vote
1 answer
284 views

Magento 2 checkout summary shipping check subtotal

I want to change the Magento_Checkout/web/template/summary/shipping.html file and add a specific line when the subtotal is below a specific value. How can I achieve this? I already tried this, but ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
136 views

Magento 2 get total spend so far for each customer to custom customer attribute

public function test($setup) { /** @var CustomerSetup $customerSetup */ $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]); // Add new customer attribute ...
Jack Brooks's user avatar
0 votes
0 answers
169 views

Magento Tax issue on checkout using Rest API

I am facing issue with tax on the checkout using magento 2 rest API. API always return tax amount 0 for all cart items. On web everything is working fine but getting issue with API. My magento ...
Aish's user avatar
  • 71
1 vote
0 answers
41 views

How to trigger without session access invalidate cart version

On backend action (e.g. saving cart rule) I'd like to invalidate customer/section/load cartVersion to force Magento to recalculate totals on frontend on cart page for those who has that rule applied ...
zhartaunik's user avatar
  • 3,848
2 votes
1 answer
1k views

magento 2 remove shipping amount from cart total

I want to remove shipping amount from cart page because we do not provide estimate shipping amount calculation block. Also, when customer add product to cart then its display grand total without ...
Hiren Shah's user avatar
1 vote
0 answers
214 views

Magento2 WebshopApps Matrix rate extension issue with additional discount label in cart page

I have installed WebshopApps Matrix rate extension for my website in M2, i have also one custom module that shows gift card discount in cart page totals section,issue is when ajax call response comes ...
bhargav shastri's user avatar
1 vote
1 answer
1k views

Magento 2: How can change in the frontend sortOrder of Grand Totals and Tax positions in my account order detail page?

I need to change sort order in order_totals block in the frontend order view page. I want to swap the position of Grand Total & Tax in order_totals child items. Please help to change to order of ...
Santosh Kumar Singh's user avatar
0 votes
0 answers
336 views

Create Order Totals - Remove currency symbol in Admin Panel

I've added custom totals "Total Weight". It works perfectly on the storefront but in admin panel it displays currency symbol $ and it is formatted with .00. How can I change it? It should be not ...
Wojciech Ka's user avatar
1 vote
1 answer
1k views

Magento 2: How to set item Row total?

I want to set a custom row total. I am using 'checkout_cart_product_add_after' event. And want to update Row total. I going to add an extra amount in an item row total. like, $item->setRowTotal($...
Ravi Soni's user avatar
  • 1,809
1 vote
2 answers
442 views

Total Weight in Cart Summary. Change symbol

Using this tutorial https://www.siphor.com/add-a-custom-total-in-magento-2/ I created a totals for total weight of products. Generally it almost works but the prefix with currency symbol is ...
Wojciech Ka's user avatar
0 votes
2 answers
2k views

Hide Shipping Method Title from Order Summary

In order summary (Cart page), Shipping Method is displayed as: (Method Name - Method Title) Is it possible to remove Method Title and display just the Name?
zekia's user avatar
  • 610
1 vote
1 answer
389 views

Magento 2.2.7 - Reload totals cart using Ajax

I have tried below code var deferred = $.Deferred(); getTotalsAction([], deferred); But no luck and instead below error i am facing Uncaught TypeError: Cannot read property '...
gajjala sandeep's user avatar
2 votes
1 answer
763 views

How to remove only Total Tax from invoice pdf?

I am using Magento 1.9.3 I have enabled Display Full Tax Summary and its working fine. I can see my VAT and TAX both in totals area. But now I need to remove only Total Tax data from invoice PDF. (...
SA Soibal's user avatar
1 vote
0 answers
217 views

Magento 2.3 add shipping line to cart totals

We use a quite simple shipping cost line. When the total is below 29.95 it adds 5.95 for shipping. If the subtotal is above 29.95 it is free. Now I want to extend the default totals column in the ...
JGeer's user avatar
  • 1,420
2 votes
0 answers
503 views

update reward points and recollect the quote total and list the discount with reward points

I have customized for applying the reward points from a third party Capillary. I want to update the cart total and display by deducting from the reward points after the response from the curl. I have ...
Vijayavel's user avatar
0 votes
1 answer
185 views

Show value of all totals in controller action

I need to log the values of all totals from a controller action. If the controller action is called, then i need a list rendered which shows the totals: If you are not familiar with totals then look ...
Black's user avatar
  • 3,100
1 vote
0 answers
70 views

Magento 1.9.2. - Change format of summary in cart page

I would like to change the format of the totals in the summary on the shopping cart page, on the checkout page and also in the email for new order, on the customer's orders list, etc. At the moment ...
Gabriel91's user avatar
  • 487
0 votes
3 answers
3k views

Magento 2 How can I hide the price and total from cart and checkout summary?

I want to hide price and totals from cart/checkout Summary. You can see in below image. How can I achieve this functionality with a custom module? Is there any common file from I can hide the price? ...
Utsav Gupta's user avatar
  • 1,243
0 votes
1 answer
128 views

Checkout totals html template change

I've a strange problem with checkout page and totals row. Originally in module tax in file subtotal.html there is <!-- ko if: !isBothPricesDisplayed() && !isIncludingTaxDisplayed() --> ...
jpu's user avatar
  • 121
1 vote
0 answers
255 views

Magento 2 Where ship-station (shipping charge) details will save at magento side?

I have installed and configured Auctane_Api ship-station module to magento2. Whenever I placed the orders those information populated at ship-station portal successfully. After processed shipment ...
Kavya cheerala's user avatar
2 votes
0 answers
506 views

Change order total programmatically in magento 2

I want to change the order total in Magento 2 for pending order programmatically, the change of the total doesn't include the discount and shipment price, for example: +----------+--------+--------+--...
blue's user avatar
  • 118
1 vote
0 answers
747 views

Magento 2 Collect Total In Payment Step

I am facing an issue and not able to figure it out if its a magento bug. I have added an additional fee created a module for it and its working fine every where. The only issue occurs If I come in ...
Priyank's user avatar
  • 7,602
2 votes
0 answers
116 views

Magento 2 Cart Price Rule Coupon Specific Coupon Does not Apply for some porducts in Admin Order

There is an issue which I am not sure if it's a bug and I hope someone can tell me, the bellow screen shoot were taken from an order: As you can see the product in red circled didn't apply the ...
Juliano Vargas's user avatar
2 votes
1 answer
2k views

Magento 2 Adding Total Due and Total Paid to PDF order

Hi I am trying to add total paid and total due lines on my Magento PDF Invoice. I have added these lines in the config file in sales/etc/config.xml. I tried in order pdf i am not getting those fields ...
Pawankumar's user avatar
1 vote
0 answers
69 views

How to apply magento discount on custom fee in Magento2.2.X

I have created a custom module that will add custom fee on order and show it everywhere in cart, checkout, order details etc, But When I applied magento discount it will not include this custom fee ...
Yogita's user avatar
  • 784
0 votes
1 answer
513 views

Add editable text input to creditmemo totals

How to change the -€5.00 simple text to a text input field (editable) ? This is how I add the totals: <?php namespace My\Discount\Block\Adminhtml\Sales\Order; class Totals extends \Magento\...
Manuel Di Iorio's user avatar
0 votes
0 answers
237 views

Magento Grandtotal Issue with Incl. Of Tax System and Paypal Tax with discounted price?

I am facing an issue with Magento1.9.2.4. My store is Incl. Of Tax, having 7% tax rate. Here is the admin panel tax settings screen-shot: When I am going to place order with shipping (Incl. of Tax 7%...
Yogita's user avatar
  • 784
1 vote
1 answer
3k views

Magento 2: How can I update tax and total programmatically on checkout?

I have a checkout field for tax exemption that is not related to a customer group. That would be too easy. Instead, I would like to update the tax amount and total to reflect those changes when this ...
Andrew Ryden's user avatar
1 vote
1 answer
703 views

Magento 2: How to add a product to the admin items ordered grid?

I am currently developing a module which pre prefills the order items grid automatically when a backend user creates an order from our CRM. This is done via the observer event: ...
tobias's user avatar
  • 31
0 votes
1 answer
986 views

Add "Tax amount" to totals in "New order" email template

I am trying to improve the look of "New Order" email template. I managed to get as far as adding the price of each item including and excluding tax. Now, I want to add the "Tax Amount" to the totals ...
Greg's user avatar
  • 2,899
0 votes
1 answer
183 views

What is $_total->getStrong()

I found this in totals.phtml file: $_total->getStrong() What does it do? totals.phtml file: <?php foreach ($this->getTotals() as $_code => $_total): ?> <?php if ($_total->...
Greg's user avatar
  • 2,899
1 vote
0 answers
733 views

Not update the shipping total and Order Total after change the shipping methods

Steps to reproduce go to cart xxx.com/checkout/cart/ change the shipping methods not update the shipping total and Order Total after change the shipping methods i am usging 2.2.3
niceonelee's user avatar
0 votes
1 answer
484 views

magento coupon code not apply on grandtotal

I have issue/confusion. While I try to add a coupon code to my Magento 1 store at that time the Grand total (Including Tax) not changing. Coupon information Code: demo123 Condition: for all ...
Nirav Joshi's user avatar
2 votes
2 answers
4k views

Magento2 : Show summery total on checkout page

How to display summery total on checkout page on sidebar above cart items list?
Ketan Borada's user avatar
  • 2,593
7 votes
1 answer
6k views

Working of discount coupons on the checkout page in Magento 2.2.2

I am trying to understand the working of discount coupon codes on the checkout page. When we apply any coupon code, then the discount is added to cart without reloading the page. I have checked and ...
vedu's user avatar
  • 847