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
<?php | |
function getAdminToken() | |
{ | |
$url = 'https://example.com/rest/default/V1/integration/admin/token'; | |
$data = [ | |
"username" => "user", | |
"password" => "user_password" | |
]; | |
$data_string = json_encode($data); |
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
diff --git a/js/olegnax_osc/osc_form.js b/js/olegnax_osc/osc_form.js | |
index 2030f11..e093e31 100644 | |
--- a/js/olegnax_osc/osc_form.js | |
+++ b/js/olegnax_osc/osc_form.js | |
@@ -915,10 +915,22 @@ OnestepcheckoutForm.prototype = { | |
classThis.placeOrderButton.addClassName(classThis.disabledClassName); | |
classThis.placeOrderButton.disabled = true; | |
- new Ajax.Request(classThis.placeOrderUrl, { | |
- method: 'post', |
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
<?php | |
class SomeClass | |
{ | |
public function __construct( | |
\StripeIntegration\Payments\Helper\Generic $helper, | |
\Magento\Framework\Session\Generic $session, | |
\StripeIntegration\Payments\Model\Config $config, | |
\Magento\Checkout\Model\Cart $cart, | |
\Magento\Framework\Locale\Resolver $localeResolver |
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
diff --git a/app/design/frontend/base/default/template/tm/firecheckout/patches/stripe/form/stripe.phtml b/app/design/frontend/base/default/template/tm/firecheckout/patches/stripe/form/stripe.phtml | |
index d5ed0e88a..15e0396d4 100755 | |
--- a/app/design/frontend/base/default/template/tm/firecheckout/patches/stripe/form/stripe.phtml | |
+++ b/app/design/frontend/base/default/template/tm/firecheckout/patches/stripe/form/stripe.phtml | |
@@ -214,40 +214,9 @@ function stripeResponseHandler(status, response) { | |
Event.observe(window, 'load', function(e) { | |
if ($('onestepcheckout-form')) { | |
$$('.onestepcheckout-place-order-wrapper').each(function(elem){$(elem).replace('<div class="onestepcheckout-place-order-wrapper"><button type="button" title="Place order now" id="onestepcheckout-check-order" class="large orange onestepcheckout-button onestepcheckout-check-order" onclick="javascript:void(0);"><span><span>Place order now</span></span></button></div>')}); | |
- $('onestepcheckout-check-order').ob |
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
diff --git a/app/design/frontend/base/default/template/onestepcheckout/onestepcheckout.phtml b/app/design/frontend/base/default/template/onestepcheckout/onestepcheckout.phtml | |
index e7971e7..6902b59 100755 | |
--- a/app/design/frontend/base/default/template/onestepcheckout/onestepcheckout.phtml | |
+++ b/app/design/frontend/base/default/template/onestepcheckout/onestepcheckout.phtml | |
@@ -693,7 +693,17 @@ | |
var options = document.getElementsByName('payment[method]'); | |
for (var i = 0; i < options.length; i++) { | |
if ($(options[i].id).checked) { | |
- if (options[i].id.indexOf("tco") != -1) { | |
+ if (options[i].id.indexOf("cryozonic_stripe") != -1) { |
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
diff --git a/skin/frontend/base/default/typostores/onestepcheckout/opcheckout.js b/skin/frontend/base/default/typostores/onestepcheckout/opcheckout.js | |
index de885a6..7e41327 100755 | |
--- a/skin/frontend/base/default/typostores/onestepcheckout/opcheckout.js | |
+++ b/skin/frontend/base/default/typostores/onestepcheckout/opcheckout.js | |
@@ -100,9 +100,32 @@ | |
}); | |
this.element | |
.on('click', this.options.checkout.continueSelector, function(e) { | |
+ var me = this; | |
e.preventDefault(); |
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
diff --git a/skin/frontend/base/default/lotusbreath/onestepcheckout/js/osc.js b/skin/frontend/base/default/lotusbreath/onestepcheckout/js/osc.js | |
index 303bff9..ecc940a 100644 | |
--- a/skin/frontend/base/default/lotusbreath/onestepcheckout/js/osc.js | |
+++ b/skin/frontend/base/default/lotusbreath/onestepcheckout/js/osc.js | |
@@ -276,6 +276,23 @@ | |
); | |
}, | |
+ cryozonicPlaceOrder: function() | |
+ { |
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
<?php | |
protected function getTrialDays($details) | |
{ | |
switch ($details['trial_period_unit']) { | |
case null: | |
$days = 0; | |
break; | |
case 'day': | |
$days = $details['trial_period_frequency']; |
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
#!/bin/bash | |
export d=`date +%d` | |
export BACKUP_DIR="/home/user/backups/$d" | |
export USERNAME="username" | |
export PASSWORD="password" | |
export HOST="localhost" | |
mkdir -p $BACKUP_DIR | |
for DB in db1 db2 db3 |
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
diff --git a/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js b/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js | |
index 9dbd57b..16ee902 100644 | |
--- a/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js | |
+++ b/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js | |
@@ -75,7 +75,7 @@ define([ | |
return false; | |
} | |
- if (cached) { | |
+ if (cached && JSON.stringify(nodes)) { |
NewerOlder