This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eb3efa
commit 85402d4
Showing
30 changed files
with
197 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,13 +43,16 @@ public function getCssSelectors() | |
|
||
public function getHtmlTemplate() | ||
{ | ||
$result = Mage::getStoreConfig(self::XML_CONFIG_PREFIX . $this->getPageType() . '_html_template'); | ||
$result = str_replace( | ||
'{skin_url}', | ||
Mage::app()->getStore()->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN), | ||
$result | ||
); | ||
return $result; | ||
ob_start(); | ||
?> | ||
<div style="position: relative; font-style: italic; line-height: 1.4;" class="afterpay-installments"> | ||
or 4 interest-free payments of {price_here} with<br/> | ||
<img src="https://static.afterpay.com/integration/[email protected]" style="width: 76px; vertical-align: middle; display: inline;" /> | ||
<a href="#afterpay-what-is-modal" class="afterpay-what-is-modal-trigger">Learn more</a> | ||
</div> | ||
<style type="text/css">.price-box.ciq_price_box .ciq_view_shipping{margin-top:35px}</style> | ||
<?php | ||
return ob_get_clean(); | ||
} | ||
|
||
public function getMinPriceLimit() | ||
|
@@ -87,25 +90,12 @@ public function getInstallmentsAmount() | |
return (int)Mage::getStoreConfig('payment/afterpaypayovertime/installments_amount'); | ||
} | ||
|
||
public function getRegionSpecificText() | ||
{ | ||
if(Mage::app()->getStore()->getCurrentCurrencyCode() == 'USD') { | ||
return 'bi-weekly with'; | ||
} elseif(Mage::app()->getStore()->getCurrentCurrencyCode() == 'NZD') { | ||
return 'fortnightly with'; | ||
} elseif(Mage::app()->getStore()->getCurrentCurrencyCode() == 'AUD') { | ||
return 'fortnightly with'; | ||
} | ||
} | ||
|
||
public function getJsConfig() | ||
{ | ||
return array( | ||
'selectors' => $this->getCssSelectors(), | ||
'template' => $this->getHtmlTemplate(), | ||
'priceSubstitution' => '{price_here}', | ||
'regionSpecific' => '{region_specific_text}', | ||
'regionText' => $this->getRegionSpecificText(), | ||
'minPriceLimit' => $this->getMinPriceLimit(), | ||
'maxPriceLimit' => $this->getMaxPriceLimit(), | ||
'installmentsAmount' => $this->getInstallmentsAmount(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.