devink Posted February 7, 2003 Share Posted February 7, 2003 Does any have any tips orsolutions to making sure the user knows they must press update after changing quantities in the shopping basket? I have had several people complaining that they can only buy 1 item, even when they change the quantity. My Update button is already red!! Thanks in advance. Many Thanks, Steve Link to comment Share on other sites More sharing options...
greree Posted February 7, 2003 Share Posted February 7, 2003 Here's a quick solution I just came up with. This is probably sloppy coding, so you might want to change it, but the principle is OK. Go to /catalog/shopping_cart.php. At roughly 3/4 of the way down the page you'll see this code: <tr> <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td> </tr> <?php } } ?> Right after that insert: <tr> <td align="left" class="main"><?php echo SUB_TITLE_UPDATE_INSTRUCTIONS; ?></td> </tr> Save and close. Then go to /catalog/includes/languages/english/shopping_cart.php (or the appropriate language folder if you use another language). At approximately line 25 add this line define('SUB_TITLE_UPDATE_INSTRUCTIONS', 'You <strong>MUST</strong> press Update to change quantity!'); or however you want to phrase it. This will insert the instruction for updating quantity between the sub-total line and the buttons. You might even want to change the color of the word "Update" to red to match your button. Link to comment Share on other sites More sharing options...
mattice Posted February 7, 2003 Share Posted February 7, 2003 Another option would possibly be to have a small JavaScript code do a onChange submit. Have never tested that on textfields, I know it is possible on dropdowns (like manufacturer works) Javascript isn't 100% compatible obviously but it will catch 90% of them. Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
devink Posted February 7, 2003 Author Share Posted February 7, 2003 Thanks for both the replies. My PHP is minimal, but I know javaScript. To extend your suggestion, I think I will have some HTML text that only appears on the page when a change has been made. I may even change the Update button to an animated one when something changes. Thanks guys :D Many Thanks, Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.