Shopify themes, liquid, logos, and UX
We are trying to implement code using BISAC code
https://gist.github.com/natebeaty/c581c1f9bfb9eb2c9852101a2ecc1c54
Solved! Go to the solution
This is an accepted solution.
Okay, add this code below your snippet.
{% render 'BISAC-value' %}
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
You can't. 256kb for templates, 64kb for snippets. Break up your template in to multiple snippets for instance.
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
{% assign BISAC_value = product.metafields.Neato.BISAC %}
{% if BISAC_value == "BIO000000" %}
{% assign category = "Biography & Autobiography / General" %}
{% elsif BISAC_value == "BIO023000" %}
{% assign category = "Biography & Autobiography / Adventurers & Explorers" %}
{% elsif BISAC_value == "BIO002010" %}
{% assign category = "Biography & Autobiography / African American & Black" %}
{% elsif BISAC_value == "BIO002040" %}
{% assign category = "Biography & Autobiography / Arab & Middle Eastern" %}
{% elsif BISAC_value == "BIO001000" %}
{% assign category = "Biography & Autobiography / Artists, Architects, Photographers" %}
{% elsif BISAC_value == "BIO002020" %}
{% assign category = "Biography & Autobiography / Asian & Asian American" %}
{% elsif BISAC_value == "BIO034000" %}
{% else %}
{% assign category = "Other" %}
{% endif %}
How we can create snippets for this using in main product liquid. @Raj-webdesigner
we will have 4000 Categories
Help you add snippets to this site
https://www.shopify.com/in/partners/blog/88186566-tips-for-using-snippets-in-your-shopify-theme
This site helps to add and show snippets in your destination
And if you don't understand in this site or not I will help you for guidance
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
Hi, I added this code to snippet
so how can I show this again using a snippet in the product page {% render 'BISAC-value' %}
website: https://060ef5-5.myshopify.com/
This is an accepted solution.
Okay, add this code below your snippet.
{% render 'BISAC-value' %}
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
hey @Raj-webdesigner just one question
how to assign variable to {% render 'error-value' %}
example
a = {% render 'error-value' %}
a= Category: Other
then show { % render 'error2-value' %}
Since this code is not a variable,
don't write it like a={%render '...' %},
add it directly.
You wrote your previous code. Write this code like this
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024