From 7e4b8e0ddc72be8e3e4644a5277fb89dcd036ac1 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 17 Jun 2020 11:19:32 +0200 Subject: [PATCH] Update shopping CTA logic Shows "Take me shopping!" button on /shops page if a shop is selected --- app/assets/stylesheets/darkswarm/cart-dropdown.css.scss | 1 - app/helpers/shop_helper.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/cart-dropdown.css.scss b/app/assets/stylesheets/darkswarm/cart-dropdown.css.scss index ca3dd6a1a288..8d5369b23ff7 100644 --- a/app/assets/stylesheets/darkswarm/cart-dropdown.css.scss +++ b/app/assets/stylesheets/darkswarm/cart-dropdown.css.scss @@ -55,7 +55,6 @@ } .go-shopping { - display: none; padding: 0 1.5em; @include breakpoint(mobile) { diff --git a/app/helpers/shop_helper.rb b/app/helpers/shop_helper.rb index 32bb144d5fa6..8da650c4ef3a 100644 --- a/app/helpers/shop_helper.rb +++ b/app/helpers/shop_helper.rb @@ -52,7 +52,7 @@ def no_open_order_cycles? end def show_shopping_cta? - return false if current_page?(main_app.shops_path) + return false if current_page?(main_app.shops_path) && current_distributor.blank? return false if current_distributor.present? && current_page?(main_app.enterprise_shop_path(current_distributor))