| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
<templates xml:space="preserve"> |
| 3 |
<t t-inherit="sale.Product" t-inherit-mode="extension"> |
| 4 |
<QuantityButtons position="attributes"> |
| 5 |
<attribute name="t-if" add="this.props.can_be_sold" separator=" && "/> |
| 6 |
</QuantityButtons> |
| 7 |
<QuantityButtons position="after"> |
| 8 |
<t t-call="website_sale.not_for_sale"/> |
| 9 |
</QuantityButtons> |
| 10 |
<button name="sale_product_configurator_add_button" position="attributes"> |
| 11 |
<attribute name="t-if">this.props.can_be_sold</attribute> |
| 12 |
<attribute name="class" remove="btn-secondary" add="btn-outline-primary" separator=" "/> |
| 13 |
</button> |
| 14 |
<xpath |
| 15 |
expr="//button[@name='sale_product_configurator_add_button']/*[hasclass('oi-plus')]" |
| 16 |
position="attributes" |
| 17 |
> |
| 18 |
<attribute name="class" remove="oi oi-plus" add="fa fa-shopping-cart" separator=" "/> |
| 19 |
</xpath> |
| 20 |
<span name="add_button" position="replace"> |
| 21 |
<span name="add_button" class="ms-2 d-none d-md-inline">Add to Cart</span> |
| 22 |
</span> |
| 23 |
|
| 24 |
<button name="sale_product_configurator_add_button" position="after"> |
| 25 |
<t t-call="website_sale.not_for_sale"/> |
| 26 |
</button> |
| 27 |
<t name="sale_product_configurator_price" position="after"> |
| 28 |
<t t-call="website_sale.strikethrough_product_price"/> |
| 29 |
</t> |
| 30 |
<t name="sale_product_configurator_optional_price" position="after"> |
| 31 |
<t t-call="website_sale.strikethrough_product_price"/> |
| 32 |
</t> |
| 33 |
<xpath |
| 34 |
expr="//div[@name='o_sale_product_configurator_name']//span[hasclass('h5')]" |
| 35 |
position="attributes" |
| 36 |
> |
| 37 |
<attribute name="class" remove="h5" add="h6" separator=" "/> |
| 38 |
</xpath> |
| 39 |
</t> |
| 40 |
|
| 41 |
<t t-inherit="sale.product_price" t-inherit-mode="extension"> |
| 42 |
<span name="sale_product_configurator_formatted_price" position="attributes"> |
| 43 |
<attribute name="class" remove="h5" add="h6" separator=" "/> |
| 44 |
</span> |
| 45 |
</t> |
| 46 |
|
| 47 |
<t t-name="website_sale.not_for_sale"> |
| 48 |
<div |
| 49 |
t-if="!this.props.can_be_sold" |
| 50 |
class="text-muted fst-italic" |
| 51 |
> |
| 52 |
<i class="fa fa-times me-1"/> |
| 53 |
Not available for sale |
| 54 |
</div> |
| 55 |
</t> |
| 56 |
|
| 57 |
<t t-name="website_sale.strikethrough_product_price"> |
| 58 |
<h5 |
| 59 |
class="oe_striked_price text-muted small text-decoration-line-through text-nowrap" |
| 60 |
t-if="this.props.strikethrough_price" |
| 61 |
t-out="formattedStrikethroughPrice" |
| 62 |
/> |
| 63 |
</t> |
| 64 |
</templates> |