How can I pass data from a snippet to a blog template section?

samir-p-m
Shopify Partner
5 0 1

{% section 'blog-template' %}

this section calling from a snippet and I want to pass a data from the snippet to the blog-template section

 

Replies 5 (5)

pawankumar
Shopify Partner
429 43 77

you can pass data like this
{% section 'blog-template', var1: "var1" %}
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
samir-p-m
Shopify Partner
5 0 1

its not working

 

pawankumar
Shopify Partner
429 43 77

Hi @samir-p-m 
I hope you are doing well,
Can you please provide screenshot of how you are assigning  and accessing the variables, and some more information that you feel relevant so that I can look into this deeper.
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

Digico
Shopify Partner
46 1 4

What kind of data do you want to pass? I guess custom.

samir-p-m
Shopify Partner
5 0 1

i just want to pass a variable