close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Inventory Level Message in Cart not showing

Thread began 6/25/2010 1:08 am by siteontime | Last modified 7/09/2010 1:30 pm by Jimmy Wu | 1051 views | 9 replies |

siteontimeBeta Tester

Inventory Level Message in Cart not showing

Hi-

I hope you can help me with this. I can duplicate the same issue in the PowerStore Demo as well.

If I add a quantity to the cart that is more than what is left, the quantity is updated in the cart, but the message indicating that the quantity changed doesn't appear.

Here is when it shows up. If I change the quantity in the cart and hit update I get the message, or if I go back to the same item and try to add more to the cart I get the message.

How can I get this message to appear anytime the quantity is changed.

Thanks!

Sign in to reply to this post

Jimmy Wu

That is actually how the cart is designed. You will have to click update for any changes to the cart to take place. Just changing the number in the cart without clicking update will not update the number added to the cart.

You can see what I mean by adding an item to the cart, going into the cart and changing the number without clicking update and clicking view cart again. The number of items added to the cart is the original number.

Sign in to reply to this post

siteontimeBeta Tester

No - I think you misunderstood what I was asking.

If there are 10 in stock of an item and I add 15 to the cart. It changes the quantity added to 10, but it does not show the message that only 10 have been added. It only shows this message if I go back and try to add more or if I change the quantity and press update cart.

Here is an example on the demo store.

Products_Detail.php?ProductID=16

On the above link, try to add a quantity of 110 to the cart. It will change the quantity to 100 but will not let you know that it is doing that.

Sign in to reply to this post

Jimmy Wu

I understand now. If you go to your Products_Details.php page and find this line:
$ATC_itemQuantity = "".((floatval($_POST["WA_Store_Cart_1_Quantity_Add"])<=floatval($row_NumLeftRS['NumLeft']) || $row_WADAProducts['ProductUnlimited'] != 0)?$_POST["WA_Store_Cart_1_Quantity_Add"]:$row_NumLeftRS['NumLeft']) ."";// column binding

You should modify it to look like this:
$ATC_itemQuantity = "".$_POST["WA_Store_Cart_1_Quantity_Add"] ."";// column binding

Sign in to reply to this post

siteontimeBeta Tester

Thank you for your help with this. I have changed the code you posted above. The background of the quantity box now changes to red, but the message that the cart amount has been changed still does not show up unless I update the the quantity or attempt to go back and add more of the same item.

Thanks for your help with this!

Sign in to reply to this post

Jimmy Wu

I'm not seeing any change when I test that product page. Can you send me your Products_Detail.php so I can take a look at it?

Sign in to reply to this post

siteontimeBeta Tester

Here is a link to the detail page.

Products_Detail.php?ProductID=321

If you add a quantity of 10 to the cart you will see that it does not display the quantity changed message.

Sign in to reply to this post

Jimmy Wu

Looks like for that store, you've cause the error message to never show up. If you modify the amount to 10 in the shopping cart, it doesn't show up either.

You would want to make sure that none of your styling has interfered with the message showing up.

Sign in to reply to this post

siteontimeBeta Tester

Thanks - you were right. I had changed some code to try to get the error to print. I changed it back and it is working fine. Thanks for the help.

Sign in to reply to this post

Jimmy Wu

Great to hear it. If you run into any additional issues, feel free to open a new thread.

Sign in to reply to this post
loading

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...