def get_price_info(shop, customer, product, quantity):
 pricing_mod = get_pricing_module()
 pricing_ctx = pricing_mod.get_context_from_data(shop=shop, customer=(customer or AnonymousContact()))
 return product.get_price_info(pricing_ctx, quantity=quantity)

def get_price_info ( shop , customer , product , quantity ) : pricing_mod = get_pricing_module ( ) pricing_ctx = pricing_mod . get_context_from_data ( shop = shop , customer = ( customer or AnonymousContact ( ) ) ) return product . get_price_info ( pricing_ctx , quantity = quantity )
get price info of product for given quantity .