Debutify, add a "In Stock" to a product' landing page

SofianeX
New Member
8 0 0

Hello there,

If anyone can help. I need to add "In Stock" underneath the price that exists on my product landing page.

The "In Stock" should be in green color.

Thank you in advance for your help.

Cheers

Replies 5 (5)
JHKCreate
Shopify Partner
2947 507 726

Hello @SofianeX 

How versed are you in Liquid coding? Let us know, we'll provide the solution for you swiftly. Cheers!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com
Learn more about us: jhkcreate.com
Satisfied with our solutions? Drop a review on Google

SofianeX
New Member
8 0 0

Hi @JHKCreate,

I have some knowledge of liquid coding.

 

 

JHKCreate
Shopify Partner
2947 507 726

You can use the following code:

{% if product.available %}
<span style="color:#hehehe;">In Stock</span>
{%endif%}


And replace the hex color by the value you need.  

Let me know if that works for you!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com
Learn more about us: jhkcreate.com
Satisfied with our solutions? Drop a review on Google

SofianeX
New Member
8 0 0

I need to know where precisely I can use this code? is it product-template.liquid?!!

 

JHKCreate
Shopify Partner
2947 507 726

If it's for the product page, yes!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com
Learn more about us: jhkcreate.com
Satisfied with our solutions? Drop a review on Google