From 612cea044ce18ecf493987db63b45c764a8b3230 Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Wed, 18 Oct 2017 04:45:44 +0300 Subject: [PATCH] 2.3.0: https://github.com/mage2pro/stripe/issues/14 https://github.com/mage2pro/stripe/issues/34 --- Block/Multishipping.php | 6 +-- composer.json | 4 +- view/frontend/templates/multishipping.phtml | 30 ++++++++++++- view/frontend/web/main.less | 25 ++++------- view/frontend/web/multishipping.js | 50 ++++++++++++++++++++- 5 files changed, 90 insertions(+), 25 deletions(-) diff --git a/Block/Multishipping.php b/Block/Multishipping.php index 714e69f..a608f8c 100644 --- a/Block/Multishipping.php +++ b/Block/Multishipping.php @@ -50,9 +50,9 @@ final protected function _toHtml() {$m = $this->m(); return df_cc_n( // 2017-08-26 // The generic «.df-payment» selector is used here: // https://github.com/mage2pro/core/blob/2.10.43/Payment/view/frontend/web/main.less#L51 - ['class' => df_cc_s('df-payment df-card', df_module_name_lc($m, '-'))] - + df_widget($m, 'multishipping', CP::p()) - ,df_block_output($m, 'multishipping') + ['class' => df_cc_s('df-payment df-card', df_module_name_lc($m, '-'), 'df-singleLineMode')] + + df_widget($m, 'multishipping', CP::p() + ['ba' => df_quote()->getBillingAddress()->getData()]) + ,df_block_output($m, 'multishipping', ['requireCardholder' => $m->s()->requireCardholder()]) ) ,df_link_inline(df_asset_name('main', $m, 'css')) );} diff --git a/composer.json b/composer.json index 71c92c3..b7ebc28 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/stripe" - ,"version": "2.2.0" + ,"version": "2.3.0" ,"description": "The «Stripe» payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/stripe" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=3.2.7", "stripe/stripe-php": "3.*"} + ,"require": {"mage2pro/core": ">=3.2.8", "stripe/stripe-php": "3.*"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}} ,"keywords": [ "API" diff --git a/view/frontend/templates/multishipping.phtml b/view/frontend/templates/multishipping.phtml index ba42f7a..f5540ee 100644 --- a/view/frontend/templates/multishipping.phtml +++ b/view/frontend/templates/multishipping.phtml @@ -1,4 +1,9 @@ - + -
+
+ + +
+
+ +
+
+