Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Opt out not in


mes

Recommended Posts

Posted

I think newsletters are a good way to send people information about new products, special offers etc. The trouble is no users sign up to this, I would like to set it so that people have to check a box to not recieve the newsletters rather than the other way round.

 

Is this an easy thing to change? and would you reccomend this change.

 

cheers guys,

 

mes

Posted
I think newsletters are a good way to send people information about new products, special offers etc. The trouble is no users sign up to this, I would like to set it so that people have to check a box to not recieve the newsletters rather than the other way round.

 

Is this an easy thing to change? and would you reccomend this change.

 

cheers guys,

 

mes

 

 

function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {

Treasurer MFC

Posted

Is this in create_account.php cant seem to find it?

 

cheers

 

mes

Posted
Is this in create_account.php cant seem to find it?

 

cheers

 

mes

 

no, that is the function header telling you what the options are.

 

in create_account :

 

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1', true) . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>

 

notice the true parameter.

Treasurer MFC

Posted
I think newsletters are a good way to send people information about new products, special offers etc. The trouble is no users sign up to this

Maybe they don't share your enthusiasm ?!

 

I would like to set it so that people have to check a box to not recieve the newsletters rather than the other way round.

That's right - if they don't want your newsletter voluntarily then bloody well make them ! Or at best, piss them off.

 

Rich.

Posted

The box is set to unsubscribe as default as by law in the uk a user has to opt in.

 

I am not sure about other countries.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

I have it this way around, where you have to unsubscribe.

ps: I didn't know about the unsubscribe law as pointed out by Sparky :thumbsup:

 

 

In your language.php file

 

define('ENTRY_NEWSLETTER', 'Please check the box if you do not want to receive our newsletter');
define('ENTRY_NEWSLETTER_TEXT', '');
define('ENTRY_NEWSLETTER_YES', 'Unsubscribed');
define('ENTRY_NEWSLETTER_NO', 'Subscribed');

 

In your create_account.php

change false to true (around line 50)

 

      $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);
   } else {
     $newsletter = true;

 

so if no input it's true.

 

I am no php expert, but this appears to work for me.

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...