Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello. Is there a way to add a "Frequently Bought Together" section on the product page using code?
Website: www.inhabitmarket.com
yes this is possible.
Okay. What would I need to do?
will you do it by self? or you will need to hire someone for that.
I can do it myself. I would appreciate your help with the code.
In your product-template.liquid paste this line the product descriptions ends,
<div class="frequently-bought-together-section">
<h2>Frequently Bought Together</h2>
<div class="products">
{% for product in product.related_products %}
<div class="product">
<h3>{{ product.title }}</h3>
<p>{{ product.price | money }}</p>
<a href="{{ product.url }}">View Product</a>
</div>
{% endfor %}
</div>
</div>
Thank you. but what do I have to do here? Can you share the line again?
@Danishshopdev wrote:In your product-template.liquid paste this line the product descriptions ends,