Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3675 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
nov. 19
3736
0
jan. 24
1060
0
apr. 23
1596
1
dec. 23
1516
3
mei 24
23826