diff --git a/static/src/website_sale_stock_product_availability.xml b/static/src/website_sale_stock_product_availability.xml index 64024dfb2a5dccda72f994b1b554d32ebf5e3cff..2025f7a6b9d108dfbc49145703316c25713fb388 100644 --- a/static/src/website_sale_stock_product_availability.xml +++ b/static/src/website_sale_stock_product_availability.xml @@ -18,17 +18,17 @@ id="out_of_stock_message" t-attf-class="{{allow_out_of_stock_order ? 'text-success' : 'text-danger'}} fw-bold" > - <t t-if='has_out_of_stock_message' t-out='out_of_stock_message' /> + <t t-if='has_out_of_stock_message' t-out='out_of_stock_message'/> <t t-elif="!allow_out_of_stock_order"> <div class="text-danger fw-bold"> - <i class="fa fa-times me-1" /> - Out of Stock - <a - class="text-danger" - href="/contactus" - >Contact Us</a> + <i class="fa fa-times me-1"/> + Out of Stock </div> </t> </div> + <div t-if="!allow_out_of_stock_order"> + <a href="/contactus"><i class="fa fa-envelope-o me-1"></i> Contact Us</a> + </div> </xpath> <!-- change message to remove "only" --> @@ -39,8 +39,8 @@ t-elif="show_availability and free_qty lte available_threshold" t-attf-class="availability_message_#{product_template} text-success fw-bold" > - <t t-esc="formatQuantity(free_qty)" /> - <t t-esc="uom_name" /> + <t t-esc="formatQuantity(free_qty)"/> + <t t-esc="uom_name"/> left in stock. </div> </xpath>