This file contains hidden or 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
<?php | |
class Ebizmarts_SageOne_Block_Adminhtml_Sales_Order_Creditnote_Note extends Mage_Core_Block_Template { | |
public function getCreditMemo() { | |
return Mage::registry('current_creditmemo'); | |
} | |
/** |
This file contains hidden or 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
//Before 'if(!this.isSagePay()) {' add | |
if(this.getPaymentMethod() == "hosted_pro") { | |
submitOsc($('onestepcheckout-form'), location.href, 'Please wait, processing your order...', SuiteConfig.getConfig('global', 'osc_loading_image')); | |
window._sagepayprocessingorder = false; | |
return; | |
} |
This file contains hidden or 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
/** | |
* Sage50 compatible Basket. | |
* | |
* @param Mage_Sales_Model_Quote $quote | |
* @return string Basket as string. | |
*/ | |
public function getSageBasket($quote) { | |
$basket = ''; |
This file contains hidden or 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
<?php | |
/** | |
* @see Ebizmarts_SagePaySuite_Block_Paypal_Express_Review | |
*/ | |
?> | |
<div class="page-title"> | |
<h1><?php echo $this->__('Review Order') ?></h1> | |
</div> | |
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?> |
This file contains hidden or 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
<currencies> | |
<currency type="AFN"> | |
<symbol>Af</symbol> | |
</currency> | |
<currency type="ANG"> | |
<symbol>NAf.</symbol> | |
</currency> | |
<currency type="AOA"> | |
<symbol>Kz</symbol> | |
</currency> |
This file contains hidden or 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
<?php | |
/** | |
* API model access for SagePay | |
* | |
* @category Ebizmarts | |
* @package Ebizmarts_SagePaySuite | |
* @author Ebizmarts <[email protected]> | |
*/ | |
class Ebizmarts_SagePaySuite_Model_Api_Payment extends Mage_Payment_Model_Method_Cc { |
This file contains hidden or 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
I have added this patch which should fix it | |
Payment.php | |
Add at line 1939 | |
if($this->getConfigData('proxy_enabled')) { | |
$proxy_user_pwd = $this->getConfigData('proxy_user').':'.$this->getConfigData('proxy_pass'); | |
$proxy_host_port = 'http://'.$this->getConfigData('proxy_host').':'.$this->getConfigData('proxy_port'); | |
curl_setopt($curlSession, CURLOPT_PROXYUSERPWD, $usrPwd); | |
curl_setopt($curlSession, CURLOPT_PROXY, $proxy_host_port); | |
} |
This file contains hidden or 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
diff --git a/app/code/local/Ebizmarts/SagePaySuite/Model/Api/Payment.php b/app/code/local/Ebizmarts/SagePaySuite/Model/Api/Payment.php | |
index 0b191b3..f56efab 100755 | |
--- a/app/code/local/Ebizmarts/SagePaySuite/Model/Api/Payment.php | |
+++ b/app/code/local/Ebizmarts/SagePaySuite/Model/Api/Payment.php | |
@@ -62,11 +62,11 @@ class Ebizmarts_SagePaySuite_Model_Api_Payment extends Mage_Payment_Model_Method | |
/** | |
* BasketXML related error codes. | |
- * | |
- * @var type |
This file contains hidden or 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
<?php | |
ini_set('error_reporting', E_ERROR | E_PARSE); | |
ini_set('display_errors', 1); | |
$baseUrl = "http://www.brou.com.uy"; | |
$data = file_get_contents($baseUrl . "/web/guest/institucional/cotizaciones"); | |
$dom = new DOMDocument; |
This file contains hidden or 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
<?xml version="1.0"?> | |
<basket> | |
<item> | |
<description>Honeycomb Quilted Silk Bed Spread - Blue - Pebble</description> | |
<productSku>Q-HCOMB/BP</productSku> | |
<productCode>53521</productCode> | |
<quantity>1</quantity> | |
<unitNetAmount>162.50</unitNetAmount> | |
<unitTaxAmount>32.50</unitTaxAmount> | |
<unitGrossAmount>195.00</unitGrossAmount> |