Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Template content exceeds 256 KB limit.

Solved

How to implement BISAC code in your online store?

Jackson-pollock
Excursionist
23 0 2

 

We are trying to implement code using BISAC code

https://gist.github.com/natebeaty/c581c1f9bfb9eb2c9852101a2ecc1c54

 

Screenshot 2024-04-11 115128.png

Accepted Solution (1)
Raj-webdesigner
Shopify Partner
349 87 82

This is an accepted solution.

Okay, add this code below your snippet.

{% render 'BISAC-value' %}

 

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


View solution in original post

Replies 7 (7)

Raj-webdesigner
Shopify Partner
349 87 82

You can't. 256kb for templates, 64kb for snippets. Break up your template in to multiple snippets for instance.

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Jackson-pollock
Excursionist
23 0 2

 

{% 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 

 

Screenshot 2024-04-11 120837.png

Raj-webdesigner
Shopify Partner
349 87 82

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

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Jackson-pollock
Excursionist
23 0 2

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/

 

Screenshot 2024-04-11 120837.png

Raj-webdesigner
Shopify Partner
349 87 82

This is an accepted solution.

Okay, add this code below your snippet.

{% render 'BISAC-value' %}

 

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Jackson-pollock
Excursionist
23 0 2

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' %}

 

Screenshot 2024-04-11 141748.png

 

Raj-webdesigner
Shopify Partner
349 87 82

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

 

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com