You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="opendons_products_item" inherit_id="website_sale.products_item">
<!-- <xpath expr="//t[@t-set='combination_info']" position="after">
<t t-set="special_price" t-value="product._get_special_price(only_template=True, add_qty=add_qty or 1, pricelist=pricelist)"/>
</xpath> -->
<xpath expr="//div[@class='product_price']" position="replace">
<div t-if="not product.donation">
<del t-attf-class="text-danger mr-2 {{'' if combination_info['has_discounted_price'] else 'd-none'}}" style="white-space: nowrap;" t-esc="combination_info['list_price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}" />
<span t-if="combination_info['price']" t-esc="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<!-- <br></br>
Adhérent: <span t-if="special_price['price_adherent']" t-esc="special_price['price_adherent']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<br></br>
Soutien et Sangha: <span t-if="special_price['price_soutien']" t-esc="special_price['price_soutien']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/> -->
<span itemprop="price" style="display:none;" t-esc="combination_info['price']" />
<span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name" />
</div>
</xpath>
</template>
</odoo>