From 09e9516ed32fe5fa77f61a56f028e70898ffe7c4 Mon Sep 17 00:00:00 2001 From: Tobi DEGNON Date: Mon, 27 Feb 2023 22:07:06 +0100 Subject: [PATCH] docs: cart metadata --- docs/usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index a8dd209..05f95f9 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -119,6 +119,8 @@ def my_view(request): - **count** : The number of items in the cart, that's the sum of quantities. - **unique_count** : The number of unique items in the cart, regardless of the quantity. - **products** : A list of associated products. +- **metadata** : A dictionary containing the metadata of the cart. +- **update_metadata(metadata:dict)** : Update the metadata of the cart. - **find(\*\*criteria)** : Returns a list of cart items matching the given criteria. - **find_one(\*\*criteria)** : Returns the first cart item that matches the given criteria, if no match is found return None. - **variants_group_by_product()** : Return a dictionary with the products ids as keys and a list of variant as values.