Instead of OK and Cancel i want checkout and continue shopping.
I have my js code like this
Expand|Select|Wrap|Line Numbers
- function CheckWt()
- {
- var backorder = 'False'
- if (backorder == 'False')
- {
- if (parseInt(document.getElementById('ctl00_MainContent_ShoppingCart1_ThemeShoppingCart1_lblBalWeight').innerHTML) > 0)
- {
- var ans = confirm('You have not reached your weight limit yet.\nClick "OK" if you would like to add more items to your cart. Click "Cancel" to proceed to checkout'); if (ans )
- {
- return false;
- }
- else
- {
- return true;
- }
- }
- else
- {
- return true;
- }
- }
- else
- {
- alert('Please Update the Quantity of the items that exceeds the available stock\nOr Click On Update To Stock Button ');
- return false;
- }
- }