Looking for some code...

General ShopSite user discussion

Looking for some code...

Postby FlaGatorMan » Sun Mar 16, 2008 9:40 pm

Hello all...

Im looking for some code to accurately display my inventory quantity on the product page if my inventory drops below a certain number..

Something like this..

Only 1 In Stock, Order Soon!

Can the inventory database be read with code and be displayed?

Thanks

Gator
FlaGatorMan
 
Posts: 30
Joined: Sat Dec 29, 2007 11:24 am

Postby Jim » Mon Mar 17, 2008 6:21 am

There are 2 custom template tags that can be used for displaying inventory on the store pages.
[-- ProductInventoryPopUp {link name} --] Create a link that will make a pop-up window displaying the Quantity On Hand, where link name is the text for the link.
[-- ProductInventoryActual path_to_shopping_cart_cgi {description text} --] Display current Quantity On Hand on the page using Server Side Includes (SSI), where description text appears before the number.

You can find a little more info about these tags on:
http://shopsite.com/help/9.0/en-US/sc/p ... oduct.html
under the section "Inventory Tracking"

The first tag displays a link that the shopper can click on and view the current inventory. This can be used on any ShopSite generated page.

The second displays the actual inventory quantity on the page BUT it requires that server side includes are allowed and setup on your server. You will need to contact your host to see if this is allowed and setup on your store.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 102 guests