Skip to content

checkout

Auto Added by WPeMatico

Magento 2: Custom tax not beign sent to paypal

I am adding custom tax based on a particular shipping and payment method using the following plugin: use MagentoCustomerApiDataAddressInterfaceFactory as CustomerAddressFactory; use MagentoCustomerApiDataRegionInterfaceFactory as CustomerAddressRegionFactory; use MagentoQuoteApiDataShippingAssignmentInterface; use MagentoQuoteModelQuoteAddress; class Tax extends MagentoTaxModelSalesTotalQuoteTax { /** * Class constructor * *… Read More »Magento 2: Custom tax not beign sent to paypal

Updating total savings block in cart

I’ve successfully added a total_savings block to my theme. It works well by doing the calculation in the phtml file. themeMagento_Checkoutlayoutcheckout_cart_index.xml: <?xml version=”1.0″?> <page layout=”1column” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”checkout.cart.totals.container”> <block class=”MagentoFrameworkViewElementTemplate” name=”checkout.cart.total.savings” after=”checkout.cart.totals” template=”Magento_Checkout::total_savings.phtml” /> </referenceContainer> </body> </page> But… Read More »Updating total savings block in cart