Hi team,
I've been trying to figure out how to automatically prepend the vendor to the product url in the product-card-grid section on Debut theme:
Here's the relevant code:
href="{{ product.url | within: collection }}">
I want it to actually be:
href="{{ product.url | prepend: product.vendor | replace: ' ', '-' }} "
but I don't know the correct way to do this, any help?
Try this
href="{{ product.url | within: collection }}/{{ product.vendor }}"
the use this
<a href="/products/{{ product.vendor | handleize }}">
User | Count |
---|---|
13 | |
12 | |
7 | |
4 | |
4 |