Skip to content

Commit

Permalink
[FIX] *sale_product_configurator:: price are wrongly send to GA
Browse files Browse the repository at this point in the history
- Intall website_sale_product_configurator
- Create a product A with price 3 999.00 €
- Add an optional product on product A
- Go to shop page
- Go to product A
- Add to cart
- A modal popup appear
- Finelize cart
--> Issue the price send to datalayer is 3.
Because "3 999,00" is send in the json, endead 3999.00.

closes odoo#167962

Signed-off-by: Louis Tinel (loti) <loti@odoo.com>
Co-authored-by: ltinel <75139246+ltinel@users.noreply.github.com>
  • Loading branch information
fmdl and ltinel committed Aug 20, 2024
1 parent 776b08a commit ac3ec19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/sale_product_configurator/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"widget": "monetary",
"display_currency": (pricelist or product).currency_id
}'/>
<span class="js_raw_price d-none" t-esc="product.price"/>
<span class="js_raw_price d-none" t-esc="combination_info['price']"/>
<p class="css_not_available_msg alert alert-warning">Option not available</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ publicWidget.registry.WebsiteSale.include({
'item_name': el.getElementsByClassName('product_display_name')[0].textContent,
'quantity': parseFloat(el.getElementsByClassName('js_quantity')[0].value),
'currency': currency,
'price': parseFloat(el.getElementsByClassName('oe_price')[0].getElementsByClassName('oe_currency_value')[0].textContent),
'price': parseFloat(el.getElementsByClassName('js_raw_price')[0].textContent),
});
});
if (productsTrackingInfo.length) {
Expand Down

0 comments on commit ac3ec19

Please sign in to comment.