Skip to content

Instantly share code, notes, and snippets.

@madismanni
madismanni / payment.phtml
Created May 7, 2018 15:03
One Step Checkout 4.5.5 / pp+ 1.5.1 / patch issue : infinite loop in ajax refreshes
<?php
/**
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
@madismanni
madismanni / dhl_versenden.xml
Last active May 17, 2018 04:59
One Step Checkout 4.5.8 compatibility with dhl_versenden.xml
<?xml version="1.0" encoding="utf-8" ?>
<!--
/**
* Dhl Versenden
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
@madismanni
madismanni / ppp-script.phtml
Last active May 5, 2018 20:22
FIX FOR ISSUE : the following combination not working : pp+ 1.5.1 /// One Step Checkout 4.5.5 /// and patch for them
<?php $paymentExperience = $this->getPaymentEperience();?>
<?php if ($paymentExperience) :?>
<script type="text/javascript">
window.externMethodEnabled = false;
window.startPPP = function () {
if(typeof window.thirdPartyObject == 'undefined') {
//window.thirdPartyObject = <?php echo $this->getThirdPartyJsonObject(); ?>;
//window.thirdPartyMethodObject = <?php echo $this->getThirdPartyMethodJsonObject(); ?>;
window.thirdPartyObject = {<?php echo $this->getThirdPartyJsonObject(); ?>};
window.thirdPartyMethodObject = {<?php echo $this->getThirdPartyMethodJsonObject(); ?>};
@madismanni
madismanni / Checkout.php
Last active June 18, 2018 17:39
One Step Checkout SUPEE 9767 manual patch
<?php
/**
{{COPYRIGHT_NOTICE}}
*/
class Idev_OneStepCheckout_Block_Checkout extends Mage_Checkout_Block_Onepage_Abstract
{
public $formErrors;
public $settings;
@madismanni
madismanni / billing_fields.phtml
Last active June 30, 2016 16:21
Modification for TIG PostcodeNL for One Step Checkout 4.5.6
<?php
/**
* ___________ __ __
* \__ ___/____ _/ |_ _____ | |
* | | / _ \\ __\\__ \ | |
* | | | |_| || | / __ \_| |__
* |____| \____/ |__| (____ /|____/
* \/
* ___ __ __
* | | ____ _/ |_ ____ _______ ____ ____ _/ |_
@madismanni
madismanni / config.xml
Last active April 28, 2016 09:01
FIX FOR * : Idev One Step Checkout : Fatal error: Call to undefined method Idev_OneStepCheckout_Model_Paypal_Config::setFallBackMethod() in /home/sbu2.magentoprojects.net/httpdocs/shopsky_new/app/code/community/CLS/Paypal/Model/Paypal/Stored/Customerstored/Direct.php on line 50
<!--
FILE path:
app/code/local/Idev/OneStepCheckout/etc/config.xml
FIX FOR:
Fatal error: Call to undefined method Idev_OneStepCheckout_Model_Paypal_Config::setFallBackMethod()
in /app/code/community/CLS/Paypal/Model/Paypal/Stored/Customerstored/Direct.php on line 50
-->
<?xml version="1.0"?>
<config>
@madismanni
madismanni / onestepcheckout.xml
Last active April 27, 2016 14:32
INTEGRATION : One Step Checkout 4.5.5 with payment method payone_creditcard
<!-- FILE PATH : app/design/frontend/base/default/layout/onestepcheckout.xml -->
<?xml version="1.0"?>
<layout version="0.1.0">
<onestepcheckout_ajax_add_extra_product>
<block type="onestepcheckout/summary" name="checkout.cart.totals" as="summary" template="onestepcheckout/summary.phtml" output="toHtml" />
</onestepcheckout_ajax_add_extra_product>
<onestepcheckout_ajax_set_methods_separate>
<block output="toHtml" type="core/template" name="set_methods_result" as="set_methods_result" template="onestepcheckout/set_methods_separate.phtml" >
@madismanni
madismanni / onestepcheckout.xml
Last active April 26, 2016 20:28
INTEGRATION : Idev One Step Checkout 4.5.5. (http://onestepcheckout.com/) WITH Auto Add Promo Items (https://amasty.com/auto-add-promo-items.html)
<!--this file: app/design/frontend/base/default/layout/onestepcheckout.xml-->
<?xml version="1.0"?>
<layout version="0.1.0">
<onestepcheckout_ajax_add_extra_product>
<block type="onestepcheckout/summary" name="checkout.cart.totals" as="summary" template="onestepcheckout/summary.phtml" output="toHtml" />
</onestepcheckout_ajax_add_extra_product>
<onestepcheckout_ajax_set_methods_separate>
<block output="toHtml" type="core/template" name="set_methods_result" as="set_methods_result" template="onestepcheckout/set_methods_separate.phtml" >