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

I am trying to programmatically add a description / note to each line item a user adds to the cart. The description is influenced by the users options on previously selected on a form so I cannot have this be a static setting on the backend.

request.website.sale_get_order(force_create=1)._cart_update(
            product_id=int(product.id),
            add_qty=float(post.get('add_qty')),
            attributes={'description': 'this is a note that shows up in the cart on the line item'},
            line_id=int(item_num)
        )
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 19
3731
0
thg 1 24
1057
0
thg 4 23
1586
1
thg 12 23
1504
3
thg 5 24
23799