diff --git a/retailcrm/views/templates/admin/settings.tpl b/retailcrm/views/templates/admin/settings.tpl index e83417a..dc2b481 100644 --- a/retailcrm/views/templates/admin/settings.tpl +++ b/retailcrm/views/templates/admin/settings.tpl @@ -144,11 +144,12 @@
+ {assign var="showUpdateButton" value=false}
{$catalogTitleName|escape:'htmlall':'UTF-8'} {if $catalogInfoMultistore|count == 1} {assign var='catalogInfo' value=$catalogInfoMultistore[$catalogInfoMultistore|@key] } - {l s='Manage site settings' mod='retailcrm'} {/if} @@ -157,12 +158,12 @@ - {if $catalogInfo and $catalogInfo.lastGenerated} + {if $catalogInfo and isset($catalogInfo.lastGenerated) and $catalogInfo.lastGenerated} {if $catalogInfo.isOutdated }
@@ -201,16 +202,18 @@ {l s='passed since last run' mod='retailcrm'}
-
- - {$catalogInfo.productsCount|default:'---'|escape:'htmlall':'UTF-8'} - - {l s='Products' mod='retailcrm'} - - {$catalogInfo.offersCount|default:'---'|escape:'htmlall':'UTF-8'} - - {l s='Offers' mod='retailcrm'} -
+ {if isset($catalogInfo.productsCount) and isset($catalogInfo.offersCount)} +
+ + {$catalogInfo.productsCount|escape:'htmlall':'UTF-8'} + + {l s='Products' mod='retailcrm'} + + {$catalogInfo.offersCount|escape:'htmlall':'UTF-8'} + + {l s='Offers' mod='retailcrm'} +
+ {/if}
{else}