Quantity on hand problem

General ShopSite user discussion

Quantity on hand problem

Postby Don Lundell » Wed Jun 14, 2006 5:22 pm

Hi,

I'm using the [ -- PRODUCT.QuantityOnHand --] tag to show quantity available
on my product pages. Works fine.

However, and I've just noticed this so I'm not sure if it's consistent, if
someone orders an item, the count gets decremented in the product page in
the back office, but remains as it was (effectively available+1) on the
store page. If I regenerate the page/store, the quantity is finally decremented
on the store page.

Has anybody else seen this?

Thanks,

- dc
Don Lundell
 

Re: Quantity on hand problem

Postby Rob » Wed Jun 14, 2006 6:22 pm

That is the expected result. The tag [-- PRODUCT.QuantityOnHand --] is a
static tag, meaning it is only checked when you publish. Since the page
created by ShopSite is static and not dynamic, the number will not update
until your next publish, at which time it queries the database and publishes
with the current inventory at the time of publish.

If you are looking for real-time dynamic numbers on your pages for
inventory, look at the two new inventory tags:

[-- ProductInventoryPopUp {optional string} --]
Create a pop-up window displaying the Quantity On Hand

[-- ProductInventoryActual path_to_shopping_cart_cgi {optional string} --]
Display current Quantity On Hand on the page using Server Side Includes
(SSI)

Rob

"Don Lundell" <noone@nowhere.com> wrote in message
news:op.ta5vblvzhdeb9o@zombie-dc.logwinxp.resilience.com...

Hi,

I'm using the [ -- PRODUCT.QuantityOnHand --] tag to show quantity available
on my product pages. Works fine.

However, and I've just noticed this so I'm not sure if it's consistent, if
someone orders an item, the count gets decremented in the product page in
the back office, but remains as it was (effectively available+1) on the
store page. If I regenerate the page/store, the quantity is finally
decremented
on the store page.

Has anybody else seen this?

Thanks,

- dc
Rob
 

Re: Quantity on hand problem

Postby Don Lundell » Thu Jun 15, 2006 5:20 pm

On Wed, 14 Jun 2006 18:22:13 -0700, Rob <rob@lexiconn.com> wrote:

That is the expected result. The tag [-- PRODUCT.QuantityOnHand --] is a
static tag, meaning it is only checked when you publish. Since the page
created by ShopSite is static and not dynamic, the number will not update
until your next publish, at which time it queries the database and publishes
with the current inventory at the time of publish.

If you are looking for real-time dynamic numbers on your pages for
inventory, look at the two new inventory tags:

[-- ProductInventoryActual path_to_shopping_cart_cgi {optional string} --]

Can you explain the use of this one in more detail? (an actual code snippet perhaps?)

I tried sticking it in a test product template with a few versions of path_to_shopping_cart
(order.cgi, correct? relative path, absolute) -- I get no output.

I assume I'm missing something.

Thanks,

- dc
Don Lundell
 

Re: Quantity on hand problem

Postby Rob » Fri Jun 16, 2006 6:19 am

The path would be the web path to where your order.cgi resides, i.e.:

[-- ProductInventoryActual /cgi-bin/sc "Quantity Available" --]

Note though that this uses Server Side Includes, so your pages must be setup
to be parsed for SSI commands, something you may need to ask your host
about.

Rob

[-- ProductInventoryActual path_to_shopping_cart_cgi {optional string} --]

Can you explain the use of this one in more detail? (an actual code snippet
perhaps?)

I tried sticking it in a test product template with a few versions of
path_to_shopping_cart
(order.cgi, correct? relative path, absolute) -- I get no output.

I assume I'm missing something.
Rob
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 134 guests