From 761058ccdb5c492dd1d163d35e379e707558ea6a Mon Sep 17 00:00:00 2001 From: tuyennn Date: Mon, 17 Jul 2017 18:15:27 +0700 Subject: [PATCH] #21: Fix Select box at Cart is shown as esaped HTML --- .../Block/Tax/Checkout/Shipping.php | 15 +++++ .../IntegerNet/Autoshipping/etc/config.xml | 5 ++ .../integernet/tax/checkout/shipping.phtml | 66 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 app/code/community/IntegerNet/Autoshipping/Block/Tax/Checkout/Shipping.php create mode 100644 app/design/frontend/base/default/template/integernet/tax/checkout/shipping.phtml diff --git a/app/code/community/IntegerNet/Autoshipping/Block/Tax/Checkout/Shipping.php b/app/code/community/IntegerNet/Autoshipping/Block/Tax/Checkout/Shipping.php new file mode 100644 index 0000000..34594f0 --- /dev/null +++ b/app/code/community/IntegerNet/Autoshipping/Block/Tax/Checkout/Shipping.php @@ -0,0 +1,15 @@ + + */ +class IntegerNet_Autoshipping_Block_Tax_Checkout_Shipping extends Mage_Tax_Block_Checkout_Shipping { + + protected $_template = 'integernet/tax/checkout/shipping.phtml'; + +} \ No newline at end of file diff --git a/app/code/community/IntegerNet/Autoshipping/etc/config.xml b/app/code/community/IntegerNet/Autoshipping/etc/config.xml index aeb47bc..97bad85 100644 --- a/app/code/community/IntegerNet/Autoshipping/etc/config.xml +++ b/app/code/community/IntegerNet/Autoshipping/etc/config.xml @@ -39,6 +39,11 @@ IntegerNet_Autoshipping_Block + + + IntegerNet_Autoshipping_Block_Tax_Checkout_Shipping + + diff --git a/app/design/frontend/base/default/template/integernet/tax/checkout/shipping.phtml b/app/design/frontend/base/default/template/integernet/tax/checkout/shipping.phtml new file mode 100644 index 0000000..16d5023 --- /dev/null +++ b/app/design/frontend/base/default/template/integernet/tax/checkout/shipping.phtml @@ -0,0 +1,66 @@ + +displayBoth()):?> + + + getExcludeTaxLabel() ?> + + + helper('checkout')->formatPrice($this->getShippingExcludeTax()) ?> + + + + + getIncludeTaxLabel() ?> + + + helper('checkout')->formatPrice($this->getShippingIncludeTax()) ?> + + +displayIncludeTax()) : ?> + + + getTotal()->getTitle() ?> + + + helper('checkout')->formatPrice($this->getShippingIncludeTax()) ?> + + + + + + getTotal()->getTitle() ?> + + + helper('checkout')->formatPrice($this->getShippingExcludeTax()) ?> + + +