Hello again
I am trying to understand some code in the detail.html template related to the purchase_info_for_product template tag, and have some basic questions:
What does 'session' represent in
this line? Does it represent the request argument or the product argument of the purchase_info_for_product(request, product) function? Or does it represent the PurchaseInfo object returned by the Default strategy?
Further, in
this line, I understand that we can write price.excl_tax because excl_tax is an attribute of the Price class in
this file. But how can 'session' have a price attribute/ property? Also, what other properties does 'session' have, apart from price and where is this referred to in the source code?
Thanks