İçereği Atla
Menü
Bu soru işaretlendi
3677 Görünümler

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)
        )
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Kas 19
3736
0
Oca 24
1061
0
Nis 23
1608
1
Ara 23
1518
3
May 24
23828