Solved

Adding sold in the last hours to product page

mel30
Shopify Partner
82 2 22

Hi There,

 

I'm looking for an app that shows "sold in the last hours " on the product page.

 

I research and found a few apps but they were quite expensive.

 

Looking for an app that can be free

 

Or can this be done by modifying the liquid file?

 

Thank you.

 

Mel

 

Accepted Solution (1)
Zworthkey
Shopify Partner
5581 642 1569

This is an accepted solution.

yes, its fake counter.

Sold.PNG

Can you provide me refrence website.

View solution in original post

Replies 22 (22)

Zworthkey
Shopify Partner
5581 642 1569

@mel30 
You are trying to add  sold out labels?

Zworthkey
Shopify Partner
5581 642 1569
{%- if product.tags contains 'new' -%}
<span class="product-label new" >
<span>sold in the last hours </span>
</span>
{%- endif -%}

@mel30 

try this code.

mel30
Shopify Partner
82 2 22

@Zworthkey 

 

Thank you for your reply.

 

I'm looking for something like the below image

Sold.PNG

 

Does the above code meet the purpose?

 

Thank you 

 

Mel

Zworthkey
Shopify Partner
5581 642 1569

Which app you have tried?

Zworthkey
Shopify Partner
5581 642 1569

ok, We have to Add it by custom code.

mel30
Shopify Partner
82 2 22

@Zworthkey 

 

I saw some websites adding fake counters.

 

 

Not sure it is done with Code or by some app.

 

Zworthkey
Shopify Partner
5581 642 1569

This is an accepted solution.

yes, its fake counter.

Sold.PNG

Can you provide me refrence website.

mel30
Shopify Partner
82 2 22

Ill share privately

mel30
Shopify Partner
82 2 22

@Zworthkey Thank you sharing the solution privately

ScinteraShopy
Shopify Partner
40 3 2

May I also have access to the solution please as this is something I also need to accomplish.

Thank you kindly.

F3rrAr1
Visitor
3 0 0

Hey,

I'm looking for the same functionality, could you share with me if you found the solution?

 

Thanks!

kveater
Tourist
9 0 7

Can you share with me please. 
many thanks

sammyprince
Tourist
7 0 2

Could you please also share this with me. thanks

Fahadhassan
Shopify Partner
56 0 6

Can you share with me please,
Thanks.

Fadii
ScinteraShopy
Shopify Partner
40 3 2

Here you go…


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
{% if product.available == true %}
<div class="orderMsg" data-user="50" data-time="12">
<div class= "ordertext">
<span>&#128293; </span><strong><span id="demo"></span></strong> sold in last <strong id="time"></strong> hours

</div>
</div>



<script>
let count = Math.floor((Math.random() * 50) + 10);
document.getElementById("demo").innerHTML = count;


let time = Math.floor((Math.random() * 10)+ 2);
document.getElementById("time").innerHTML = time;

</script>

Fahadhassan
Shopify Partner
56 0 6

Hello there! It shows "invalid json in tag schema" actually I'm using Envato theme, I don't know anything about coding 

Fadii
ScinteraShopy
Shopify Partner
40 3 2

I'm sorry. That was the code supplied to me. I am unable to assist further.

Zenaural
Tourist
13 0 1

how to add it? i also want to add this kind of sold counter this will show random numbers

loonyprintz
Visitor
1 0 0

where would i place this code?

 

mel30
Shopify Partner
82 2 22

Its usually placed on the product page below the price or product title.

socialproofy
Shopify Partner
9 0 3

Hi @mel30,

 

We offer powerful social proof widgets to help Shopify store owners increase their sales. You also have access to more than 30+ widgets that you can use to convert your visitors into customers. In addition to improving existing widgets, we continue to add new widgets actively.

 

https://apps.shopify.com/social-proofy

 

Let us know if you need any help.

Social Proofy is an intuitive and visual way to engage, convert and communicate with users.