コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3634 ビュー

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)
        )
アバター
破棄
関連投稿 返信 ビュー 活動
0
11月 19
3727
0
1月 24
1054
0
4月 23
1572
1
12月 23
1495
3
5月 24
23776