Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

stock levels on home page

Featured Replies

Does anyone have a solution, we are creating a site to sell limited edition items, 100 every day, we need a stock counter to appear on the home page which will count down as the items are sold. We have actinic developer or we don't mind using any cart that is available. Any ideas much appreciated!

Down from 100 everyday?

 

I'm not a expert on MySQL but it seems to me you can just do an easy query

 

$number = query()

 

SELECT SUM

FROM <where ever you sales transactions are stored>

WHERE day == today && item == <your item>

 

$total_left = 100 - $number

 

echo ("Total limited editions left: "+ $total_left");

 

Something like this should work :p now remember my SQL query is total crap but you get the gist :p

just google some for the correct code to do a query.

 

Greetz R-J

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.