// Fix multishop checkbox on theme selection
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
<p>{$categoryData['info']}</p>
|
<p>{$categoryData['info']}</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $use_multishop}
|
{if !$categoryData['hide_multishop_checkbox'] && $use_multishop}
|
||||||
<input type="checkbox" style="vertical-align: text-top" onclick="checkAllMultishopDefaultValue(this)" /> <b>{l s='Check / uncheck all'}</b> {l s='(check boxes if you want to set a custom value for this shop or group shop context)'}
|
<input type="checkbox" style="vertical-align: text-top" onclick="checkAllMultishopDefaultValue(this)" /> <b>{l s='Check / uncheck all'}</b> {l s='(check boxes if you want to set a custom value for this shop or group shop context)'}
|
||||||
<div class="separation"></div>
|
<div class="separation"></div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<input type="hidden" name="{$key}" value="{$field['value']}" />
|
<input type="hidden" name="{$key}" value="{$field['value']}" />
|
||||||
{else}
|
{else}
|
||||||
<div style="clear: both; padding-top:15px;" id="conf_id_{$key}" {if $field['is_invisible']} class="isInvisible"{/if}>
|
<div style="clear: both; padding-top:15px;" id="conf_id_{$key}" {if $field['is_invisible']} class="isInvisible"{/if}>
|
||||||
{if ($field['multishop_default'])}
|
{if $field['multishop_default'] && empty($field['no_multishop_checkbox'])}
|
||||||
<div class="preference_default_multishop">
|
<div class="preference_default_multishop">
|
||||||
<input type="checkbox" name="multishopOverrideOption[{$key}]" value="1" {if !$field['is_disabled']}checked="checked"{/if} onclick="checkMultishopDefaultValue(this, '{$key}')" />
|
<input type="checkbox" name="multishopOverrideOption[{$key}]" value="1" {if !$field['is_disabled']}checked="checked"{/if} onclick="checkMultishopDefaultValue(this, '{$key}')" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Vendored
-1
@@ -510,7 +510,6 @@
|
|||||||
'ProfileCore' => 'classes/Profile.php',
|
'ProfileCore' => 'classes/Profile.php',
|
||||||
'QuickAccess' => 'override/classes/QuickAccess.php',
|
'QuickAccess' => 'override/classes/QuickAccess.php',
|
||||||
'QuickAccessCore' => 'classes/QuickAccess.php',
|
'QuickAccessCore' => 'classes/QuickAccess.php',
|
||||||
'Range' => 'override/classes/range/Range.php',
|
|
||||||
'RangePrice' => 'override/classes/range/RangePrice.php',
|
'RangePrice' => 'override/classes/range/RangePrice.php',
|
||||||
'RangePriceCore' => 'classes/range/RangePrice.php',
|
'RangePriceCore' => 'classes/range/RangePrice.php',
|
||||||
'RangeWeight' => 'override/classes/range/RangeWeight.php',
|
'RangeWeight' => 'override/classes/range/RangeWeight.php',
|
||||||
|
|||||||
@@ -63,8 +63,12 @@ class HelperOptionsCore extends Helper
|
|||||||
if (!isset($category_data['fields']))
|
if (!isset($category_data['fields']))
|
||||||
$category_data['fields'] = array();
|
$category_data['fields'] = array();
|
||||||
|
|
||||||
|
$category_data['hide_multishop_checkbox'] = true;
|
||||||
foreach ($category_data['fields'] as $key => $field)
|
foreach ($category_data['fields'] as $key => $field)
|
||||||
{
|
{
|
||||||
|
if (empty($field['no_multishop_checkbox']))
|
||||||
|
$category_data['hide_multishop_checkbox'] = false;
|
||||||
|
|
||||||
// Set field value unless explicitly denied
|
// Set field value unless explicitly denied
|
||||||
if (!isset($field['auto_value']) || $field['auto_value'])
|
if (!isset($field['auto_value']) || $field['auto_value'])
|
||||||
$field['value'] = $this->getOptionValue($key, $field);
|
$field['value'] = $this->getOptionValue($key, $field);
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ class AdminThemesControllerCore extends AdminController
|
|||||||
'themes' => Theme::getThemes(),
|
'themes' => Theme::getThemes(),
|
||||||
'id_theme' => $this->context->shop->id_theme,
|
'id_theme' => $this->context->shop->id_theme,
|
||||||
'can_display_themes' => $this->can_display_themes,
|
'can_display_themes' => $this->can_display_themes,
|
||||||
|
'no_multishop_checkbox' => true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user