Linked Questions

31
votes
4answers
17k views

Modify tax rate on cart quote items and recalculate

I have a category of products which (legally) need to have their tax rate changed when you are ordering more than a certain quantity. I have extended the various tax models to get this working when ...
10
votes
2answers
5k views

Magento 2 : Add Custom Tax Amount In Cart Programatically

I want to add custom tax amount to checkout cart programmatically. Here is the example. Cart Old Tax = 4.21 Custom Tax = 2 New Tax = 4.21 + 2 = 6 Check the screenshot below. I need this done ...
1
vote
1answer
5k views

How to change the tax amount in quote

I wish to change the tax amount in checkout programmatically I am using following code let me know If I am making any mistake. $session= Mage::getSingleton("checkout/session"); $quote_id = $session-&...
6
votes
4answers
1k views

Magento2 : How to get equivalent class of “Mage::getModel('tax/calculation')”?

I am trying to convert below code in magento2. I'm unable to find equivalent class of Mage::getModel('tax/calculation') in Magento2. $taxCalculation = Mage::getModel('tax/calculation'); $request = $...
0
votes
1answer
3k views

Change the price in quote while adding product to cart: magento2

I want to apply custom price for the current order. I read that I should use sales_quote_add_item, But its look like I am doing something Wrong. I found some tutorial for magento1 but not for Magento ...
1
vote
1answer
2k views

how to update tax amount with custom price in magento 2

HOW TO UPDATE TAX WITH CUSTOM VALUE IN CART OR CHECKOUT.My requirement was when customer click add to cart and he move to cart that time i want to update tax with some API so do the needful.
0
votes
1answer
886 views

Magento 2 : Add discount and tax in order programmatically

I used below link to place an order, but in that, I cannot get any solution. how to add the tax or discount in order so anyone has done this thing? please help to solve this issue. http://www....
1
vote
1answer
617 views

update price Observer is not working on cart page

Here is the modules config file: app\etc\modules\Cart_Updates.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <Cart_Updates> <codePool&...
1
vote
1answer
479 views

Uncheck billing and shipping address are same checkbox in magento2 if pickup store is enabled

I have installed a store pick up module. So, I am trying to uncheck the checkbox of "My billing and shipping address are same" once the module is enabled. I have refered the below link, this will ...
1
vote
0answers
754 views

Magento 2 Tax Calculation based on Row Total

I have my tax set to calculate tax on total however am getting slight miss matches in edge cases with Sage Accounts 50. From what i can tell this calculates on row total. So have changed this and ...
1
vote
0answers
660 views

Get Tax class name from id in magento2

I have used below code to get tax class name from id. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $taxClassObj = $objectManager->create('Magento\Tax\Model\TaxClass\Source ...
1
vote
1answer
380 views

Argument passing error in after plugin

I am trying to create after plugin for delete function of Magento\Tax\Model\TaxRuleRepository function looks like follows public function delete(TaxRuleInterface $rule) { $ruleId = $rule-...
3
votes
1answer
214 views

Magento 2 - Facebook pixel tracking on AddToCart event

Note: Before marking it as duplicate please read description carefully I am creating a module for Facebook pixel tracking and I am stuck at AddToCart event. I have seen some 3rd party extensions, ...
0
votes
1answer
258 views

Create/Update Attribute Option Custom api issue

I have created custom rest api to create/update attribute options by attribute_id. Here is my webapi.xml file code. <route url="/V1/attribute/AttributeOption" method="POST"> <service ...
0
votes
1answer
93 views

How to add tax amount in old orders in Magento-2.1?

I have some orders is placed, when tax rule is not build. After some times, I will create tax rule. Now all orders is placed with tax rules. But I want to add tax rule in old orders. How can I do this ...

15 30 50 per page