i-love-flamingo / flamingo-commerce

Flexible E-Commerce Framework on top of Flamingo. Used to build E-Commerce "Portals" and connect it with the help of individual Adapters to other services.

Home Page:https://www.flamingo.me/flamingo-commerce.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behaviour of ProductCount() in cart.go should be unique

tlayh opened this issue · comments

Just wondering if the method ProductCount() has the correct behaviour. If there is the same product in two deliveries it will be counted twice. Shouldn't this function return the unique product count over all deliveries?

func (c Cart) ProductCount() int {