Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    457
    Plugin Contributions
    0

    Default A free gift question?

    Hi, is it possible to have a free gift added to the order when a person spends over a certain amount of money?

    Rob

  2. #2
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    457
    Plugin Contributions
    0

    Default Re: A free gift question?

    or adding another line on the order totals, i can set this to £0.00 just so they can see they are getting a free gift with each order

    Rob

  3. #3
    Join Date
    Aug 2007
    Posts
    46
    Plugin Contributions
    0

    Default Re: A free gift question?

    Hello,

    You can create a coupon with a reduction of 0.0001 (if you enter 0 the coupon will not be displayed).

    But this is not a really good solution because on the invoice the customer read :

    coupon : CODE_COUPON -0.00

    And I'd like to see :

    Coupon : CODE_COUPON (COUPON DESC) -0.00

    So that you can explain in coupon description that you are offering a gift for free.

    Can someone suggest the code to display "coupon description" on the invoice.

    Moreover, the best solution will be to :
    - add a line in the cart with the article
    - redeem the total with the price of the item
    - So decrease stock of this item

    A future mod for anybody with good development skills

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: A free gift question?

    Response by PM.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Oct 2007
    Location
    Austin, TX
    Posts
    2
    Plugin Contributions
    0

    Default Re: A free gift question?

    This is how I did it, it may not be 100% compatible and I would welcome anyone's criticism, but it works for me.

    edit includes/modules/order_total/ot_coupon.php

    After this code:
    PHP Code:
    if ($od_amount['type'] == 'S'$order->info['shipping_cost'] = 0;
          
    $sql "select coupon_code from " TABLE_COUPONS " where coupon_id = '" . (int)$_SESSION['cc_id'] . "'";
          
    $zq_coupon_code $db->Execute($sql);
          
    $this->coupon_code $zq_coupon_code->fields['coupon_code']; 
    Enter:
    PHP Code:
    // bof edit to show coupon description
          
    $coupon_desc_query "select coupon_description from " TABLE_COUPONS_DESCRIPTION " where coupon_id = '" . (int)$_SESSION['cc_id'] . "'";
          
    $coupon_code_exec $db->Execute($coupon_desc_query);
          
    $this->coupon_desc $coupon_code_exec->fields['coupon_description'];
          
    // eof edit to show coupon description 
    Then edit:
    PHP Code:
    $this->output[] = array('title' => $this->title ': ' '<a href="javascript:couponpopupWindow(\'' zen_href_link(FILENAME_POPUP_COUPON_HELP'cID=' $_SESSION['cc_id']) . '\')">' $this->coupon_code '</a> :',
                                  
    'text' => '-' $currencies->format($od_amount['total']),
                                  
    'value' => $od_amount['total']); 
    To:
    PHP Code:
          $this->output[] = array('title' => $this->title ': ' '<a href="javascript:couponpopupWindow(\'' zen_href_link(FILENAME_POPUP_COUPON_HELP'cID=' $_SESSION['cc_id']) . '\')">' $this->coupon_code '</a> (' $this->coupon_desc ') :',
                                  
    'text' => '-' $currencies->format($od_amount['total']),
                                  
    'value' => $od_amount['total']); 

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: A free gift question?

    Quote Originally Posted by RobWUK View Post
    Hi, is it possible to have a free gift added to the order when a person spends over a certain amount of money?

    Rob
    http://www.zen-cart.com/wiki/index.p..._World_Example
    explains how to achieve.

 

 

Similar Threads

  1. Free Gift
    By robbie269 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 3 Dec 2010, 04:55 AM
  2. Replies: 5
    Last Post: 10 Sep 2010, 01:50 AM
  3. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM
  4. Free gift
    By DragnSoul in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Jan 2007, 04:33 PM
  5. Question About The Free Gift Code from wiki
    By bobbyt in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jun 2006, 06:50 PM

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