Skip to content

Commit 9549ef4

Browse files
Fix todo themes issues (SallaApp#181)
1 parent fe15a06 commit 9549ef4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/views/pages/cart.twig

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<section class="cart-item bg-white overflow-hidden p-5 xs:p-7 rounded-md mb-5 relative">
6565
<input type="hidden" name="id" value="{{ item.id }}">
6666

67-
67+
6868
<!-- product -->
6969
<div class="md:flex md:space-s-12 items-start justify-between mb-8 last:mb-0">
7070
<div class="flex flex-1 space-s-4">
@@ -114,7 +114,7 @@
114114

115115
{% include 'pages.partials.product.options' with {product:item} %}
116116

117-
117+
118118

119119
<span class="absolute top-1.5 end-1.5 xs:top-5 xs:end-5">
120120
<salla-button type="button" shape="icon" size="small" color="danger" class="btn--delete"
@@ -164,7 +164,7 @@
164164
</div>
165165
</div>
166166
</div>
167-
{% if loyalty %}
167+
{% if loyalty and user.loyalty_points %}
168168
<div class="shadow-default mb-5 rounded-md p-3 xs:p-7 bg-white">
169169
<salla-loyalty customer-points='{{ user.loyalty_points }}'
170170
prize-points='{{ loyalty.prize.points }}'
@@ -228,7 +228,7 @@
228228
</small>
229229
</div>
230230
{% endif %}
231-
231+
232232
<div class="cart-submit-wrap">
233233
{% hook 'cart:submit.start' %}
234234
<salla-button onclick="salla.cart.submit()" loader-position="center" width="wide">
@@ -246,4 +246,4 @@
246246

247247
{% block scripts %}
248248
<script defer src="{{ 'checkout.js' | asset }}"></script>
249-
{% endblock %}
249+
{% endblock %}

0 commit comments

Comments
 (0)