Post by GoldenTongs » Mon Jan 05, 2015 12:04 pm

cypee wrote:Hi, Im using version 2.0

So the code is difference, may i know how to replace it to YES?

Thanks
for OC2.0 open file
catalog/controller/account/register.php
find (line 310)

Code: Select all

		if (isset($this->request->post['newsletter'])) {
			$data['newsletter'] = $this->request->post['newsletter'];
		} else {
			$data['newsletter'] = '';
		}
change to

Code: Select all

		if (isset($this->request->post['newsletter'])) {
			$data['newsletter'] = $this->request->post['newsletter'];
		} else {
			$data['newsletter'] = 1;
		}

http://Lilphones.com
Image


Active Member

Posts

Joined
Sun Jul 29, 2012 5:26 pm

Post by nshaboddin » Wed Jan 14, 2015 5:57 pm

If you've never changed coding before, the process is simple (I have no coding or website background whatsoever) and I struggled initially trying to figure out where to change the coding etc. Hope this helps:
1) Go to your web host's website (such as GoDaddy, BlueHost, etc) and login
2) Find the link for your cPanel
3) Go to File Manager - all your files and folders are there. Backup and edit like above

Alternatively, download FileZilla and put in your login details there. Locate your files and edit (This is a simpler way). Don't forget to backup

Newbie

Posts

Joined
Mon Dec 05, 2011 5:25 pm
Who is online

Users browsing this forum: ggrant3 and 3 guests