Post by uksitebuilder » Wed Aug 10, 2011 12:22 am

If a user clicks on checkout in the header, they dont get to see the shopping cart where they can apply voucers/coupons/reward points

This mod alerts the user and gives them the option of visiting the cart to apply vouchers etc or continue on to checkout.

Tested on 1.5.x

User avatar
Guru Member

Posts

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

Post by Maansy » Wed Aug 10, 2011 2:08 am

Very useful. Thanks

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by marcelwoo » Wed Aug 10, 2011 12:24 pm

Works Like a Charm! But the pop-up windows can be more beautiful, it will be better. I guess I am just being too picky ;)

"We help each other to grow". That's the opencart community!

All free mods
Home Based Ebay business Opportunity(not ads)


User avatar
Active Member

Posts

Joined
Tue Mar 29, 2011 1:45 am

Post by uksitebuilder » Wed Aug 10, 2011 2:45 pm

Sure it was just a quick mod that uses basic javascript alert/confirm function.

Which is fine until (hopefully) vouchers etc get put back in to the checkout flow.

User avatar
Guru Member

Posts

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

Post by uksitebuilder » Wed Aug 10, 2011 9:31 pm

If you also want to incorporate this fix for the MiniCart popout in the header, download this vQmod as well:

http://forum.opencart.com/viewtopic.php ... 41#p183682 (the 2nd post)

User avatar
Guru Member

Posts

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

Post by Lisaweb » Wed Jan 18, 2012 1:41 am

For anyone who tried this and it didn't work - it may be because you are using another theme besides the default. Just edit both the contributed both files, changing this path (replacing "MYTHEME" with your theme folder name):

For the header:
catalog/view/theme/default/template/common/header.tpl
to point to your theme file instead:
catalog/view/theme/MYTHEME/template/common/header.tpl

or for the mini cart:
catalog/view/theme/default/template/common/cart.tpl
to point to:
catalog/view/theme/MYTHEME/template/common/cart.tpl

Thanks UKSB so much for this fix, by way! . :-)

Using OC v1.5.4.1 with Evisu Theme


User avatar
Active Member

Posts

Joined
Wed Dec 07, 2011 12:01 am

Post by hbg » Fri Jan 20, 2012 7:40 am

I noticed previously in a module, the MYTHEME was replaced by an '*'', and the module worked.

Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/


User avatar
hbg
Active Member

Posts

Joined
Wed Apr 13, 2011 8:52 am
Location - Newcastle NSW Australia

Post by marcelwoo » Tue Mar 06, 2012 2:01 pm

just tested it with opencart 1.5.2.1 and gosh, the page was twisted and messed up. I guess this line of code is causing the problem :

Code: Select all

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 Basket 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 the Checkout.')){location.href='<?php echo $checkout; ?>';}else{location.href='<?php echo $cart; ?>
Have tried but just was not able to fix the problem.... Any idea how to fix it? thx

"We help each other to grow". That's the opencart community!

All free mods
Home Based Ebay business Opportunity(not ads)


User avatar
Active Member

Posts

Joined
Tue Mar 29, 2011 1:45 am

Post by jim_jay » Sun Apr 01, 2012 5:06 am

marcelwoo wrote:just tested it with opencart 1.5.2.1 and gosh, the page was twisted and messed up. I guess this line of code is causing the problem :

Code: Select all

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 Basket 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 the Checkout.')){location.href='<?php echo $checkout; ?>';}else{location.href='<?php echo $cart; ?>
Have tried but just was not able to fix the problem.... Any idea how to fix it? thx

yes iam having the same problem is there going to be a fix please :)

Newbie

Posts

Joined
Mon Sep 19, 2011 11:00 pm
Who is online

Users browsing this forum: No registered users and 3 guests