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.
22 lines
1.5 KiB
22 lines
1.5 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- This template is used to modify the product page on the Odoo e-commerce website. -->
|
|
<template id="website_shop_auction" inherit_id="website_sale.products_item">
|
|
<!-- Replace the existing div with class "product_price" -->
|
|
<xpath expr="//div[hasclass('product_price')]" position="replace">
|
|
<!-- If the product is an auction, display "AUCTION ON" -->
|
|
<t t-if="product.is_auction">
|
|
<span id="auction_on">AUCTION ON</span>
|
|
</t>
|
|
<!-- If the product is not an auction, display the regular price -->
|
|
<t t-else="">
|
|
<div class="product_price mb-1" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer">
|
|
<span class="h5" t-if="combination_info['price']" t-esc="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
<del t-attf-class="text-danger ml-1 h6 {{'' 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 itemprop="price" style="display:none;" t-esc="combination_info['price']" />
|
|
<span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name" />
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|