|
@ -20,31 +20,30 @@ |
|
|
<template id="product_donation_set_price" inherit_id="website_sale.product" customize_show="True" name="Product donation set price"> |
|
|
<template id="product_donation_set_price" inherit_id="website_sale.product" customize_show="True" name="Product donation set price"> |
|
|
<xpath expr="//div[@class='js_product js_main_product']" position="replace"> |
|
|
<xpath expr="//div[@class='js_product js_main_product']" position="replace"> |
|
|
<t t-placeholder="select"> |
|
|
<t t-placeholder="select"> |
|
|
<input type="hidden" class="product_id" name="product_id" t-att-value="product_variant.id" /> |
|
|
|
|
|
<input type="hidden" class="product_template_id" name="product_template_id" t-att-value="product.id" /> |
|
|
|
|
|
<t t-if="combination" t-call="sale.variants"> |
|
|
|
|
|
<t t-set="ul_class" t-value="'flex-column'" /> |
|
|
|
|
|
<t t-set="parent_combination" t-value="None" /> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-else=""> |
|
|
|
|
|
<ul class="d-none js_add_cart_variants" t-att-data-attribute_exclusions="{'exclusions: []'}"/> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
<h2 t-if="product.donation">Saisir le montant :</h2> |
|
|
|
|
|
<input t-if="product.donation" type="text" class="form-control donation_amount" data-oe-model="ir.ui.view" name="donation_amount"/> |
|
|
|
|
|
<a role="button" id="add_to_cart" class="btn btn-primary btn-lg mt16 js_check_product a-submit d-block d-sm-inline-block" href="#"><i class="fa fa-shopping-cart"/> Add to Cart</a> |
|
|
|
|
|
<t t-if="not product.donation"> |
|
|
|
|
|
<t t-call="website_sale.product_price" /> |
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="donation_amount" data-oe-model="ir.ui.view" t-att-value="0"/> |
|
|
|
|
|
<p t-if="True" class="css_not_available_msg alert alert-warning">This combination does not exist.</p> |
|
|
|
|
|
|
|
|
|
|
|
<div id="product_option_block"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" class="product_id" name="product_id" t-att-value="product_variant.id" /> |
|
|
|
|
|
<input type="hidden" class="product_template_id" name="product_template_id" t-att-value="product.id" /> |
|
|
|
|
|
<t t-if="combination" t-call="sale.variants"> |
|
|
|
|
|
<t t-set="ul_class" t-value="'flex-column'" /> |
|
|
|
|
|
<t t-set="parent_combination" t-value="None" /> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-else=""> |
|
|
|
|
|
<ul class="d-none js_add_cart_variants" t-att-data-attribute_exclusions="{'exclusions: []'}"/> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="product.donation"> |
|
|
|
|
|
<h2> Saisir le montant :</h2> |
|
|
|
|
|
<!-- <input name="donation_amount" type="text" class="form-control donation_amount" data-oe-model="ir.ui.view"/> --> |
|
|
|
|
|
<input type="hidden" class="donation_amount" name="donation_amount" t-att-value="33" /> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
<t t-if="not product.donation" t-call="website_sale.product_price"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <input type="hidden" name="donation_amount" data-oe-model="ir.ui.view" t-att-value="0"/> --> |
|
|
|
|
|
<p t-if="True" class="css_not_available_msg alert alert-warning">This combination does not exist.</p> |
|
|
|
|
|
<a role="button" id="add_to_cart" class="btn btn-primary btn-lg mt16 js_check_product a-submit d-block d-sm-inline-block" href="#"><i class="fa fa-shopping-cart"/> Add to Cart</a> |
|
|
|
|
|
<div id="product_option_block"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</t> |
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|