Guest Posted January 18, 2007 Share Posted January 18, 2007 It seems that less attentive purchasers can click BUY, their cart by default shows purchase quantity as [1] against an item and then they could proceed or alter the quantity and proceed using the CHECKOUT button. They will then proceed right through to the Order Confirmation page before they realise their cart has not updated. As they need to amend and update before proceeding, I would like to insert a line above or below the bar containing the BUTTONS stating... "Where altering the quantity ordered or removing a item from this cart, please click the Update Cart button before continuing your checkout process." Where, ideally, do I insert this and how. Is it an html line within php or something else in os Commerce? Link to comment Share on other sites More sharing options...
CurrierSites Posted January 18, 2007 Share Posted January 18, 2007 It seems that less attentive purchasers can click BUY, their cart by default shows purchase quantity as [1] against an item and then they could proceed or alter the quantity and proceed using the CHECKOUT button. They will then proceed right through to the Order Confirmation page before they realise their cart has not updated. As they need to amend and update before proceeding, I would like to insert a line above or below the bar containing the BUTTONS stating... "Where altering the quantity ordered or removing a item from this cart, please click the Update Cart button before continuing your checkout process." Where, ideally, do I insert this and how. Is it an html line within php or something else in os Commerce? Here is what I did.... (and I am no expert, but I get by) In the following file I added an additional variable (This is the english version of variables displayed on the shopping cart page) /includes/languages/english/shopping_cart.php define('NAVBAR_TITLE', 'Cart Contents'); define('HEADING_TITLE', 'What\'s In My Cart?'); define('TABLE_HEADING_REMOVE', 'Remove'); define('TABLE_HEADING_QUANTITY', 'Qty.'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product(s)'); define('TABLE_HEADING_TOTAL', 'Total'); define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty!'); define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:'); define('SUB_TITLE_TOTAL', 'Total:'); define('CHECKOUT_MESSAGE', '<font color=red><b>Note: When adjusting item quantity, please be sure to cick the UPDATE button before proceeding to check</b></font><br><br>'); Then in the main shopping cart file: /shopping_cart.php I added a line of PHP to include this variable <?php echo CHECKOUT_MESSAGE; ?> Add the above line after the following code <tr> <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td> </tr> <?php } else { ?> <tr> <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td> </tr> <?php } } ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> The reason for doing it this way is just ot maintain variations associated with using multiple languages. You could hardcode your message into in the main shopping cart page... but then if you switched languages... you message would remain in english while everything else changed. I do not usually offer code help so feel free to tell that I made this more diffuclt than it needed to be. This is just how I acheived the desired affect. Link to comment Share on other sites More sharing options...
Guest Posted January 22, 2007 Share Posted January 22, 2007 Dan GREAT! Did the job exactly as I wanted it. Many thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.