Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4050 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 19
4022
0
led 24
1191
0
dub 23
1906
1
pro 23
1842
3
kvě 24
24514