From c02d894c58ddb2ea24a706cb593232aaed11acbb Mon Sep 17 00:00:00 2001 From: "Denis Vermylen (dve)" Date: Thu, 15 Sep 2016 10:06:54 +0200 Subject: [PATCH] [IMP] website_sale: improve tooldtips + strings on views Better tooltips for settings options: - Pricing Strategy: remove tooltip - Sales Price: - Specific prices per customer segment, currency, etc.: new pricing table available in product detail form (Sales tab). - Advanced pricing based on formulas (discounts, margins, rounding): apply price rules from a new *Pricelists* menu in Configuration. - Optional products: Installs *e-Commerce Optional Products* Better tooltips in product page: - Website Categories: Categories can be published on the Shop page (online catalog grid) to help customers find all the items within a category. To publish them, go to the Shop page, hit Customize and turn *Product Categories* on. A product can belong to several categories. - Suggested Products - Relabel the field on product detail form, web page + web customize menu: should be Alternative Products - new tooltip: Propose more expensive alternatives to your customers (upsell strategy). Those products show up on the product page. - Accessory Products: Accessories show up when the customer reviews the cart before paying (cross-sell strategy, e.g. for computers: mouse, keyboard, etc.). An algorithm figures out a list of accessories based on all the products added to cart. - Optional Products: Optional Products are suggested whenever the customer hits *Add to Cart* (cross-sell strategy, e.g. for computers: warranty, software, etc.). - Availability: Adds an availability status on the web product page. --- addons/website_sale/models/product.py | 13 +++++++++---- addons/website_sale/models/res_config.py | 12 ++++-------- addons/website_sale/static/description/index.html | 2 +- .../static/src/js/website_sale_tour_shop.js | 2 +- addons/website_sale/views/templates.xml | 6 +++--- addons/website_sale_options/models/product.py | 5 ++++- 6 files changed, 22 insertions(+), 18 deletions(-) diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index c3e5b6e241d..c436350c809 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -110,21 +110,26 @@ class ProductTemplate(models.Model): ) website_description = fields.Html('Description for the website', sanitize_attributes=False, translate=True) alternative_product_ids = fields.Many2many('product.template', 'product_alternative_rel', 'src_id', 'dest_id', - string='Suggested Products', help='Appear on the product page') + string='Alternative Products', help='Suggest more expensive alternatives to ' + 'your customers (upsell strategy). Those products show up on the product page.') accessory_product_ids = fields.Many2many('product.product', 'product_accessory_rel', 'src_id', 'dest_id', - string='Accessory Products', help='Appear on the shopping cart') + string='Accessory Products', help='Accessories show up when the customer reviews the ' + 'cart before paying (cross-sell strategy, e.g. for computers: mouse, keyboard, etc.). ' + 'An algorithm figures out a list of accessories based on all the products added to cart.') website_size_x = fields.Integer('Size X', default=1) website_size_y = fields.Integer('Size Y', default=1) website_style_ids = fields.Many2many('product.style', string='Styles') website_sequence = fields.Integer('Website Sequence', help="Determine the display order in the Website E-commerce", default=lambda self: self._default_website_sequence()) public_categ_ids = fields.Many2many('product.public.category', string='Website Product Category', - help="Those categories are used to group similar products for e-commerce.") + help="Categories can be published on the Shop page (online catalog grid) to help " + "customers find all the items within a category. To publish them, go to the Shop page, " + "hit Customize and turn *Product Categories* on. A product can belong to several categories.") availability = fields.Selection([ ('empty', 'Display Nothing'), ('in_stock', 'In Stock'), ('warning', 'Warning'), - ], "Availability", default='empty', help="This field is used to display a availability banner with a message on the ecommerce") + ], "Availability", default='empty', help="Adds an availability status on the web product page.") availability_warning = fields.Text("Availability Warning", translate=True) product_image_ids = fields.One2many('product.image', 'product_tmpl_id', string='Images') diff --git a/addons/website_sale/models/res_config.py b/addons/website_sale/models/res_config.py index 1b59d6fb19a..9cd955f1f1a 100644 --- a/addons/website_sale/models/res_config.py +++ b/addons/website_sale/models/res_config.py @@ -36,23 +36,19 @@ class WebsiteConfigSettings(models.TransientModel): module_website_sale_options = fields.Selection([ (0, 'One-step "add to cart"'), (1, 'Suggest optional products when adding to cart (e.g. for a computer: warranty, software, etc.)') - ], "Optional Products", help='Install the module website_sale_options') + ], "Optional Products", help='Installs *e-Commerce Optional Products*') module_portal = fields.Boolean("Activate the customer portal", help="""Give your customers access to their documents.""") # the next 2 fields represent sale_pricelist_setting from sale.config.settings, they are split here for the form view, to improve usability sale_pricelist_setting_split_1 = fields.Selection([ (0, 'A single sales price per product'), (1, 'Several prices selectable through a drop-down list or applied automatically via Geo-IP'), - ], default=0, string="Pricing Strategy", - help='Fix Price: all price manage from products sale price.\n' - 'Different prices per Customer: you can assign price on buying of minimum quantity in products sale tab.\n' - 'Advanced pricing based on formula: You can have all the rights on pricelist') + ], default=0, string="Pricing Strategy") sale_pricelist_setting_split_2 = fields.Selection([ (0, 'Specific prices per customer segment, currency, etc.'), (1, 'Advanced pricing based on formulas (discounts, margins, rounding)') ], default=0, string="Sales Price", - help='Fix Price: all price manage from products sale price.\n' - 'Different prices per Customer: you can assign price on buying of minimum quantity in products sale tab.\n' - 'Advanced pricing based on formula: You can have all the rights on pricelist') + help='Specific prices per customer segment, currency, etc.: new pricing table available in product detail form (Sales tab).\n' + 'Advanced pricing based on formulas (discounts, margins, rounding): apply price rules from a new *Pricelists* menu in Configuration.') group_sale_pricelist = fields.Boolean("Use pricelists to adapt your price per customers", implied_group='product.group_sale_pricelist', help="""Allows to manage different prices based on rules per category of customers. diff --git a/addons/website_sale/static/description/index.html b/addons/website_sale/static/description/index.html index 8b3cb4634e7..57f94f7071b 100644 --- a/addons/website_sale/static/description/index.html +++ b/addons/website_sale/static/description/index.html @@ -21,7 +21,7 @@

Simply drag & drop pre-made building blocks to set your desired elements into place. Edit text inline straight on the web page to fine tune the product description, characteristics and images.

- Emphasize your best products on your storefront. Add suggested products and product attributes like color or size. Customize the color, layout and font of your theme. + Emphasize your best products on your storefront. Add alternative products and product attributes like color or size. Customize the color, layout and font of your theme.

diff --git a/addons/website_sale/static/src/js/website_sale_tour_shop.js b/addons/website_sale/static/src/js/website_sale_tour_shop.js index 750c9428ec3..16805fbeb6b 100644 --- a/addons/website_sale/static/src/js/website_sale_tour_shop.js +++ b/addons/website_sale/static/src/js/website_sale_tour_shop.js @@ -59,7 +59,7 @@ odoo.define("website_sale.tour_shop", function (require) { }, { trigger: ".o_web_settings_dashboard_progress_title,.progress", extra_trigger: "body:not(.editor_enable)", - content: _t("Follow the steps and advises in the Odoo Planner to deploy your e-Commerce website in no time!"), + content: _t("Follow the steps and advices in the Odoo Planner to deploy your e-Commerce website in no time!"), position: "bottom", }]); }); diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index bf5f48f996f..0644fd08df7 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -483,10 +483,10 @@ -