Post by deadiwe » Fri May 07, 2021 1:35 pm

catalog/controller/account/logout.php

Code: Select all

<?php
class ControllerAccountLogout extends Controller {
	public function index() {
		if ($this->customer->isLogged()) {
		    $this->cart->clear();
			$this->customer->logout();

			unset($this->session->data['shipping_address']);

Newbie

Posts

Joined
Wed Apr 10, 2019 5:48 pm

Post by straightlight » Fri May 07, 2021 7:47 pm

Is this a question or providing instructions on how to clean the cart? OC version. More info is needed.

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 straightlight » Fri May 07, 2021 7:48 pm

OP user posted update here: viewtopic.php?f=190&t=185554#p820573 .

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
Who is online

Users browsing this forum: No registered users and 101 guests