Skip to content

Commit

Permalink
feature(storefront): BCTHEME-142 Unnecessary heading on product cards
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 committed Aug 6, 2020
1 parent 54ddcef commit f928f73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions templates/components/amp/products/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
{{#if brand.name}}
<p class="card-text" data-test-info-type="brandName">{{brand.name}}</p>
{{/if}}
<h4 class="card-title">
<span class="card-title">
<a data-vars-product-link="{{url}}" data-vars-product-id="{{id}}" data-vars-product-name="{{name}}" href="{{url}}">{{name}}</a>
</h4>
</span>

<div class="card-text" data-test-info-type="price">
{{#or customer (if theme_settings.restrict_to_login '!==' true)}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/products/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
{{#if brand.name}}
<p class="card-text" data-test-info-type="brandName">{{brand.name}}</p>
{{/if}}
<h4 class="card-title">
<span class="card-title">
<a href="{{url}}" {{#if settings.data_tag_enabled}} data-event-type="product-click" {{/if}}>{{name}}</a>
</h4>
</span>

<div class="card-text" data-test-info-type="price">
{{#or customer (if theme_settings.restrict_to_login '!==' true)}}
Expand Down
4 changes: 2 additions & 2 deletions templates/pages/brands.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ <h1 class="page-heading">{{lang 'brand.label'}}</h1>
</a>
</figure>
<div class="card-body">
<h4 class="card-title">
<span class="card-title">
<a href="{{url}}">{{name}}</a>
</h4>
</span>
</div>
</article>
</li>
Expand Down
4 changes: 2 additions & 2 deletions templates/pages/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ <h1 class="page-heading">{{lang 'compare.header' products=comparisons.length}}</
{{#if brand.name}}
<p class="card-text"><a href="{{brand.url}}">{{ brand.name }}</a></p>
{{/if}}
<h4 class="card-title">
<span class="card-title">
<a href="{{url}}">{{ name }}</a>
</h4>
</span>
{{#or ../customer (if ../theme_settings.restrict_to_login '!==' true)}}
{{#if price_range}}
{{> components/products/price-range}}
Expand Down

0 comments on commit f928f73

Please sign in to comment.