i want to add short description content. above add to cart button. how to do it? I am using the debut theme.
{{ product.description | truncate: 500, ". . . " }}
Try out this type of code,
Find the Product Description and replace with this code.
For that you need to have a prior knowledge of coding, if you don’t have then learn and make the skill,
Thank you.
Where to add this code? under which file? and every time I have to add this code for every product?
@arkray
if you don’t know then in my opinon hire someone. else you were messed up with your Site.
if you try to do with your self you have to learn the coding skills.
thank you.
I know how to edit codes. but I want to know the place where to Find the Product Description for eg. in product-template.liquid or somewhere else?
It’s good Everyone want to do it by own.
you don’t know coding as i told you find the product.description code and replace it with the given code.
product-template.liquid file,
Please share your site URL,
I will check out the issue and provide you a solution here.
currently i only can add full description. but I want to add short description also.
Can someone provide a proper solution to this?
If the short-desciption is different than the beginning of the main description then do similar as to what @Mr_RaviRaj is roughly outlining but use metafield definitions instead on the product to hold the multi-line text of the short descriptions message.
Then reference that instead of product.description at the appropriate place in the themes code for debut that should be in product-template.liquid or an included snippet.
In the example below I’ve set the namespace to “content” instead of the placeholder “myfields”
{% assign short_description = product.metafields.content.shortdescription.value %}
{{ short_description }}
In OS2.0 themes such as dawn merchants can use a custom-liquid block instead of editing template files.
