Post by Lestat1188 » Fri Oct 02, 2020 6:35 am

[Moderator]: moved topic to correct Forum.
Former thread: viewtopic.php?p=800976#p800976

I don't know if MTGS still has the issue, but I recently bumped into the exact same issue. I was able to delete the newsletter checkbox from the registration form and now I'm left with the one on the checkout page.
I use the latest version of Opencart. Journal 3 theme.

I tried:
OSWorX wrote:
Sat Sep 24, 2016 10:14 pm
Simply open the file
catalog/view/theme/journal2/template/journal2/checkout/checkout.tpl
and search for this section starting with:

Code: Select all

<?php if ($entry_newsletter): ?>
But this should be able to disable in the backend ...
but it appears that in that file there is no line regarding "newsletter".

However, I went into:
catalog/controller/journal3/checkout.php
and "disabled" the line 230:

Code: Select all

'newsletter'      => $newsletter,
with a "#".

So it looks like this:

Code: Select all

#	'newsletter'      => $newsletter,
I don't actually know what I'm doing because I'm a total newbie, but it seemed to work without displaying an error on the website (as it did when i tried opting out other parts of the code :bang:
Please let me know if opting out that line can have a bad outcome, like errors and such, but oh well, it seems to work :banana:

Newbie

Posts

Joined
Fri Sep 25, 2020 9:16 pm

Post by paulfeakins » Fri Oct 02, 2020 6:16 pm

Lestat1188 wrote:
Fri Oct 02, 2020 6:35 am
I use the latest version of Opencart. Journal 3 theme.
https://support.journal-theme.com/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Gordo111 » Wed Oct 07, 2020 2:54 pm

Lestat1188 wrote:
Fri Oct 02, 2020 6:35 am
[Moderator]: moved topic to correct Forum.
Former thread: viewtopic.php?p=800976#p800976

I don't know if MTGS still has the issue, but I recently bumped into the exact same issue. I was able to delete the newsletter checkbox from the registration form and now I'm left with the one on the checkout page.
I use the latest version of Opencart. Journal 3 theme.

I tried:
OSWorX wrote:
Sat Sep 24, 2016 10:14 pm
Simply open the file
catalog/view/theme/journal2/template/journal2/checkout/checkout.tpl
and search for this section starting with:

Code: Select all

<?php if ($entry_newsletter): ?>
But this should be able to disable in the backend ...
but it appears that in that file there is no line regarding "newsletter".

However, I went into:
catalog/controller/journal3/checkout.php
and "disabled" the line 230:

Code: Select all

'newsletter'      => $newsletter,
with a "#".

So it looks like this:

Code: Select all

#	'newsletter'      => $newsletter,
I don't actually know what I'm doing because I'm a total newbie, but it seemed to work without displaying an error on the website (as it did when i tried opting out other parts of the code :bang:
Please let me know if opting out that line can have a bad outcome, like errors and such, but oh well, it seems to work :banana:
You're making this a load more difficult than you need to.

You can turn all of the newsletters on or off in the admin area, no need to play about with code and risk wrecking something you'll need later.

Go to:
Navigation -> Journal -> Layouts (select the page you want the pop up/newsletter i.e Home, Checkout, Product etc.) -> Top right is a purple button "Special Modules"

Simply turn on/off the popup there and you're done. It's really that easy.

Hope this helps.

New member

Posts

Joined
Wed May 06, 2020 11:59 pm
Who is online

Users browsing this forum: No registered users and 2 guests