Page 1 of 1

[1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Fri Jun 10, 2011 7:03 am
by not_responding
Hi guys,

I may be missing something obvious, but I don't have/can't see an option for newsletter subscription for customers who use the Guest Checkout only. Version 1.5.0.3 installed today.

Is this an easy fix, or have I just overlooked something?

Thanks in advance

p.s. Superb job on 1.5 guys!

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Sat Jun 11, 2011 9:26 pm
by not_responding
Any clues? It must have been asked before - I just can't find the mod.

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Sat Jun 11, 2011 11:27 pm
by QNAP
I have even worse problem, my newsletter is not working at all. No matter how I choose to send it.
Order confirmation are working properly though and arrives after just a few seconds !!

Can anyone help with troubleshooting? I use OC 1.5.0.2

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Sat Jun 11, 2011 11:36 pm
by not_responding
Worse problem? Guess it's all relative ;)
Sorry to hear yours, but maybe it needs a separate thread? Maybe we can both get to the bottom of the issues without confusing them.

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Sun Jun 12, 2011 12:03 am
by Johnathan
The newsletter table in the database is tied to the customer table, so there's no way to track Guest Checkout subscriptions. For 1.4.x, Qphoria has an extension that lets anyone subscribe to the newsletter through a side module. You can take a look at it here:

http://theqdomain.com/ocstore/newsletter

It's not updated for 1.5.x yet, but probably will be sometime in the future.

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Sun Jun 12, 2011 4:57 am
by not_responding
Ok, understood. Thanks for the info.

Obviously Opencart collects the guest customers' emails, so I just need a simple way of giving them a checkbox for subscription - even if their email address would then need to be manually transferred to the customer email table? If that makes sense?!

Hope someone can help and thanks in advance.

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Mon Jun 13, 2011 7:48 pm
by waseem
Can i have any free module like this ? for OC 1.4.x ?

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Mon Jun 13, 2011 9:07 pm
by Johnathan
No, there is no free version of a newsletter module.

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Mon Jun 25, 2012 1:14 am
by MaxTech
Hi guys,

Just added in sign-up for newsletter option on Guest checkout.

In your CUSTOM template directory copy across the checkout/guest.tpl file and around line 68, just before:

Code: Select all

<?php if ($shipping_address) { ?>
add in:

Code: Select all

  <input type="checkbox" name="newsletter" value="1" id="newsletter" />
  <label for="newsletter">I wish to subscribe to the <?php echo $this->config->get('config_name'); ?> newsletter.</label>
  <br />
That's it . . . should work fine, don't think anything else is required ;)
--- now to work out how to put these code snippets into VQmods so they can be used . . . . more research required.
Hope it helps, Max

Re: [1.5.0.3] Newsletter Subscribe for Guest Checkout

Posted: Fri Nov 23, 2012 8:07 pm
by zigzagad
MaxTech wrote:Hi guys,

Just added in sign-up for newsletter option on Guest checkout.

In your CUSTOM template directory copy across the checkout/guest.tpl file and around line 68, just before:

Code: Select all

<?php if ($shipping_address) { ?>
add in:

Code: Select all

  <input type="checkbox" name="newsletter" value="1" id="newsletter" />
  <label for="newsletter">I wish to subscribe to the <?php echo $this->config->get('config_name'); ?> newsletter.</label>
  <br />
That's it . . . should work fine, don't think anything else is required ;)
--- now to work out how to put these code snippets into VQmods so they can be used . . . . more research required.
Hope it helps, Max
I don't think this will work because the 'order' table of the database doesn't have a field for 'newsletter' as the 'customer' table does.

I'm actually trying to integrate the Guest checkout with Campaign Monitor API, using the above code in checkout/guest.tpl does anyone know how I'd get the value of 'newsletter' in model/checkout/order.php ?