close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

"Not enough stock" message

Thread began 9/13/2010 6:02 am by Badger | Last modified 9/13/2010 8:36 am by Jason Byrnes | 1585 views | 1 replies |

Badger

"Not enough stock" message

This was a request for help but I've fixed it as follows:

I have a working stock control application where items successfully purchased are being deleted from my items inventory column.

I've made the "show if" message:

"Please choose a quanity less than <?php echo $eCart1->DisplayInfo("LampInventory"); ?>

on my cart page under the cart's "Quantity" box that warns if there is insufficient stock based on the quantity they are ordering.

My method uses the server behaviour: Utilities/Show Region Utility (SRU):

If: <?php echo $eCart1->DisplayInfo("Quantity"); ?>

is: Greater than

Value: <?php echo $eCart1->DisplayInfo("Inventory"); ?>

This also works for more than one item becuase it's in a repeat region.

B

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you have figured this out, and thanks posting the working solution.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...