Skip to content

[IMP] ecommerce: update product/attribute page #12922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,23 @@ specifications that are specific to this particular value).
Or, choose a specific color by clicking the *dropper* icon, and selecting a desired color that's
currently clickable on the screen.

If you sell products with specific patterns, you can also add an image to display the pattern of the product.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think line 172 goes over the 100th-character limit.
Also, I know you didn't write/change this, but I would use this opportunity to review the entire note actually (sorry!):

  • Turn the note into a sub-section "Colors"; I think this is a bit too much content for a note (it already was IMO)
  • Remove the image (and corresponding file) picking-a-color.png on line 162 as I don't think it adds much value.
  • Rephrase the first part of the note to avoid this weird phrasing: the option to add an HTML
    color code will appear to the far-right of the value line, to make it easier for salespeople and
    customers to know exactly what color option they're choosing.
    I also don't think we need to go to a new paragraph so much.


To do so, click the :icon:`fa-pencil` :guilabel:`(pencil)` icon that appears when clicking the
:icon:`fa-camera` :guilabel:`(camera)` icon.
Comment on lines +174 to +175
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To do so, click the :icon:`fa-pencil` :guilabel:`(pencil)` icon that appears when clicking the
:icon:`fa-camera` :guilabel:`(camera)` icon.
To do so, click the :icon:`fa-camera` :guilabel:`(camera)` icon, then click the :icon:`fa-pencil` :guilabel:`(pencil)` icon and select an image from your local drive.
  • We usually try and list the actions to take in chronological order.
  • I think we can add the image selection in this sentence and remove it from line 181.


.. image:: variants/attribute-value-add-image.png
:align: center
:alt: Add an image of the pattern to an attribute.
Comment on lines +177 to +179
Copy link
Contributor

@auva-odoo auva-odoo Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this image to line 155 and replace the image file attribute-value-add-a-line.png with this one as this image that you added is basically an updated version of that one.

We also don't center-align images anymore so you can remove :align: center from the images in this (soon-to-be--) note.


On the resulting pop-up window, select an image from your local drive and upload it.

This pattern appears as a color option on the ecommerce product page.

.. image:: variants/ecommerce-pattern-option.png
:align: center
:alt: Pattern as color option on the ecommerce page.

.. tip::
Attributes can also be created directly from the product template by adding a new line and
typing the name into the :guilabel:`Variants` tab.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file can be deleted as it's not used anywhere?

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 33 additions & 14 deletions content/applications/websites/ecommerce/products.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,23 @@ by adding :ref:`variants <ecommerce/products/product-variants>`, :ref:`digital d
Customization
-------------

To customize a product page, click :guilabel:`Edit`. Go to the :guilabel:`Blocks` tab to add
:doc:`building blocks <../../websites/website/web_design/building_blocks>`.
To customize a product page, click :guilabel:`Edit` in the upper right corner of the page.

.. tip::
- When dragging and dropping a building block on the product page, placing it above or below the
top or bottom blue lines makes it visible on all product pages.
- You can edit any text on your website simply by clicking on it while in :guilabel:`Edit` mode.
You can edit any text on your website by clicking on it.

Go to the :guilabel:`Customize` tab to modify the page layout or add features:
From here, you can add an additional, detailed product description especially for marketing purposes
that will only be visible on your ecommerce product page. To do so, click the text field beneath
the **sales description** located right under the product name. You can use the `/` command to add images,
tables and other features.
Comment on lines +162 to +165
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I think the task's specs weren't clear and accurate; by Ecommerce description, we meant this field on the product form (only available from 18.0 🙈 ).
image

Let's remove this paragraph and leave this section as it was, and then once this is merged, we can make that change on the 18.0 fw-port branch (it will need to be added in another part of this doc page though).


Use the :guilabel:`Blocks` tab to add :doc:`building blocks <../../websites/website/web_design/building_blocks>`.

.. tip::
When dragging and dropping a building block on the product page, placing it above or below the top or bottom blue
lines makes it visible on all product pages.

Use the :guilabel:`Customize` tab to modify the page layout or add features:

- :guilabel:`Terms and Conditions`: Toggle the switch to display a link to your
:doc:`terms and conditions <../../finance/accounting/customer_invoices/terms_conditions>` on the
Expand All @@ -182,7 +190,7 @@ Go to the :guilabel:`Customize` tab to modify the page layout or add features:
- :guilabel:`Select Quantity`: Toggle the switch to allow customers to select the product quantity
they want to purchase.

- :guilabel:`Tax indication`: Toggle the switch to indicate if the price is
- :guilabel:`Tax Indication`: Toggle the switch to indicate if the price is
:ref:`VAT included or excluded <ecommerce-price-management-tax-display>`.

- :guilabel:`Variants`: Show all possible product :ref:`variants <ecommerce/products/product-variants>`
Expand Down Expand Up @@ -218,22 +226,33 @@ Go to the :guilabel:`Customize` tab to modify the page layout or add features:

.. _ecommerce/products/image-customization:

Image customization
-------------------
Product images and videos
-------------------------

You can add additional media items to provide visual resources (i. e. images and videos) and information on
your product.

Navigate to the :ref:`product form <ecommerce/products/product-form>`, then go to the :guilabel:`Sales` tab
Comment on lines +232 to +235
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would simplify this (I don't think it's necessary to explain why you'd want to add images 😉 ):

Suggested change
You can add additional media items to provide visual resources (i. e. images and videos) and information on
your product.
Navigate to the :ref:`product form <ecommerce/products/product-form>`, then go to the :guilabel:`Sales` tab
To add more media items, such as images and videos, navigate to the :ref:`product form <ecommerce/products/product-form>`, then go to the :guilabel:`Sales` tab

and click :guilabel:`Add a media` under the :guilabel:`Extra Product Media` section. In the resulting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
and click :guilabel:`Add a media` under the :guilabel:`Extra Product Media` section. In the resulting
and click :guilabel:`Add a media` under the :guilabel:`Extra Product Media` section. In the

(not necessary)

:guilabel:`Create Extra Product Media` pop-up window, enter the :guilabel:`Image Name`, and add a video URL
or click the :icon:`fa-pencil` :guilabel:`(pencil)` icon that appears when the cursor hovers
over the :icon:`fa-camera` :guilabel:`(camera)` icon to upload images from your local drive.
Comment on lines +238 to +239
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
or click the :icon:`fa-pencil` :guilabel:`(pencil)` icon that appears when the cursor hovers
over the :icon:`fa-camera` :guilabel:`(camera)` icon to upload images from your local drive.
or hover your mouse over the :icon:`fa-camera` :guilabel:`(camera)` icon and click the :icon:`fa-pencil` :guilabel:`(pencil)` icon to upload images from your local drive.

(same as above: to try and list the actions in chronological order to make the steps easier to follow)


The media resources will appear on the ecommerce product page where you can adapt their layout.

To customize the images available on the product page, go to the :guilabel:`Customize` tab:
To do so, go to the ecommerce product page, click :guilabel:`Edit` and select an image. In the :guilabel:`Customize`
Comment on lines +241 to +243
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid repetitions and be a bit more accurate, I'd suggest changing lines 241 to 243 as follows:

To customize the images or videos, go to the ecommerce product page, click :guilabel:Edit, and select the relevant media. In the :guilabel:Customize

tab, use the following features:

- :guilabel:`Images Width`: Changes the width of the product images displayed on the page.
- :guilabel:`Layout`: The :guilabel:`Carousel` layout allows customers to navigate from one image to
the next using the :icon:`fa-angle-left` (:guilabel:`left arrow`) or :icon:`fa-angle-right`
(:guilabel:`right arrow`); whereas the :guilabel:`Grid` displays four images in a square layout.
- :guilabel:`Image Zoom`: Select the zoom effect for product images: :guilabel:`Magnifier on hover`
:guilabel:`Pop-up on Click`, :guilabel:`Both`, or :guilabel:`None`.
- :guilabel:`Thumbnails`: Align thumbnails on the :icon:`fa-long-arrow-left` (:guilabel:`Left`) or
at the :icon:`fa-long-arrow-down` (:guilabel:`Bottom`).
- :guilabel:`Thumbnails`: Align thumbnails on the :icon:`fa-long-arrow-left` (:guilabel:`Left`) or at
the :icon:`fa-long-arrow-down` (:guilabel:`Bottom`).
- :guilabel:`Main Image`: Click :guilabel:`Replace` to change the product's main image.
- :guilabel:`Extra Images`: :guilabel:`Add` extra images or videos (including via URL) or
:guilabel:`Remove all` product images.
- :guilabel:`Extra Images`: :guilabel:`Add` more extra images or videos (including via URL) or :guilabel:`Remove all`.

.. note::
Images must be in PNG or JPG format and with a minimum size of 1024x1024 to trigger the zoom.
Expand Down