diff options
Diffstat (limited to 'addons/website_sale_coupon')
| -rw-r--r-- | addons/website_sale_coupon/views/website_sale_templates.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/website_sale_coupon/views/website_sale_templates.xml b/addons/website_sale_coupon/views/website_sale_templates.xml index b7f90dac918..cebbbe3074c 100644 --- a/addons/website_sale_coupon/views/website_sale_templates.xml +++ b/addons/website_sale_coupon/views/website_sale_templates.xml @@ -7,6 +7,16 @@ </xpath> </template> <template id="website_sale_coupon_cart_hide_qty" inherit_id="website_sale.cart_lines" active="True"> + <xpath expr="//td[hasclass('td-img')]/span" position="replace"> + <t t-if="line.is_reward_line and line.sudo().product_id.image_small"> + <span> + <img t-att-src="image_data_uri(line.sudo().product_id.image_small)" class="img img-fluid rounded" t-att-alt="line.name_short"/> + </span> + </t> + <t t-else=""> + <t>$0</t> + </t> + </xpath> <xpath expr="//td[hasclass('td-qty')]/div" position="attributes"> <attribute name="t-att-style">line.is_reward_line and "display:none;"</attribute> </xpath> @@ -24,6 +34,18 @@ <attribute name="t-if">not line.is_reward_line</attribute> </xpath> </template> +<template id="cart_popover" inherit_id="website_sale.cart_popover" name="Cart Popover"> + <xpath expr="//div[hasclass('cart_line')]/div[1]/span" position="replace"> + <t t-if="line.is_reward_line and line.sudo().product_id.image_small"> + <span> + <img t-att-src="image_data_uri(line.sudo().product_id.image_small)" class="img img-fluid rounded" t-att-alt="line.name_short"/> + </span> + </t> + <t t-else=""> + <t>$0</t> + </t> + </xpath> +</template> <template id="sale_coupon_result" inherit_id="website_sale.coupon_form"> <xpath expr="//form[@name='coupon_code']" position="after"> <t t-if="website_sale_order and website_sale_order.applied_coupon_ids"> |
