From 0adea67662d4f1ef68d4551d1786fa337e271699 Mon Sep 17 00:00:00 2001 From: Zia Fazal Date: Mon, 7 Sep 2015 12:23:45 +0500 Subject: [PATCH] hide shopping cart menu Hide shopping cart menu only if request is coming from a micro site and requested page is from courseware. --- .../shoppingcart/tests/test_views.py | 29 +++++++++++++++++-- lms/templates/navigation.html | 2 +- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/shoppingcart/tests/test_views.py b/lms/djangoapps/shoppingcart/tests/test_views.py index 75793197fd..76b0b04e7b 100644 --- a/lms/djangoapps/shoppingcart/tests/test_views.py +++ b/lms/djangoapps/shoppingcart/tests/test_views.py @@ -1375,9 +1375,34 @@ class ShoppingCartViewsTests(SharedModuleStoreTestCase, XssTestMixin): self.assertEqual(resp.status_code, 200) self.assertIn(' - % if should_display_shopping_cart_func() and not microsite.is_request_in_microsite(): # see shoppingcart.context_processor.user_has_cart_context_processor + % if should_display_shopping_cart_func() and not (course and microsite.is_request_in_microsite()): # see shoppingcart.context_processor.user_has_cart_context_processor