Adding sold in the last hours to product page

Solved
mel30
Shopify Partner
80 2 21

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 1560

This is an accepted solution.

yes, its fake counter.

Sold.PNG

Can you provide me refrence website.

banned

View solution in original post

Replies 24 (24)
Zworthkey
Shopify Partner
5581 642 1560

@mel30 
You are trying to add  sold out labels?

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

@mel30 

try this code.

banned
mel30
Shopify Partner
80 2 21

@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 1560

Which app you have tried?

banned
Zworthkey
Shopify Partner
5581 642 1560

ok, We have to Add it by custom code.

banned
mel30
Shopify Partner
80 2 21

@Zworthkey 

 

I saw some websites adding fake counters.

 

 

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

 

Zworthkey
Shopify Partner
5581 642 1560

This is an accepted solution.

yes, its fake counter.

Sold.PNG

Can you provide me refrence website.

banned
mel30
Shopify Partner
80 2 21

Ill share privately

mel30
Shopify Partner
80 2 21

@Zworthkey Thank you sharing the solution privately

ScinteraShopy
Shopify Partner
26 1 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!

dubmmo
Shopify Partner
4 0 1

Hey there! I’ve found that most of the sales popup apps all look alike. I've launched a sales popup app with a unique interface that allows you to showcase your customer’s entire basket. Here's the link & it's free: https://apps.shopify.com/pretty-sales-popup

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
24 0 5

Can you share with me please,
Thanks.

ScinteraShopy
Shopify Partner
26 1 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
24 0 5

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

ScinteraShopy
Shopify Partner
26 1 2

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

Zenaural
Tourist
10 0 0

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
80 2 21

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.
dubmmo
Shopify Partner
4 0 1

Hey there! I’ve found that most of the sales popup apps all look alike. I've launched a sales popup app with a unique interface that allows you to showcase your customer’s entire basket. Here's the link & it's free: https://apps.shopify.com/pretty-sales-popup