Skip to content

Commit

Permalink
Localized limks in Related products section (#7125)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoChevalier committed Jul 22, 2021
1 parent 51cb375 commit f7a821d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ <h3 class="h2-heading mb-4">{% trans "Comments" %}</h3>
<h3 class="h2-heading mb-4">{% trans "Related products" %}</h3>
<div class="row">
{% for related_product_page in product.related_product_pages.all %}
{% with related_product=related_product_page.related_product %}
{% with related_product=related_product_page.related_product.localized %}
<div class="related-product col-6 col-md-3 mb-3 mb-md-0">
<a class="d-block{% if related_product.adult_content %} adult-content{% endif %}" href="{{ related_product.url }}">
<div class="img-container">
Expand Down

0 comments on commit f7a821d

Please sign in to comment.