Post by t556 » Sat Nov 12, 2011 10:16 am

I'm having issues with customers not being able to add coupons because they don't realize it has to be added in the cart (most of them never enter the cart, because I typically sell a single product per order, they add it and go to checkout) I know there is a vqmod to allow coupon entry at checkout, and I may do that. But I was wondering if I could redirect the checkout button on the main menu to link to the cart instead. Is this possible? (this is preferable so they can add gift codes/vouchers)

Thanks!

New member

Posts

Joined
Thu Sep 08, 2011 6:10 pm

Post by inactiveaccount9912 » Sat Nov 12, 2011 8:25 pm

Edit the file catalog/view/theme/yourtheme/template/common/header.tpl

Fin the code
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
and change it to
<a href="<?php echo $cart; ?>"><?php echo $text_checkout; ?></a>
If you also want the button from the cart to redirect to cart edit the file catalog/view/theme/yourtheme/template/common/cart.tpl and find the line
<div class="checkout"><a href="<?php echo $checkout; ?>" class="button"><span><?php echo $button_checkout; ?></span></a></div>
and change it to:
<div class="checkout"><a href="index.php?route=checkout/cart" class="button"><span><?php echo $button_checkout; ?></span></a></div>

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by t556 » Sun Nov 13, 2011 1:49 pm

Sweet, thanks. I'll make those changes this week. I appreciate your help and fast response!

New member

Posts

Joined
Thu Sep 08, 2011 6:10 pm

Post by priceyboy » Tue Nov 15, 2011 9:59 am

Thank you from me as well, I was looking everywhere for that snippet

Priceyboy

New member

Posts

Joined
Fri Nov 13, 2009 3:08 pm

Post by siteadvice » Fri Dec 02, 2011 11:22 pm

I think the default Opencart configuration - sending people to the checkout stage before the basket - is wrong, because it means customers will be unable to see the Shipping calculator and the Coupon codes.

Personally, I hate ecommerce sites where you have to register in order to find out how much your delivery is going to cost.

In my opinion, it should work one of two ways:
a) your "Checkout" button should take me to the Shopping Basket
b) the Shipping and Coupon code should be included in the Checkout page

To put it another way, you don't want to publicise a coupon code and have people come to the site keen to make a purchase but giving up because they can't find the text box to enter their code.

inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development


User avatar
New member

Posts

Joined
Mon Oct 24, 2011 8:12 pm

Post by Ozfarmer » Thu Dec 15, 2011 3:19 pm

Just tried this I dont understand why the page still goes to checkout. :drunk:
florinsith wrote:Edit the file catalog/view/theme/yourtheme/template/common/header.tpl

Fin the code
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
and change it to
<a href="<?php echo $cart; ?>"><?php echo $text_checkout; ?></a>

I want https://www.ozfarmer.com/checkout/cart

But when I click Checkout I still get this https://www.ozfarmer.com/checkout/checkout ---V frustrating!

Why do I want to change it? besides the coupon / Gift Voucher issue when I test SSL with whynopadlock.com I get


ERROR: The secure URL you submitted was redirected to:
http://www.ozfarmer.com/index.php?route=checkout/cart
Please try pasting the secure URL you originally submitted into a new web browser window to make sure it stays on the secure page. Your secure page may require there to be items in a shopping cart, or for the user to be logged in. It may not be possible to test this URL.

Secure URL submitted: https://www.ozfarmer.com/checkout/checkout

A BIG red X on that!

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia
Who is online

Users browsing this forum: No registered users and 49 guests