Re: Newsletter Subscriber Discount
Quote:
Originally Posted by
swguy
The Newsletter Subscriber Discount -
That Software Guy
swguy what a great mod - LOVE IT!!
Please help me - I have added this code where I want it displayed (marketing) (Contact us, Product info, and main page) and it is working fine but for some reason it won't show up on the registration page when I add it to "tpl_modules_create_account.php"
I am using Zen Cart 1.3.8a
PHP Code:
<?php
$value = "ot_newsletter_discount.php";
include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include_once(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_newsletter_discount();
echo '<div class="content" id="discountPolicy">';
echo $discount->get_html_policy();
echo '<br /></div>';
?>
Re: Newsletter Subscriber Discount
I would have to debug it for you on your site. It's really difficult for me to know what's going with an installation on based on a report on the forum.
Re: Newsletter Subscriber Discount
Quote:
Originally Posted by
chrisnix
Have installed on v1.3.7 and all appeared ok, but I have discovered that the discount is being aplied to ALL registered customers regardless of whether they are a subscribers or not?
I am using the native newsletter module within zencart v1.3.7.
Any tlps / pointers appreciated.
Thanks in advance
Chris
http://ineedthat.co.uk
:lookaroun Hi
Software guy to the rescue
I use zencart v1.3.8a and having the same problem, coupon is given to everyone - even to people who don't register newsletter.
Don't use mailchamp.
Julie
Re: Newsletter Subscriber Discount
Actualy it was no connection between the problem and this mod from the software guy
As usual when I don't find a solution for my new zen cart store (new zenner) I solve it myself.
It was in the fast_and_easy_checkout 1.6.2 in the includes/modules/TEMPLATE_NAME/ create_account.php file
There is this row $newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true); now for me it was set to true.
Later in the code it says
if (isset($_POST['newsletter'])) {
$newsletter = zen_db_prepare_input($_POST['newsletter']);
}
so baiscly if customer didn't checked the box it doesn't enter the If condition, and use the default which is funny to be true
I changed it to
Configuration -> Customer Details -> Show Newsletter Checkbox to 1= Display Unchecked
So it will start from false and if customer subscribed then it will be true.
And also changed the text of "Subscribe to Our Newsletter" to be more attractive
Re: Newsletter Subscriber Discount
did anyone every modify this to offer a $amount off reather than a percentage, it would also be good if the news letter discount can be limited to the first 100 people taking up the offer
Re: Newsletter Subscriber Discount
Hi swguy
thanks for all these great mods & all your wonderful info :) I'm in the process of installing this one. From your 'read me' installation instructions, could you please explain step 4 further?
4. If you have an "about us" page or some other page that describes your policies, you can dynamically build a section describing your discounting policies with this code:
<?php
$value = "ot_newsletter_discount.php";
include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include_once(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_newsletter_discount();
echo '<div class="content" id="discountPolicy">';
echo $discount->get_html_policy();
echo '<br /></div>';
?>
Are you referring to the About_Us mod? or just the define pages editor sidebox link "About Us"? What do you mean by 'dynamically build'? What does the code actually 'do'? (sorry if this is really 'obvious' to everyone but me, but I'd love to learn more.)
Thank you so much:smile:
Re: Newsletter Subscriber Discount
Yes, I was referring to the about us mod. This code reaches into the Newsletter Discount mod and displays information in your about us page about the fact that you have a discount for newsletter subscribers.
Re: Newsletter Subscriber Discount
Ah - thank you; you've cleared that up for me:smile:
So - what file (in About_us) would the code be inserted into?
Again - many thanks for your time.:hug:
Re: Newsletter Subscriber Discount
The about us template file.
./includes/templates/YOUR TEMPLATE/templates/tpl_about_us_default.php
Re: Newsletter Subscriber Discount