From f6414739c755d956807d27d664e22b1dcf0fb58d Mon Sep 17 00:00:00 2001 From: bLeveque Date: Sat, 19 May 2012 20:55:05 +0000 Subject: [PATCH] [-] INSTALLER : Fixed a missing "echo" at Step 3 in the SMTP configuration [-] BO : Fixed a French hardcoded page (Favorites Views) [-] BO : Fixed a typo ("Informations" => "Information") [*] BO : Improved the UI of the Combinations generator and added some explanations - #PSCFV-770 [*] MO : Added a # before the order number in the e-mail sent to the merchant when an order is placed --- .../attribute_generator/content.tpl | 147 ++++++++---------- .../template/controllers/cart_rules/form.tpl | 2 +- .../controllers/modules/favorites.tpl | 14 +- .../controllers/orders/helpers/view/view.tpl | 3 +- .../controllers/products/combinations.tpl | 5 +- .../products/helpers/form/form.tpl | 3 +- controllers/admin/AdminProductsController.php | 2 +- install-dev/theme/views/database.phtml | 2 +- modules/mailalerts/mailalerts.php | 2 +- 9 files changed, 81 insertions(+), 99 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/attribute_generator/content.tpl b/admin-dev/themes/default/template/controllers/attribute_generator/content.tpl index 26b69a2ac..d371f5723 100644 --- a/admin-dev/themes/default/template/controllers/attribute_generator/content.tpl +++ b/admin-dev/themes/default/template/controllers/attribute_generator/content.tpl @@ -25,14 +25,13 @@ *} - {include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
{block name="leadin"}{/block}
- -{if $generate} -
- {l s='%d product(s) successfully created.' sprintf=$combinations_size} -
-{/if} +{if $generate}
{l s='%d product(s) successfully created.' sprintf=$combinations_size}
{/if}
- {l s='Attributes generator'} -
{l s='To generate the attributes, hold down the "Ctrl" key, select your attributes and click "Add".'}
-
-
- -
-
-

- -
+ {l s='Attributes generator'} +

+ +
+

+ +

-
- {l s='Add or modify attributes for:'} {$product_name} -

-
-
- -
- -
- -
- -
-
-
-
-
-
-
- {foreach $attribute_groups as $k => $attribute_group} - {if isset($attribute_js[$attribute_group['id_attribute_group']])} -
- - - - - - - - - - - - {if isset($attributes[$attribute_group['id_attribute_group']])} - {foreach $attributes[$attribute_group['id_attribute_group']] AS $k => $attribute} - - {/foreach} - {/if} +
+
{l s='The Combinations Generator is a tool which allows you to easily create a series of combinations by selecting the related attributes. For example, if you are selling T-Shirts, in 3 different sizes and 2 different colors, the Generator will create 6 combinations for you.'}
+

{l s='You are currently generating combinations for the following product:'} {$product_name|escape:'htmlall':'UTF-8'}

+

{l s='Step 1: On the left side, Select the attributes you want to use (Holding down the "CTRL" Key on your keyboard and validating by clicking on "Add"'}

+
+ {foreach $attribute_groups as $k => $attribute_group} + {if isset($attribute_js[$attribute_group['id_attribute_group']])} + + + + + + + + + + + + {if isset($attributes[$attribute_group['id_attribute_group']])} + {foreach $attributes[$attribute_group['id_attribute_group']] AS $k => $attribute} + + {/foreach} {/if} - {/foreach} + {/if} + {/foreach}
+

{l s='Step 2 (optional): Select a default Quantity and Reference for all the combinations that the Generator will create for this product'}

+ + + + + + + + + +
{l s='Default Quantity:'}
{l s='Default Reference:'}
+

{l s='Finally, click on "Generate these combinations"'}

+

\ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/cart_rules/form.tpl b/admin-dev/themes/default/template/controllers/cart_rules/form.tpl index 9a86bcbe0..654c53790 100644 --- a/admin-dev/themes/default/template/controllers/cart_rules/form.tpl +++ b/admin-dev/themes/default/template/controllers/cart_rules/form.tpl @@ -5,7 +5,7 @@
- -
+
diff --git a/admin-dev/themes/default/template/controllers/products/combinations.tpl b/admin-dev/themes/default/template/controllers/products/combinations.tpl index 5b0699d45..d831774e7 100644 --- a/admin-dev/themes/default/template/controllers/products/combinations.tpl +++ b/admin-dev/themes/default/template/controllers/products/combinations.tpl @@ -47,8 +47,9 @@ {/foreach}

{l s='Add or modify combinations for this product'}

-
{l s='or go to'} -  combinations_generator{l s='Product combinations generator'} +
{l s='or use the'} +  combinations_generator{l s='Product combinations generator'} + {l s='in order to create automatically a set of combinations'} {if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
diff --git a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl index 29f1581de..28b8f7aca 100644 --- a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl @@ -71,9 +71,10 @@
{l s='Products'}