diff --git a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl index c0d2e37e0..f2a1e23bf 100644 --- a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl +++ b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl @@ -24,64 +24,71 @@ * International Registered Trademark & Property of PrestaShop SA *} - - - - - - - - -
- - -
-

- {$module->displayName|truncate:40:'…'} {$module->version} - {if isset($module->id) && $module->id gt 0 } - {if $module->active} - {l s='Enabled'} - {else} - {l s='Disabled'} - {/if} - {else} - {if isset($module->type) && $module->type == 'addonsMustHave'} - {l s='Must Have'} - {else} - {l s='Not installed'} - {/if} - - {/if} -

-

- {if isset($module->description) && $module->description ne ''} - {$module->description|truncate:100:'…'} - {else} -   - {/if} -

-
-
-
- {if isset($module->type) && $module->type == 'addonsMustHave'} -

- - -   {displayPrice price=$module->price currency=$module->id_currency} - - -

- {else if !isset($module->not_on_disk)} - {$module->optionsHtml} -

- {l s='Submit'} -

- {else} -

- {l s='Install'} -

- {/if} -
-
+ + + + - \ No newline at end of file + +
+

+ {$module->displayName|truncate:40:'…'} {$module->version} + {if isset($module->id) && $module->id gt 0 } + {if $module->active} + {l s='Enabled'} + {else} + {l s='Disabled'} + {/if} + {else} + {if isset($module->type) && $module->type == 'addonsMustHave'} + {l s='Must Have'} + {else} + {l s='Not installed'} + {/if} + + {/if} +

+

+ {if isset($module->description) && $module->description ne ''} + {$module->description|truncate:100:'…'} + {else} +   + {/if} +

+
+ + {if isset($module->type) && $module->type == 'addonsMustHave'} +   + +

+ + +   {displayPrice price=$module->price currency=$module->id_currency} + + +

+ + {else if !isset($module->not_on_disk)} + +

{$module->optionsHtml}

+ + +

+ + + {l s='Submit'} + +

+ + {else} +   + +

+ + + {l s='Install'} + +

+ + {/if} + diff --git a/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl b/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl index 77b7c3763..6ef99565c 100644 --- a/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl +++ b/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl @@ -120,10 +120,10 @@
{/if} -

+

{$module['instance']->name|stripslashes} {$module['instance']->displayName|stripslashes} -

+
{l s='Version:'}
@@ -170,7 +170,14 @@
{/foreach} -
+
+ + + +
diff --git a/admin-dev/themes/default/template/controllers/payment/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/payment/helpers/view/view.tpl index 84b1475d0..4c70550eb 100644 --- a/admin-dev/themes/default/template/controllers/payment/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/payment/helpers/view/view.tpl @@ -33,7 +33,7 @@ {/if} {if $display_restrictions} -

{l s='Payment module restrictions'}

+ {l s='Payment module restrictions'} {foreach $lists as $list} {include file='controllers/payment/restrictions.tpl'} {/foreach} diff --git a/admin-dev/themes/default/template/controllers/payment/restrictions.tpl b/admin-dev/themes/default/template/controllers/payment/restrictions.tpl index ffc9f6292..f87eca2c7 100644 --- a/admin-dev/themes/default/template/controllers/payment/restrictions.tpl +++ b/admin-dev/themes/default/template/controllers/payment/restrictions.tpl @@ -23,16 +23,16 @@ * International Registered Trademark & Property of PrestaShop SA *} -
-
- {$list['title']} -

{$list['desc']}

- + +
+  {$list['title']} +

{$list['desc']}

+
- + {foreach $payment_modules as $module} {if $module->active} - {foreach $list['items'] as $item} - - {foreach $payment_modules as $key_module => $module} - {if $module->active} - + {foreach $payment_modules as $key_module => $module} + {if $module->active} + - {/if} - {/foreach} + {if $type != 'null'} + + {else} + -- + {/if} + + {/if} + {/foreach} {/foreach} {if $list['name_id'] === 'currency'} - + {foreach $payment_modules as $module} {if $module->active} - + {/if} {/foreach} - + {foreach $payment_modules as $module} {if $module->active} - + {/if} {/foreach} {/if}
{$list['title']}{$list['title']} + {if $list['name_id'] != 'currency' || $module->currencies_mode == 'checkbox'} @@ -47,53 +47,79 @@
{$item['name']} - {assign var='type' value='null'} - {if !$item['check_list'][$key_module]} - {* Keep $type to null *} - {elseif $list['name_id'] === 'currency'} - {if $module->currencies && $module->currencies_mode == 'checkbox'} + + {$item['name']} + + {assign var='type' value='null'} + {if !$item['check_list'][$key_module]} + {* Keep $type to null *} + {elseif $list['name_id'] === 'currency'} + {if $module->currencies && $module->currencies_mode == 'checkbox'} + {$type = 'checkbox'} + {elseif $module->currencies && $module->currencies_mode == 'radio'} + {$type = 'radio'} + {/if} + {else} {$type = 'checkbox'} - {elseif $module->currencies && $module->currencies_mode == 'radio'} - {$type = 'radio'} {/if} - {else} - {$type = 'checkbox'} - {/if} - {if $type != 'null'} - - {else} - -- - {/if} -
{l s='Customer currency'} + {l s='Customer currency'} + {if $module->currencies && $module->currencies_mode == 'radio'}$list['name_id'])} checked="checked"{/if} />{else}--{/if} + {if $module->currencies && $module->currencies_mode == 'radio'} + $list['name_id'])} checked="checked" + {/if} /> + {else} + -- + {/if} +
{l s='Shop default currency'} + {l s='Shop default currency'} + {if $module->currencies && $module->currencies_mode == 'radio'}$list['name_id'])} checked="checked"{/if} />{else}--{/if} + {if $module->currencies && $module->currencies_mode == 'radio'} + $list['name_id'])} checked="checked" + {/if} + /> + {else} + -- + {/if} +
-

+

+ +

\ No newline at end of file diff --git a/admin-dev/themes/default/template/helpers/modules_list/list.tpl b/admin-dev/themes/default/template/helpers/modules_list/list.tpl index 7bf53702f..c18bf6414 100644 --- a/admin-dev/themes/default/template/helpers/modules_list/list.tpl +++ b/admin-dev/themes/default/template/helpers/modules_list/list.tpl @@ -23,24 +23,26 @@ * International Registered Trademark & Property of PrestaShop SA *} -

{l s='Modules list'}

-
- +
-
\ No newline at end of file diff --git a/controllers/admin/AdminPaymentController.php b/controllers/admin/AdminPaymentController.php index 0c10bab4a..70c7bdf75 100644 --- a/controllers/admin/AdminPaymentController.php +++ b/controllers/admin/AdminPaymentController.php @@ -30,6 +30,7 @@ class AdminPaymentControllerCore extends AdminController public function __construct() { + $this->bootstrap = true; parent::__construct(); $shop_id = Context::getContext()->shop->id;