diefenbach / django-lfs

An online-shop based on Django
http://www.getlfs.com
BSD 3-Clause "New" or "Revised" License
622 stars 222 forks source link

BUG: CartItem does not have get_price #22

Closed honovation closed 12 years ago

honovation commented 12 years ago

I can not see cart item from /manage/cart/, the reason being there is no get_price method available at Cartitem. I updated it to use get_product_price_gross instead.

diefenbach commented 12 years ago

Thanks,

there is a "get_price" filter which works, see:

https://github.com/diefenbach/django-lfs/blob/master/lfs/core/templatetags/lfs_tags.py#L821

It returns the plain stored price of the product. This might be wrong, as you might noticed. Your solution could be achieved without a new filter like following:

{{ item.product|get_price_gross:request|currency:request }}

Kai