Skip to content
Open

1.6 #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

33 changes: 15 additions & 18 deletions app/code/community/ExtensionsStore/Addressvalidator/Block/Checkout/Onepage/Billing.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@
* @package ExtensionsStore_Addressvalidator
* @author Extensions Store <admin@extensions-store.com>
*/

class ExtensionsStore_Addressvalidator_Block_Checkout_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing
{
/**
* Insert script tag before billing step, to add nextStep overrides to Billing and Shipping objects
*
* @param string $html
* @return string
*/
protected function _afterToHtml($html)
{
$helper = Mage::helper('addressvalidator');
if ($helper->enabled()){
$html = '<script type="text/javascript" src="'. $this->getSkinUrl('js/extensions_store/addressvalidator/address.js').'"></script>'.$html;
}

return $html;
}
class ExtensionsStore_Addressvalidator_Block_Checkout_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing {
/**
* Insert script tag before billing step, to add nextStep overrides to Billing and Shipping objects
*
* @param string $html
* @return string
*/
protected function _afterToHtml($html) {
$helper = Mage::helper ( 'addressvalidator' );
if ($helper->enabled ()) {
$html = '<script type="text/javascript" src="' . $this->getSkinUrl ( 'js/extensions_store/addressvalidator/address.js' ) . '"></script>' . $html;
}

return $html;
}
}
Loading