Skip to content

Commit

Permalink
[FIX] website_sale_loyalty: display loyalty description on future orders
Browse files Browse the repository at this point in the history
Currently if a loyalty program applies on future orders, the description is not shown in the ecommerce website.

Steps to reproduce:
-------------------
* Go to the **Website** App
* Under **ecommerce**, select **Discount & Loyalty**
* Select the **Loyalty Program**
* Go in developer mode
* For `Use points on` select `Future Orders`
* Connect to the website using Marc Demo
* Add any product to the cart -> Proceed to checkout
> observations: The description of the loyalty program reward is not showing. The green box to display it is visible, not the text inside.

Why the fix:
------------
Backport of odoo@c4e9eae (odoo#159356)

opw-3858322
  • Loading branch information
sbel-odoo committed Apr 18, 2024
1 parent 1dfd59c commit d8329a9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@
<div class="flex-grow-1">
<t t-set="program" t-value="reward.program_id"/>
<t t-set="points" t-value="coupon._format_points(website_sale_order._get_real_points_for_coupon(coupon))"/>
<t t-if="program.program_type not in ['ewallet', 'promo_code'] and (program.trigger == 'with_code' or (program.trigger == 'auto' and program.applies_on == 'future'))">
<t t-if="program.program_type not in ['ewallet', 'promo_code', 'loyalty'] and (program.trigger == 'with_code' or (program.trigger == 'auto' and program.applies_on == 'future'))">
<t t-if="program.program_type == 'gift_card'">
<strong t-esc="reward.description"/>
<strong> - </strong>
Expand Down

0 comments on commit d8329a9

Please sign in to comment.