Post by clickes2000 » Wed Jun 12, 2013 6:38 pm

hallo to All


i am using last verion 1.5.5.1
i am ver happy to use this professioal open cart softwar . i need your help please
in my shop i want a customer when press ( Add to cart ) will redirect him to check out .
it is like one click instead two clickes .

thanks alot

New member

Posts

Joined
Wed Jun 12, 2013 6:32 pm

Post by clickes2000 » Thu Jun 13, 2013 2:48 am

i hope if i have cleared my request ,
i just want that customer when press add to cart direct comming checkout

thanks

New member

Posts

Joined
Wed Jun 12, 2013 6:32 pm

Post by straightlight » Sat Jun 29, 2013 11:54 pm

This would only allow customers to shop one product at a time while OC offers multiple products before checkout. It would be bit considered as a lack of service. :|

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by oc-extensions » Tue Jul 09, 2013 5:39 pm

Hi,

In catalog/view/javascript/jquery/common.js in function addToCart

find:

Code: Select all

$('html, body').animate({ scrollTop: 0 }, 'slow'); 
and after this line add:

Code: Select all

		
location = 'index.php?route=checkout/checkout';
same on product.tpl
Last edited by pedro1993 on Mon Jul 15, 2013 11:56 pm, edited 1 time in total.
Reason: Added code tags

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by varnco » Sun Sep 15, 2013 1:05 pm

Thank you for this information! I don't know why this option isn't available as an on/off, as it is great for those businesses that only sell (normally) one item to a customer.

I did make a change, and used this instead, so they go to the shopping cart after adding to cart, and not directly to the checkout information.

location = 'index.php?route=checkout/cart;

rather than

location = 'index.php?route=checkout/checkout';

Oh, and I changed it in my theme .tpl file not the core one.. I hope that's right.

Thanks again!

New member

Posts

Joined
Sun Aug 18, 2013 3:16 pm
Who is online

Users browsing this forum: No registered users and 2 guests