Skip to content

Commit

Permalink
Merge pull request #1318 from Ubersmake/ReviewTabFix
Browse files Browse the repository at this point in the history
Only show review tab when there are reviews.
  • Loading branch information
Ubersmake authored Jul 31, 2018
2 parents e18dbf7 + 971db9d commit da39f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/products/description-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a class="tab-title" href="#tab-warranty">{{lang 'products.warranty'}}</a>
</li>
{{/if}}
{{#all settings.show_product_reviews theme_settings.show_product_reviews_tabs}}
{{#all settings.show_product_reviews theme_settings.show_product_reviews_tabs reviews.total}}
<li class="tab">
<a class="tab-title productView-reviewTabLink" href="#tab-reviews">{{lang 'products.reviews.header' total=product.reviews.total}}</a>
</li>
Expand Down

0 comments on commit da39f47

Please sign in to comment.