Not easily, the best solution at present is to either
(a) change the header checkout link to point to the cart instead.
(b) pop a confirm alert box on the link notifying the user that if they wish to apply a voucher/coupon/rewards points they should visit the shopping basket first by clicking cancel, otherwise clicking OK will continue to checkout.
or (c) remove the checkout link from the header altogether.
Hopefully the dev's will include an update to this usability 'must-have' in the next release.
OK, so how to implement one of the above:
(a) to change the checkout link to point to the cart
open: catalog/view/theme/default/template/common/header.tpl
find:
replace with:
of (b) give the user the option to visit the basket to apply a voucher/coupon or pay with rewards points, or continue to checkout.
open: catalog/view/theme/default/template/common/header.tpl
find:
replace with:
vQmod file for (b):
or (c) remove the checkout link altogether from the header.
open: catalog/view/theme/default/template/common/header.tpl
find and delete:
(a) change the header checkout link to point to the cart instead.
(b) pop a confirm alert box on the link notifying the user that if they wish to apply a voucher/coupon/rewards points they should visit the shopping basket first by clicking cancel, otherwise clicking OK will continue to checkout.
or (c) remove the checkout link from the header altogether.
Hopefully the dev's will include an update to this usability 'must-have' in the next release.
OK, so how to implement one of the above:
(a) to change the checkout link to point to the cart
open: catalog/view/theme/default/template/common/header.tpl
find:
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
Code: Select all
<a href="<?php echo $cart; ?>"><?php echo $text_checkout; ?></a>
open: catalog/view/theme/default/template/common/header.tpl
find:
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
Code: Select all
<?php if(isset($this->request->get['route'])&&substr($this->request->get['route'],0,8)=='checkout'){?><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a><?php }else{ ?><a href="javascript:if(confirm('Checkout\n---------------\n\nBefore proceeding to Checkout, if you would like to apply a Gift Voucher, Discount Coupon or Rewards Points to your order, please click \'Cancel\' to go to the Shopping Cart to apply it.\n\nIf you would like to proceed without redeeming a Gift Voucher, Discount Coupon or Rewards Points, please click \'OK\' to continue to Checkout.')){location.href='<?php echo $checkout; ?>';}else{location.href='<?php echo $cart; ?>';}"><?php echo $text_checkout; ?></a><?php } ?>
open: catalog/view/theme/default/template/common/header.tpl
find and delete:
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
Thanks, for the response. Problem here when it successfully directs too cart when you click checkout on the top right but when you add an item too cart and view items straight from your cart and click checkout it won't direct you too cart over there, and by any chance by the footer where it says Copyright @ My Company it's aligned too the right how can i center that?
Thanks UKSB, I hadn't considered leaving a message in the checkout page, but I might have a rethink now maybe that is better...
I [previously] decided to remove the checkout link from the header, but there is also a checkout link in the pop-up cart in the header - I redirected that to the cart page instead.
Here is my vqMod if its any use to you.
Rob
I [previously] decided to remove the checkout link from the header, but there is also a checkout link in the pop-up cart in the header - I redirected that to the cart page instead.
Here is my vqMod if its any use to you.
Rob
Attachments
1.5.1.1, default template
Updated my post above to add extra functionality to the checkout link
1. If use is browsing the normal site and they click the checkout link in the header, it will alert them and give them the option to go to the shopping Cart to apply vouchers etc or to continue on to the checkout section.
2. If user is in the Shopping Cart or during Checkout, the header checkout returns to normal behaviour
1. If use is browsing the normal site and they click the checkout link in the header, it will alert them and give them the option to go to the shopping Cart to apply vouchers etc or to continue on to the checkout section.
2. If user is in the Shopping Cart or during Checkout, the header checkout returns to normal behaviour
I cannot find <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>]]>
Here's my header: http://pastie.org/2336369
Here's my header: http://pastie.org/2336369
Find:
Add after:
Code: Select all
$text_cart; ?></a>
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
I added that code right after $text_cart; ?></a> and it just generates a new link too checkout on top left of my page. :/ having some trouble here and as well do you know how too center the bottom where it sais Copyright @ My Company it's all the way on bottom right how can i center that
OK, well now you have added it, choose one of the above (a), (b), or (c) methods
Please create a new topic regarding your other question so this topic stays on track - thanks
Please create a new topic regarding your other question so this topic stays on track - thanks
Does anyone know if the "Apply Discount Code" and "Use Gift Voucher" will be included on the checkout page in future OC releases?
Cheers
Warren
Cheers
Warren
That's the politically charged question of the year. It appears from the many threads created on this very topic that the overwhelming majority of forum dwellers would like to see these entries available on the checkout page with the other payment elements, since they are just two more payment elements. One forum dweller does not like this idea - Daniel.Rabbitdigital wrote:Does anyone know if the "Apply Discount Code" and "Use Gift Voucher" will be included on the checkout page in future OC releases?
So, for the foreseeable future we will all need to live with one of the extensions or modifications that has been developed to correct this "non-problem".
Please use proper English at all times, so that all members may understand you.
Thanks for the 3 options to this Simon. Your vQmod is perfect for what I need.
Is there a way to style the pop up in any way?
Is there a way to style the pop up in any way?
Here is a restyled popup version
You also need to make an addition to catalog/view/javascript/common.js
find
add after
You also need to make an addition to catalog/view/javascript/common.js
find
Code: Select all
$('.success img, .warning img, .attention img, .information img').live('click', function() {
$(this).parent().fadeOut('slow', function() {
$(this).remove();
});
});
Code: Select all
$( "#dialog" ).dialog({
autoOpen: false,
resizable: false,
width:610,
height:'auto',
modal: true,
position: ['center','top'],
buttons: {
"OK": function() {
$( this ).dialog( "close" );
location = 'index.php?route=checkout/checkout';
},
Cancel: function() {
$( this ).dialog( "close" );
location = 'index.php?route=checkout/cart';
}
}
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
return false;
});
Who is online
Users browsing this forum: No registered users and 184 guests