How to Add a Product to Blog Post in Shopify

How to Add a Product to Blog Post in Shopify

Universitheme

3 года назад

4,055 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tony 46&2
Tony 46&2 - 17.08.2023 01:20

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!

Ответить
Mario Cotom
Mario Cotom - 20.01.2023 19:31

Como agregamos varios productos

Ответить
two blooms
two blooms - 23.12.2022 06:56

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.

Ответить
Zuzana AK
Zuzana AK - 05.09.2022 15:53

ingenious, thank you!

Ответить
Sylvester Mitchell
Sylvester Mitchell - 11.07.2022 17:10

How would I attach multiple products?

Ответить
赛博猫咪工作室
赛博猫咪工作室 - 13.04.2022 06:25

Very helpful!

Ответить
adhd
adhd - 14.04.2021 10:19

I used the same code and it didn't work

Ответить