summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vermylen (dve) <dve@odoo.com>2016-09-05 11:04:03 +0200
committerDenis Vermylen (dve) <dve@odoo.com>2016-09-08 12:28:22 +0200
commitf00e823a8d53fd91ca79a6506d2e380cd1b6207c (patch)
tree864df41311114fa1e525a919129e26a4e7d80e4c
parent6a72b37a76d6a00b771ad3e31d6fc4864da8d0b4 (diff)
[IMP] website_sale: improve tooltips + 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.
-rw-r--r--addons/website_sale/data/web_planner_data.xml10
-rw-r--r--addons/website_sale/models/product.py13
-rw-r--r--addons/website_sale/models/res_config.py12
-rw-r--r--addons/website_sale/static/description/index.html2
-rw-r--r--addons/website_sale/static/src/js/website_sale_tour_shop.js2
-rw-r--r--addons/website_sale/views/templates.xml6
-rw-r--r--addons/website_sale_options/models/product.py5
7 files changed, 27 insertions, 23 deletions
diff --git a/addons/website_sale/data/web_planner_data.xml b/addons/website_sale/data/web_planner_data.xml
index ebe643d95d5..40cb3b4235e 100644
--- a/addons/website_sale/data/web_planner_data.xml
+++ b/addons/website_sale/data/web_planner_data.xml
@@ -293,16 +293,16 @@
<div class="panel-heading">
<span class="panel-title">
<span class="fa fa-tag"/>
- <strong> 1. On Product pages:</strong> Show suggested products
+ <strong> 1. On Product pages:</strong> Show alternative products
</span>
</div>
<div class="panel-body">
<p>
- Increase your chances to make a sale by displaying suggested products.
+ Increase your chances to make a sale by displaying alternative products.
</p>
- <li>On your website, go to the product page where you want to add suggested products.</li>
- <li>Activate 'Suggested products' from the 'Customize' menu.</li>
- <li>Go to the <a t-att-href="prepare_backend_url('product.product_template_action', 'kanban')">Product detail form</a> and fill in one or more <strong>'Suggested Products'</strong>.</li>
+ <li>On your website, go to the product page where you want to add alternative products.</li>
+ <li>Activate 'Alternative Products' from the 'Customize' menu.</li>
+ <li>Go to the <a t-att-href="prepare_backend_url('product.product_template_action', 'kanban')">Product detail form</a> and fill in one or more <strong>'Alternative Products'</strong>.</li>
</div>
</div>
<div class="panel panel-success">
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 @@
<p class="oe_mt32">
Simply drag &amp; 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.</p>
<p class="oe_mt8">
- 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.
</p>
</div>
</div>
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 404e2712fe6..34e6cd89f6c 100644
--- a/addons/website_sale/views/templates.xml
+++ b/addons/website_sale/views/templates.xml
@@ -483,10 +483,10 @@
</t>
</template>
- <template id="recommended_products" inherit_id="website_sale.product" customize_show="True" name="Suggested Products">
+ <template id="recommended_products" inherit_id="website_sale.product" customize_show="True" name="Alternative Products">
<xpath expr="//div[@id='product_full_description']" position="after">
<div class="container mt32" t-if="product.alternative_product_ids">
- <h3>Suggested Products:</h3>
+ <h3>Alternative Products:</h3>
<div class="row mt16" style="">
<t t-foreach="product.alternative_product_ids" t-as="alt_product">
<div class="col-md-2 thumbnail" style="width: 170px; height:130px; float:left; display:inline; margin-right: 10px; overflow:hidden;">
@@ -942,7 +942,7 @@
</t>
</template>
- <template id="suggested_products_list" inherit_id="website_sale.cart_lines" customize_show="True" name="Suggested Products in my cart">
+ <template id="suggested_products_list" inherit_id="website_sale.cart_lines" customize_show="True" name="Alternative Products in my cart">
<xpath expr="//table[@id='cart_products']" position="after">
<table t-if="suggested_products" class="js_cart_lines table table-striped table-condensed">
<colgroup>
diff --git a/addons/website_sale_options/models/product.py b/addons/website_sale_options/models/product.py
index debc6ab74c8..75f323331f7 100644
--- a/addons/website_sale_options/models/product.py
+++ b/addons/website_sale_options/models/product.py
@@ -7,4 +7,7 @@ from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
- optional_product_ids = fields.Many2many('product.template', 'product_optional_rel', 'src_id', 'dest_id', string='Optional Products', help="Products to propose when add to cart.")
+ optional_product_ids = fields.Many2many('product.template', 'product_optional_rel', 'src_id', 'dest_id',
+ string='Optional Products', help="Optional Products are suggested "
+ "whenever the customer hits *Add to Cart* (cross-sell strategy, "
+ "e.g. for computers: warranty, software, etc.).")