[LEARNER-437] Reflect discount on the Program About Page (WL)

This commit is contained in:
Marko Jevtic
2017-06-13 11:07:05 +00:00
parent 5a919f2c1c
commit 75531b2fef
11 changed files with 98 additions and 38 deletions

View File

@@ -87,9 +87,9 @@ class EcommerceService(object):
Absolute path to the ecommerce checkout page showing basket that contains specified products.
Example:
http://localhost:8002/basket/single_item/?sku=5H3HG5&sku=57FHHD
http://localhost:8002/basket/add/?sku=5H3HG5&sku=57FHHD
"""
return '{checkout_page_path}?{skus}'.format(
checkout_page_path=self.get_absolute_ecommerce_url(self.config.single_course_checkout_page),
checkout_page_path=self.get_absolute_ecommerce_url(self.config.MULTIPLE_ITEMS_BASKET_PAGE_URL),
skus=urlencode({'sku': skus}, doseq=True),
)