I am getting newsletters in CS Cart to send but I would like my customers to have the choice to unsubcribe if they want to. It would be fantastic if the customer could follow a link on the newsletter and the system automatically removes them from the list…is this possible at all??
Please Help.
Jenn
www.textstyles.co.uk
Hi Jenn,
Here are the instructions -
[URL=“http://vb.cs-cart.com/showthread.php?t=2229”]http://vb.cs-cart.com/showthread.php?t=2229[/URL]
Thanks Luthien, I have done half of it and got stuck with the second half…
This bit I have done ok…
--------------------------------------------------------------------------------
Hi,
Here are instructions from csc support:
In order to add unsubscribe link to your newsletter, please modify the “newsletter_body.tpl” file located in the “skins/[CUSTOMER_SKIN]/mail/addons/news_and_emails” directory of your CS-Cart installation. And add there the following part of code:
Code:
{$lang.text_unsubscribe_instructions}
{$http_location}/{$customer_index}?{$target_name}=news&{$mode_name}=unsubscribe&key={$unsubscribe_key}
below this one:
Code:
{include file=“letter_header.tpl”}
{$body}
Save the file.
*********************************************************
Then I cannot find the Newsletter.php??
-------------------->>>>>
The language variable that is used for the unsubscribe text is “text_unsubscribe_instructions”. You are able to change it on the “Languages” page(the link to this page you can find in the “Administration” sidebox on the right of your back-end).
Also please modify the “newsletters.php” file located in the “/addons/news_and_emails/include/admin” directory of your CS-Cart location and add there the following part of code:
Code:
$unsubscribe_key = db_get_field(“SELECT unsubscribe_key FROM $db_tables[site_subscribers] WHERE email=‘$eml’”);
$smarty_mail->assign(‘unsubscribe_key’, $unsubscribe_key);
above this one:
Code:
$smarty_mail->assign(‘subj’, $nl_data[$lang_code][‘newsletter’]);
$smarty_mail->assign(‘body’, $nl_data[$lang_code][‘body_html’]);
Save the file and check it.
Any ideas???
Sorry
Sorry … update I have managed the changing the text in the ‘Languages’
I need to locate the “newsletters.php” file which is located in “/addons/news_and_emails/include/admin”
But what is the first part to the above directory??
I understand the other one and found it no problem…
“skins/[CUSTOMER_SKIN]/mail/addons/news_and_emails”
Please can someone help
Jenn
Hi Jenn,
You won’t find php files in the skins directories - these are tpl files only. To edit a php file you need an ftp program and a php editor program. Is this the part you are unsrue about?