Skip to content

Commit

Permalink
Merge pull request PrestaShop#8916 from sLorenzini/BOOM-5208
Browse files Browse the repository at this point in the history
Add tips in the back office to improve user experience
  • Loading branch information
eternoendless authored Apr 23, 2018
2 parents be364a1 + 9333d85 commit 11350b4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@
{else}
{$smarty.block.parent}
{/if}
{if ($input.name == 'active')}
<div class="col-lg-12">
<div class="help-block">
{l
s='If you want a category to appear in the menu of your shop, go to [1]Modules > Modules & Services > Installed modules.[/1] Then, configure your menu module.'
sprintf=[
'[1]' => "<a href=\"{$link->getAdminLink('AdminModulesSf')}\" class=\"_blank\">",
'[/1]' => '</a>'
]
d='Admin.Catalog.Help'
}
</div>
</div>
{/if}
{if in_array($input.name, ['image', 'thumb'])}
<div class="col-lg-6">
<div class="help-block">{l s='Recommended dimensions (for the default theme): %1spx x %2spx' sprintf=[$input.format.width, $input.format.height] d='Admin.Catalog.Help'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}

<div class="alert alert-danger">
{l s='By default, all images settings are already installed in your store. Do not delete them, you will need it!' d='Admin.Design.Help'}
</div>

{if isset($content)}
{$content}
{/if}
Expand Down
1 change: 1 addition & 0 deletions controllers/admin/AdminCategoriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ public function renderForm()
'name' => 'active',
'required' => false,
'is_bool' => true,
'hint' => $this->trans('Click on "Displayed" to index the category on your shop.', array(), 'Admin.Catalog.Help'),
'values' => array(
array(
'id' => 'active_on',
Expand Down
2 changes: 1 addition & 1 deletion controllers/admin/AdminThemesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function renderOptions()
),
'PS_FAVICON' => array(
'title' => $this->trans('Favicon', array(), 'Admin.Design.Feature'),
'hint' => $this->trans('Will appear in the address bar of your web browser.', array(), 'Admin.Design.Help'),
'hint' => $this->trans('It is the small icon that appears in browser tabs, next to the web address', array(), 'Admin.Design.Help'),
'type' => 'file',
'name' => 'PS_FAVICON',
'tab' => 'icons',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="card-block">
<div class="card-text">
<div class="form-group">
{{ ps.label_with_help(('Catalog mode'|trans), ('When active, all shopping features will be disabled.'|trans({}, 'Admin.Shopparameters.Help'))) }}
{{ ps.label_with_help(('Catalog mode'|trans), ('The catalog mode is actually to disable products checkout (prices, add to cart, etc.) on your shop, like a retail website does.'|trans({}, 'Admin.Shopparameters.Help'))) }}
{{ form_errors(generalForm.catalog_mode) }}
{{ form_widget(generalForm.catalog_mode) }}
</div>
Expand Down

0 comments on commit 11350b4

Please sign in to comment.