Allow Price to Show when product is Out of Stock.

Highlighted
New Member
3 0 2

Hey,

I am using them Debut and when a Product goes into Out of Stock the price is not shown anymore, I would like to find a way to allow the Product to Show when the item is Out of Stock as well as displaying the Out of Stock message.

I don't want the Product Price to show twice when the Product is In Stock.

Any Help is appreciated.

Highlighted
Explorer
39 1 12

Hi Stamps,

To show the product price when the product is out of stock you have to do some changes in "product-price.liquid" snippet https://www.screencast.com/t/a3bK3qz9R77. In product-price.liquid please find this kind of code https://www.screencast.com/t/xRgGT0CbgVg.

After finding that code you have to change the order of code that you can see in this video https://www.screencast.com/t/cNn2ovlADIb (this link will ask you to enable adobe flash player please enable that) after changing the order of the code please click on save and you will see the product price on your product page.

Hope this helps!!

Thanks.

Highlighted
New Member
3 0 2

Hey Priyanka,

This has worked perfectly and is exactly as i wanted. In the capture attached the price has no space between it and the Out of Stock message.

Is there a way to separate this by a space or drop the Out of Stock message to the next line?

Kind Regards,
Josh

Highlighted
Explorer
39 1 12

Hey Josh,

Yes you can have that text on the next line by adding <br/> in here https://www.screencast.com/t/ivjCsFUNRsA0 

Hope this helps.

Regards,

Priyanka.

Highlighted
New Member
7 0 0

OMG.

I just did my first bit of coding since I was 8 years old on my Commodore Vic20.... and it worked, perfectly. Thank you!

0 Likes
Highlighted
New Member
2 0 0

Hi,


In my snippet folder there is no product-price.liquid.

How should I proceed?

0 Likes