Post by Jackcohen » Mon Aug 08, 2011 2:38 am

What I've realized is when they go too the checkout page it doesn't show the Apply coupon or Voucher option. It only displays that when you go too shopping cart. How can i put that option at checkout as well?

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by uksitebuilder » Mon Aug 08, 2011 3:52 am

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:

Code: Select all

<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
replace with:

Code: Select all

<a href="<?php echo $cart; ?>"><?php echo $text_checkout; ?></a>
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:

Code: Select all

<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
replace with:

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 } ?>
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:

Code: Select all

<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Jackcohen » Mon Aug 08, 2011 3:56 am

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?

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by teratyke » Mon Aug 08, 2011 3:58 am

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

Attachments

1.5.1.1, default template


Active Member

Posts

Joined
Sun Jun 12, 2011 3:05 pm

Post by Jackcohen » Mon Aug 08, 2011 4:19 am

What that did is change the checkout too Shopping Cart a bit useful. Thank you, but when you view what's in my shopping cart and click checkout it directs too checkout :/

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by uksitebuilder » Mon Aug 08, 2011 6:07 am

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Jackcohen » Mon Aug 08, 2011 6:17 am

I cannot find <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>]]>
Here's my header: http://pastie.org/2336369

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by uksitebuilder » Mon Aug 08, 2011 6:25 am

Looks like you have already deleted it.

It should be after:

$text_cart; ?></a>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Jackcohen » Mon Aug 08, 2011 6:28 am

Cannot find it, may you fix the code for me and repaste it on pastie.org

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by uksitebuilder » Mon Aug 08, 2011 6:53 am

Find:

Code: Select all

$text_cart; ?></a>
Add after:

Code: Select all

<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Jackcohen » Mon Aug 08, 2011 7:04 am

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

Active Member

Posts

Joined
Sun Aug 07, 2011 1:08 pm

Post by uksitebuilder » Mon Aug 08, 2011 3:21 pm

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Rabbitdigital » Sun Sep 11, 2011 10:46 pm

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

User avatar
New member

Posts

Joined
Sun Jul 03, 2011 7:10 pm

Post by mberlant » Mon Sep 12, 2011 2:31 pm

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

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.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by Cookie1974 » Tue Dec 06, 2011 4:46 am

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?

Newbie

Posts

Joined
Tue Nov 29, 2011 6:25 pm

Post by uksitebuilder » Thu Dec 08, 2011 7:03 am

Here is a restyled popup version
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();
		});
	});
add after

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;
	});

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by stenstrom » Wed Jul 18, 2012 7:25 am

Thank's !

This was exactly was i was looking for!
Forcing the customer to go via the cart.

//stenstrom


New member

Posts

Joined
Thu Apr 19, 2012 1:36 am
Location - Sweden
Who is online

Users browsing this forum: No registered users and 184 guests