Hi,
I would like to create a sale for all new customers. Something simple like 10% off everything for being a new customer. Is there a way that I can do this? Thanks in advance for your help.
-Matt
Hi,
I would like to create a sale for all new customers. Something simple like 10% off everything for being a new customer. Is there a way that I can do this? Thanks in advance for your help.
-Matt
Or, can I apply the the discount at the end to total purchase. Again only for first time customers though. I was thinking a coupon code that I send out in the welcome e-mail, but I don't think that will work.
Take a look here:
http://www.zen-cart.com/forum/showthread.php?t=92432
Another thought ...
I come to your site and create an account ... I am a first time customer ...
I come to your site and create an account ... but I go away and come back tomorrow ... am I still a First Time Customer?
I come back in a month, am I still a First Time Customer ... until I make my "First Order"?
You could make a sidebox, image or something ... with the Discount Coupon for First Time Customers that only shows for customers that are:
1 Logged in
2 Have never made an order
Seeing this might encourage the "First Order" ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you Stevesh. That is definitely one way of accomplishing what I want.
Ajeh, how would I go about creating a custom side box that only appears for customers that have not ordered yet? That seems like a real good idea too.
Thanks to both you for your help, I really appreciate it.
Sideboxes have two peices:
/includes/modules/sideboxes/something.php
/includes/templates/template_default/sideboxes/something.php
For your templates and overrides you would use:
/includes/modules/your_template_dir/sideboxes/something.php
/includes/templates/your_template_dir/sideboxes/something.php
A quick method is using an image that has your coupon code on it for first time customers, meaning they are logged in and have no orders ...
Example would be:
/includes/modules/your_template_dir/sideboxes/coupon_sidebox.php
/includes/templates/your_template_dir/sideboxes/tpl_coupon_sidebox.phpCode:<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: coupon_sidebox.php 2007-05-26 kuroi $ */ // test if box should display $show_coupon_sidebox = false; // not logged in hide box if ($_SESSION['customer_id'] > 0) { // check if first order exists global $db; $sql = "SELECT orders_id FROM " . TABLE_ORDERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "' LIMIT 1"; $chk_first_time = $db->Execute($sql); if ($chk_first_time->EOF) { // no orders show box $show_coupon_sidebox = true; } else { // found an order hide box $show_coupon_sidebox = false; } } else { $show_coupon_sidebox = false; } if ($show_coupon_sidebox == true) { require($template->get_template_dir('tpl_coupon_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_coupon_sidebox.php'); $title = BOX_HEADING_COUPON_SIDEBOX; $title_link = false; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); } ?>
The image my_coupon.gif would then go into:Code:<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: coupon_sidebox.php 2007-05-26 kuroi $ */ $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; $content .= zen_image(DIR_WS_TEMPLATE_IMAGES . 'my_coupon.gif'); $content .= '</div>';
/includes/templates/classic/images/my_coupon.gif
For the language file use:
/includes/languages/english/extra_definitions/your_template_dir/coupon_sidebox.php
Code:<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: coupon_sidebox.php 2007-05-26 kuroi $ */ define('BOX_HEADING_COUPON_SIDEBOX', 'First Time Customers!'); ?>
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I think I messed something up. I thought I followed your directions, but my sidebox is showing the coding. I tried just turning on coupon_sidebox, but then nothing shows up. When I turn on tpl_coupon_sidebox the coding shows up. I have temporarily left it on, so if you want to check it out, it is steelpanstore.com.
While typing this, I just thought about would guests see this sidebox? I am currently looking at my page as a guest, is that maybe why it is not showing up? If that is the problem, I think guests should be able to see the sidebox, don't you?
Thanks again for all your help, you are awesome!!
-Matt
To see the sidebox you have to be logged in and not have any orders ...
Check to ensure that you have the files in the right directories ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
So I went through I checked everything out, and didn't see any problems in what I copied or the directories that the files are in. When I create a test account to log in with no orders, my page basically disappears. The only thing that shows on the page is the sideboxes that are usually on the left.
These boxes are now centered and there is nothing else besides my header banner. Also, the coupon box I am trying to add in still doesn't show up. Is there any information I could give you that would help out more?
Thanks again for all your help, I am starting to feel like a nuisance.
-Matt
If you get the Debug Tool from the Free Software Add Ons that might help identify the problem ...
Sounds like space(s) or blank line(s) in one of your php files before or after the starting and/or closing php brackets ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks