Repository navigation
[19.0][ADD] website_sale_product_compare_price: show variant compare price, discount badge and saved amount - #1312
Open
idris-domatix wants to merge 1 commit into
Conversation
idris-domatix
force-pushed
the
19.0-add-website_sale_product_compare_price
branch
from
September 3, 2026 15:14
6524dd7 to
84bd8be
Compare
Author
|
Friendly ping for review. New 19.0 module (compare price, discount badge and saved amount); CI is green. @OCA/e-commerce-maintainers could someone take a look when you have a moment? |
… discount badge and saved amount
idris-domatix
force-pushed
the
19.0-add-website_sale_product_compare_price
branch
from
October 7, 2026 07:30
84bd8be to
6c45098
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
19.0 [ADD]
Adds the
website_sale_product_compare_pricemodule.On the product page, when the effective price of a product is lower than its
reference price, the module shows the amount the shopper saves:
Two references are supported, following the native
website_salebehaviour:rule that is not shown natively (e.g. a fixed price per product or variant)
lowers the effective price;
The block is only rendered when the native Comparison Price feature of the
e-commerce is enabled, keeps the native pricelist discount strikethrough
untouched, and stays in sync when the shopper selects another variant.
Tests are provided through
MockRequest(combination info) plus anHttpCaseand a frontend tour.
@OCA/e-commerce-maintainers please review.