documentation/content/applications/websites/ecommerce/maximizing_revenue/pricing.rst
Antoine Vandevenne (anv) 91c20a2c03 [MOV] content/*: move resource files into their related page's directory
Since odoo/documentation#903, the guideline for the location of new
resource (images, downloadable files, RST includes...) files is to place
those inside the directory of the RST page that references them.

For example, if `doc1.rst` has a reference to `image.png` and to
`download.zip`, the file structure should look like this:

├── parent_doc/
│     └── doc1/
│     │     └── image.png
│     │     └── download.zip
│     └── doc1.rst
│     └── doc2.rst
├── parent_doc.rst

Before this commit, most of the resource files were still located inside
'media' directories holding all the resource files referenced by RST
pages located at the same level as these directories. In the example
above, a single 'media' directory would hold all the resource files
referenced by both `doc1.rst` and `doc2.rst`. Doing so prevented us from
figuring out easily which resource file was referenced by which RST page
and, thus, lead to unused resource files piling up in the repository. It
also made it more complicated to define codeowners regex rules because a
team could not simply be assigned to `/some_page.*` but needed to be
assigned to both `/some_page\.rst` and to the location of 'media'.

In order to help new content writers figure out the guideline when
taking examples from other RST pages, this commit retroactively applies
the guideline to existing resource files and 'media' directories. The
left-over resource files that are not referenced by any RST page are
removed.

task-2497965

Part-of: odoo/documentation#2026
2022-05-20 14:03:47 +02:00

38 lines
1.2 KiB
ReStructuredText

================================
Adapt prices to website visitors
================================
This section sheds light on pricing features found in the eCommerce app:
* force a price by geo-localization,
* let the customer choose the currency.
As a pre-requisite, check out how to managing product pricing:
:doc:`/applications/sales/sales/products_prices/prices/pricing`).
Geo-IP automatically applies the right price
============================================
Assign country groups to your pricelists. That way, visitors who aren't
logged in yet will get their own currency when landing on your website.
Once logged in, they get the pricelist matching their country.
Currency selector
=================
In the case that you sell in several currencies, you can let your customers choose
their own. Check the *Selectable* box to add the pricelist to the website drop-down menu, which
can be found in *Pricelists* under the *Products* menu, located in the Website application.
.. image:: pricing/website_pricelist_select.png
:align: center
:width: 50 %
.. seealso::
* :doc:`/applications/sales/sales/products_prices/prices/pricing`
* :doc:`/applications/sales/sales/products_prices/prices/currencies`
* :doc:`promo_code`