Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2009
    Location
    Crystal Lake, IL
    Posts
    50
    Plugin Contributions
    0

    Default sale for new-customers only?

    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

  2. #2
    Join Date
    Jul 2009
    Location
    Crystal Lake, IL
    Posts
    50
    Plugin Contributions
    0

    Default Re: sale for new-customers only?

    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: sale for new-customers only?


  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: sale for new-customers only?

    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!

  5. #5
    Join Date
    Jul 2009
    Location
    Crystal Lake, IL
    Posts
    50
    Plugin Contributions
    0

    Default Re: sale for new-customers only?

    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.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: sale for new-customers only?

    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
    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 $
     */
    
      // 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);
     }
    ?>
    /includes/templates/your_template_dir/sideboxes/tpl_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 $
     */
    
      $content = '';
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
      $content .= zen_image(DIR_WS_TEMPLATE_IMAGES . 'my_coupon.gif');
      $content .= '</div>';
    The image my_coupon.gif would then go into:
    /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!

  7. #7
    Join Date
    Jul 2009
    Location
    Crystal Lake, IL
    Posts
    50
    Plugin Contributions
    0

    Default Re: sale for new-customers only?

    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

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: sale for new-customers only?

    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!

  9. #9
    Join Date
    Jul 2009
    Location
    Crystal Lake, IL
    Posts
    50
    Plugin Contributions
    0

    Default Re: sale for new-customers only?

    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

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: sale for new-customers only?

    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can I let customers post items for sale?
    By Charlie57 in forum General Questions
    Replies: 3
    Last Post: 4 Feb 2012, 06:38 PM
  2. Sale for items only > $20
    By Beau91324 in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 18 Oct 2011, 07:58 PM
  3. sale made by zen for only new products
    By Aqua in forum Setting Up Specials and SaleMaker
    Replies: 4
    Last Post: 8 Apr 2009, 07:43 PM
  4. auth only vs. final sale for PayPal
    By jwitt98 in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 3 Apr 2009, 01:56 AM
  5. Do not want sale pricing for wholesale customers
    By skinnyskinny in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 7 Dec 2008, 04:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR