Skip to Content
Menu
This question has been flagged

My xml fileis:

<template id="payment_cart_shipping_column" inherit_id="website_sale.cart_lines" customize_show="True"
name="Shipping option">
<
xpath expr="//table[@id='cart_products']/thead[1]/tr[1]/th[4]" position="after">
<
th class="text-center">Shipping</th>
</
xpath>
<
xpath expr="//table[@id='cart_products']/tbody[1]/t[1]/tr[1]/td[5]" position="after">
<
td class="text-center">
<
input class="form-control" type="checkbox" id="with_delivery"                  name="with_delivery"
                   t-att-data-line-id="line.id"
                   t-att-data-product-id="line.product_id.id"/>
</
td>
</
xpath>
</
template>

My controller main is:
@http.route(['/shop/checkout'], type='http', auth="public", website=True, sitemap=False)
def checkout(self, **post):
        # print the input with the id: "with_delivery"
        # update the 'with_delivery' attribute
        res = super(myECommerce, self).checkout(**post)
        return res

I want to print the value of the input with the id "with_delivery"
can any one help me plz
Avatar
Discard
Related Posts Replies Views Activity
1
Feb 22
2007
0
Feb 22
1114
6
Aug 19
8551
1
Feb 24
772
0
Feb 24
291