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
1
vote
1answer
21 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 ...
2
votes
0answers
13 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
10 views

Magento 1.7 mini shopping cart not updating in other pages when programatically editing cart

For some specific reason, I need to add and remove items to the cart programmatically. Functionality appears to work but when I click on other category pages the mini shopping cart still shows old ...
1
vote
0answers
8 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 ...
0
votes
0answers
17 views

API returns quote totals data for a specified cart not properly working

I'm using rest API of Magento ver 2.2.8 to develop a mobile app base on Reactjs. Steps to reproduce Place order via API (carts/mine/payment-information) Create a new quote (carts/mine) Add product ...
0
votes
0answers
31 views

Magento2: Coupon code removing issue after merging quote

I have created a custom column 'discounted_total' in quote_address table for discount calculation. use Magento\Quote\Model\Quote\Address\Total\AbstractTotal; use Magento\SalesRule\Model\CouponFactory;...
0
votes
0answers
12 views

how to add totals of every field under this table on cart page in magento 2?

how to add totals of every field under this table on cart page in magento 2?
1
vote
0answers
304 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 ...
0
votes
0answers
166 views

Magento 2 How to add custom attribute to Totals Information Interface

I have to add custom attribute to /rest/default/V1/carts/mine/totals-information, so I found TotalsInformationInterface and I tried to add on this, but it is not working. I am doing this because I ...
1
vote
0answers
27 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 ...
0
votes
0answers
25 views

Magento2: Correct price not loading on 2 step checkout?

define([ 'Magento_Checkout/js/model/quote' ], function(quote) { 'use strict'; var mixin = { getValue: function() { if (!this.isCalculated()) { return this....
1
vote
1answer
100 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 ...
0
votes
0answers
33 views

Change order currency and total if payment method changes

I need to change order total and order currency, when customer changes payment method I am able to observe the payment change event, but how can I change payment currency and total?
0
votes
0answers
71 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 ...
1
vote
1answer
288 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($...
1
vote
2answers
43 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 ...
0
votes
1answer
433 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?
0
votes
0answers
30 views

Warranty extension available for purchase in cart

I would like to develop a module that allows the purchase of a checkout page warranty extension. The price is a percentage of the total products and it always refers to the total cart, not to the ...
1
vote
1answer
54 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 '...
2
votes
1answer
120 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. (...
0
votes
0answers
11 views

Manage discounts for custom totals

I have a custom total, for example: Shipping insurance. It is managed correctly, the price without Taxes and the price with Taxes, I would like to further improve this custom totals by inserting the ...
1
vote
0answers
101 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 ...
2
votes
0answers
110 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 ...
0
votes
0answers
119 views

Remove tax code on total summary checkout

Is there a way to remove this one on total tax summary checkout Magento 2. http://prntscr.com/mf0xuw Thanks
0
votes
1answer
70 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 ...
0
votes
0answers
18 views

Only allow to proceed to checkout if a minimum order total for specific products is reached

I have configurable products where users can select different colors. There are many RAL colors which the users can choose. These colors have RAL in the name, so it is easy to identify them, e.g. "...
1
vote
0answers
27 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 ...
0
votes
3answers
785 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? ...
0
votes
1answer
46 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() --> ...
1
vote
0answers
139 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 ...
1
vote
0answers
242 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: +----------+--------+--------+--...
1
vote
0answers
225 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 ...
2
votes
0answers
73 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 ...
2
votes
1answer
792 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 ...
1
vote
0answers
33 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 ...
0
votes
1answer
72 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\...
0
votes
0answers
163 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%...
1
vote
1answer
858 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 ...
0
votes
1answer
127 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: ...
0
votes
1answer
290 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 ...
0
votes
1answer
79 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->...
1
vote
0answers
333 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
0
votes
1answer
271 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 ...
1
vote
1answer
2k views

Magento2 : Show summery total on checkout page

How to display summery total on checkout page on sidebar above cart items list?
5
votes
1answer
3k 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 ...
0
votes
1answer
89 views

I want to change the order of price details in cart

Here is the screen short i want to change the order of the price details on cart page. How can i achieve it?
0
votes
1answer
776 views

Reload Total section in checkout/cart page - Matgento 2

I want to reload total section when checkbox checked/unchecked. Here is the code I am trying to implement. etc/frontend/sections.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
2answers
434 views

How can I disable all the payment options, when the cart value is 0 in Magento 1.9

How can I disable all the payment options, when the cart value is 0. I heard about zero subtotal checkout, but when the cart value is 0, all the payment methods appear along with the zero subtotal ...
0
votes
0answers
31 views

Magento 2 : Cart page total block messed up in AWS server

I have one query. I have 2 copy of one site one is in AWS server and another one is in Site ground. In site ground all works fine but in AWS it will messed up total block in cart page.