Post by niranjan528 » Sat Aug 01, 2015 7:10 pm

Hello Hi Everyone,
Am using opencart 1.5.6.4 v template,I have one doubt in cart checkout .
my requirement is
If user Logged in
---------------------
If user add product to cart click on cart CHECKOUT button it will goes to Step1 page . it is working now ...

If user Not Logged In
----------------------------

If user not login add product to cart After click on CHECKOUT button i want to go to Register Page See the Below Image please...
http://localhost/shop/index.php?route=account/register
If any one could you please tell me where can i change the code...please help me .Thanks Advance ....

Niranjan C.

Attachments

checkout2.png

resulting image - checkout2.png (243.32 KiB) Viewed 853 times

checkout1.png

result i dont want like this image... - checkout1.png (331.01 KiB) Viewed 853 times


New member

Posts

Joined
Sat Jun 27, 2015 6:48 pm

Post by chulcha » Sun Aug 02, 2015 5:26 am

edit controller/checkout/cart.php

Code: Select all

	public function add() {
		$this->language->load('checkout/cart');

		$json = array();
//Add code
if (!$this->customer->isLogged()) {
		$json['redirect'] = str_replace('&', '&', $this->url->link('account/register', '', 'SSL');
		$this->response->setOutput(json_encode($json));		
}

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by niranjan528 » Fri Aug 07, 2015 1:13 am

Hello Hi,
I was added this code but not working for me.

New member

Posts

Joined
Sat Jun 27, 2015 6:48 pm

Post by chulcha » Fri Aug 07, 2015 2:18 am

How can I help?

PM?

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm
Who is online

Users browsing this forum: Bing [Bot] and 23 guests