Комментарии:
Para los que quieran usarlo para mas productos pueden hacer:
{%- liquid
for tag in article.tags
if tag contains "product_"
assign prod_handle = tag | split: "_"
assign blog_prod = all_products[prod_handle[1]]
endif
endfor
%}
{% if blog_prod %}
<a href="{{blog_prod.url}}"><img src="{{blog_prod.featured_image | img_url: '200px'}}" /><br>
<p>{{blog_prod.title}}</p>
<p>{{blog_prod.price | money}}</p></a>
{% endif %}
Gracias por el video!
Como agregamos varios productos
ОтветитьSame question as others how do you add multiple products and does this work with the newer 2.0 themes? I'm using Impulse 7.1.0.
Ответитьingenious, thank you!
ОтветитьHow would I attach multiple products?
ОтветитьVery helpful!
ОтветитьI used the same code and it didn't work
Ответить