Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3184 Lượt xem

Can someone please help me with this problem? 
 
I would like to get the value of the product_id field into the v_product_id variable from the selection.
The selection field is in the website_sale.product template.

Ảnh đại diện
Huỷ bỏ
Tác giả

This is code:

--<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"/>
--<input t-if="product.public_categ_ids.ids" type="hidden" class="product_category_id" name="product_category_id" t-att-value="product.public_categ_ids.ids[0]"/>
--<t t-if="combination" t-call="sale.variants">
--<t t-set="ul_class" t-valuef="flex-column"/>
--<t t-set="parent_combination" t-value="None"/>
--</t>

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 24
8809
0
thg 11 23
3260
1
thg 10 22
6048
0
thg 7 22
9
2
thg 1 24
1283