Skip to content

Releases: Tobi-De/dj-shop-cart

7.0.0

30 Mar 09:13
Compare
Choose a tag to compare

Full Changelog: 6.0.1...7.0.0

  • rewrite empty_all as a classmethod
  • the empty method on cart objects now clears the metadata by default

6.0.1

28 Mar 09:04
Compare
Choose a tag to compare

Full Changelog: v6.0.0...6.0.1

  • Resolved an issue where cart metadata from previous sessions were not being loaded upon instantiation of a new cart.
  • The get_price method now accepts any numeric type (int, float, Decimal) as a parameter, rather than only relying on Decimal values.

v6.0.0

08 Mar 09:11
c17cd93
Compare
Choose a tag to compare

What's Changed

  • The format in which the cart data is saved has been changed, cart with the old format will lose data.
  • Add a new property items to easily access all items in the cart.
  • build(deps-dev): bump mypy from 1.0.1 to 1.1.1 by @dependabot in #82
  • build(deps-dev): bump pytest from 7.2.1 to 7.2.2 by @dependabot in #81

Full Changelog: 5.6.0...v6.0.0

5.6.0

01 Mar 09:00
743444a
Compare
Choose a tag to compare

What's Changed

  • You can now manage multiple carts for the same user / session via the new prefix option.
  • A new metadata property is available on the cart object, it is a dictionary that can be used to store any information you want to attach to the cart.

Dependencies upgrade

Full Changelog: 5.3.2...5.6.0

5.3.2

02 Feb 10:51
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.2.0...5.3.2

v5.2.0

03 Sep 07:51
Compare
Choose a tag to compare

Full Changelog: v5.1.2...v5.2.0

v5.1.2

03 Sep 07:33
Compare
Choose a tag to compare

Full Changelog: v5.1.1...v5.1.2

v5.0.0

15 Aug 13:36
Compare
Choose a tag to compare

What's Changed

The most significant change, and the only one that breaks existing code is the signature change of the Cart.remove method, read more here. To make a long story short, instead of passing the product and variant to remove an item, you simply pass an id that is automatically generated for each item in the cart and accessible via item.id.

New Contributors

Full Changelog: v4.1.0...v5.0.0

v4.1.0

23 Jun 08:57
Compare
Choose a tag to compare

Full Changelog: v4.0.2...v4.1.0

v4.0.2

24 May 08:39
Compare
Choose a tag to compare

Full Changelog: v4.0.1...v4.0.2