I need the value enter the checkout page customer register form entering value in app/code/core/Mage/Tax/Model/Calculation.php file. IS possible to get the entering value .


you can get checkout post values of billing using following code

echo $billing['city'];
echo $billing['postcode'];
  • $billing['vat_id'] is not working. @Qaisar Satti – Crock Feb 3 '17 at 6:43
  • @Crock can you share the generated html of that field – Qaisar Satti Feb 3 '17 at 6:46
  • Actually., I need to remove the tax applying when customer enter the vat id. so I went app/code/core/Mage/Tax/Model/Calculation.php function calcTaxAmount($price, $taxRate, $priceIncludeTax = false, $round = true) inside i write $billing=Mage::app()->getRequest()->getPost('billing'); $quote = $billing['vat_id']; if($quote !="") { return 0; } – Crock Feb 3 '17 at 6:48
  • @Crock i know but what is your filed code did you added custom field you must be enter with field name=billing['vat_id']; then you can get it by this code – Qaisar Satti Feb 3 '17 at 6:51
  • 1
    @Crock try with echo $billing['taxvat']; because your filed name is taxvat – Qaisar Satti Feb 3 '17 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.