Shipping methods and payment methods description converted to translation string

This commit is contained in:
Prashant Singh 2019-07-11 10:16:58 +05:30
parent 88611c9d84
commit 7ffbee95ad
6 changed files with 15 additions and 8 deletions

View File

@ -3,7 +3,7 @@ return [
'cashondelivery' => [
'code' => 'cashondelivery',
'title' => 'Cash On Delivery',
'description' => 'Cash On Delivery',
'description' => 'shop::app.checkout.onepage.cash-desc',
'class' => 'Webkul\Payment\Payment\CashOnDelivery',
'active' => true,
'sort' => 1
@ -12,7 +12,7 @@ return [
'moneytransfer' => [
'code' => 'moneytransfer',
'title' => 'Money Transfer',
'description' => 'Money Transfer',
'description' => 'shop::app.checkout.onepage.money-desc',
'class' => 'Webkul\Payment\Payment\MoneyTransfer',
'active' => true,
'sort' => 2
@ -21,7 +21,7 @@ return [
'paypal_standard' => [
'code' => 'paypal_standard',
'title' => 'Paypal Standard',
'description' => 'Paypal Standard',
'description' => 'shop::app.checkout.onepage.paypal-desc',
'class' => 'Webkul\Paypal\Payment\Standard',
'sandbox' => true,
'active' => true,

View File

@ -4,7 +4,7 @@ return [
'flatrate' => [
'code' => 'flatrate',
'title' => 'Flat Rate',
'description' => 'This is a flat rate',
'description' => 'shop::app.checkout.onepage.flat-desc',
'active' => true,
'default_rate' => '10',
'type' => 'per_unit',
@ -14,7 +14,7 @@ return [
'free' => [
'code' => 'free',
'title' => 'Free Shipping',
'description' => 'This is a free shipping',
'description' => 'shop::app.checkout.onepage.free-desc',
'active' => true,
'default_rate' => '0',
'class' => 'Webkul\Shipping\Carriers\Free',

View File

@ -441,7 +441,12 @@ return [
'free' => 'Free',
'coupon-used' => 'Coupon Used',
'applied' => 'Applied',
'back' => 'Back'
'back' => 'Back',
'cash-desc' => 'Cash On Delivery',
'money-desc' => 'Money Transfer',
'paypal-desc' => 'Paypal Standard',
'free-desc' => 'This is a free shipping',
'flat-desc' => 'This is a flat rate'
],
'total' => [

View File

@ -409,6 +409,8 @@
mounted: function() {
this.templateRender = paymentHtml.render;
console.log(paymentHtml.render);
for (var i in paymentHtml.staticRenderFns) {
paymentTemplateRenderFns.push(paymentHtml.staticRenderFns[i]);
}

View File

@ -28,7 +28,7 @@
</div>
<div class="line-two mt-5">
<span class="method-summary">{{ $payment['description'] }}</span>
<span class="method-summary">{{ __($payment['description']) }}</span>
</div>
</div>

View File

@ -28,7 +28,7 @@
<div class="line-two mt-5">
<div class="method-summary">
<b>{{ $rate->method_title }}</b> - {{ $rate->method_description }}
<b>{{ $rate->method_title }}</b> - {{ __($rate->method_description) }}
</div>
</div>
</div>