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
1 answer
27 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 ...
user avatar
0 votes
0 answers
35 views

M 2.4.2 - Items on the order do not get invoiced, order totals charging incorrect amount

My site is processing credit card orders successfully, but when the order completes, the invoice gets generated as normal, but no products are added to the invoice (the amounts show up, but dont ...
user avatar
  • 83
0 votes
0 answers
24 views

How to show base currency total on shipping page

Magento by default shows base currency total on payment & review page on checkout, as given below. How to add this base currency value on the Shipping page? I have done below copy paste work but ...
user avatar
  • 121
0 votes
0 answers
16 views

Custom Totals Collector Not Calculating Correctly On Checkout

I have created a customer totals collector with files defined as below: etc/sales.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
user avatar
  • 136
0 votes
0 answers
15 views

Custom Total Collector Not Calculating Shipping

I have a custom totals collector, which removes the VAT for exempt items. Here is the code: app/code/Innox/VatExemption/etc/sales.xml <?xml version="1.0"?> <config xmlns:xsi="...
user avatar
  • 136
0 votes
0 answers
108 views

Magento 2 EE: Avoid collect totals to execute once order is placed

In Magento 2.3 EE Gift card account extension there is a collect method Magento\GiftCardAccount\Model\Total\Quote\Giftcardaccount In this collect method the grand totals are calculated according to ...
user avatar
  • 548
0 votes
1 answer
226 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 ?
user avatar
0 votes
0 answers
26 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 ...
user avatar
  • 772
0 votes
2 answers
549 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 ...
user avatar
  • 1
1 vote
0 answers
22 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
user avatar
  • 346
1 vote
1 answer
1k 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 ...
user avatar
1 vote
3 answers
220 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....
user avatar
2 votes
0 answers
119 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 ...
user avatar
0 votes
1 answer
172 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 ...
user avatar
  • 95
0 votes
1 answer
59 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 [...
user avatar
1 vote
1 answer
137 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 ...
user avatar
  • 1,474
1 vote
1 answer
100 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 ...
user avatar
0 votes
0 answers
92 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 ...
user avatar
  • 71
1 vote
0 answers
25 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 ...
user avatar
  • 3,768
1 vote
0 answers
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 ...
user avatar
1 vote
0 answers
129 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 ...
user avatar
1 vote
1 answer
933 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 ...
user avatar
0 votes
0 answers
270 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 ...
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($...
user avatar
  • 1,779
1 vote
2 answers
323 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 ...
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?
user avatar
  • 581
1 vote
1 answer
245 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 '...
user avatar
2 votes
1 answer
655 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. (...
user avatar
1 vote
0 answers
168 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 ...
user avatar
  • 1,474
2 votes
0 answers
273 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 ...
user avatar
0 votes
1 answer
116 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 ...
user avatar
  • 2,403
1 vote
0 answers
47 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 ...
user avatar
  • 487
0 votes
3 answers
2k 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? ...
user avatar
  • 1,187
0 votes
1 answer
95 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() --> ...
user avatar
  • 121
1 vote
0 answers
201 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 ...
user avatar
2 votes
0 answers
395 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: +----------+--------+--------+--...
user avatar
  • 68
1 vote
0 answers
497 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 ...
user avatar
  • 7,342
2 votes
0 answers
114 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 ...
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 ...
user avatar
1 vote
0 answers
47 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 ...
user avatar
  • 749
0 votes
1 answer
317 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\...
user avatar
0 votes
0 answers
234 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%...
user avatar
  • 749
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
506 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: ...
user avatar
  • 21
0 votes
1 answer
793 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 ...
user avatar
  • 2,749
0 votes
1 answer
158 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->...
user avatar
  • 2,749
1 vote
0 answers
578 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
user avatar
0 votes
1 answer
463 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 ...
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?
user avatar
  • 2,443
7 votes
1 answer
5k 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 ...
user avatar
  • 837