Skip to content

Commit 7132068

Browse files
authored
Merge pull request #22 from sparklayer-io/CameronSparkLayer-patch-1
B2B login - update template code to use CMS-controlled login page
2 parents 2d5b671 + b1ca73d commit 7132068

File tree

5 files changed

+1162
-571
lines changed

5 files changed

+1162
-571
lines changed

layout/theme.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395

396396
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
397397
{% comment %} Define accessible pages {% endcomment %}
398-
{%- if customer.tags contains 'b2b' or template contains 'customers/' or request.path == '/challenge' or request.path == '/pages/trade-login' -%}
398+
{%- if customer.tags contains 'b2b' or template contains 'customers/' or request.path == '/challenge' or request.path == '/pages/b2b-login' -%}
399399
{% assign showSiteForB2B = false %}
400400
{% endif %}
401401
{%- if showSiteForB2B == blank -%}
@@ -492,7 +492,7 @@
492492
{% endcomment %}
493493
{%- if showB2BLogin -%}
494494
<script>
495-
window.location.href = '/pages/trade-login';
495+
window.location.href = '/pages/b2b-login';
496496
</script>
497497
{% endif %}
498498
{% comment %} END {% endcomment %}

0 commit comments

Comments
 (0)