Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Remove Discount Coupon field from view - but retain function

    Hi......
    I'm attempting to use the Discount Coupon function to track orders placed by Sales Reps on my site. I have had a change made to the ot_coupon.php file to pre-populate the coupon field at checkout with an identifier for the Sales Rep.
    I want the full Coupon functionality to remain in the code, but I want to completely remove the Discount coupon field from view on the Payment Information Page.
    I suspect it can be done with CSS - but I'm not sure where to start.
    Any suggestions?
    Also, if I set the Coupon value to $0.01, a record is kept of those coupon transactions in admin. If I set the value to $0.00, the coupon functionality is retained, but no record is kept. Is there a simple change in code that will allow me to track zero value coupon transactions?
    Thanks

  2. #2
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: Remove Discount Coupon field from view - but retain function

    Try this:

    In your admin, go to configuration, define page status, then input 3 (Link OFF/Text OFF) under Define Discount Coupon.

    This removes the Discount Coupon from the main page sidebox.

  3. #3
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Remove Discount Coupon field from view - but retain function

    Thanks Decostyle.... but I'm not using the Discount Coupon in the Sidebox.
    I have the Discount Coupon field pre-populated with an identifier for Sales Reps placing an order. I would like to retain the functionality of the Discount Coupon, but I want the process to take place in the 'background' - I just want to hide reference to the Discount Coupon in the center column during the checkout process.
    So, on the 'Step 2 of 3 - Payment Information' page I want to hide the whole 'Discount Coupon' Box from visibility. In the best of all worlds, I would also like to have the 'Discount Coupon' line in the 'Your Total' Box also be invisible.
    .......and is there a change I can make in the code to retain data for a report if I set the value of the Discount Coupon at $0.00?

  4. #4
    Join Date
    Mar 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Remove Discount Coupon field from view - but retain function

    I was having the very same dilemma and found a solution :)

    To only show the coupon code field for specific customers:

    1. Give them a specific link that contains a promotion variable

    ex. http://yoursite.com/index.php?promo=1234

    2. Set a session variable in the header template
    <?php

    if ($_GET["promo"]=="1234") {
    $_SESSION['promo']=1;
    }

    ?>


    3.On the checkout page where your coupon code would typically show, hide the coupon code form if the promo session variable is not set - do something like this:


    <?php

    if(isset($_SESSION['promo'])) {

    echo "<fieldset class='checkout'id='checkoutCoupons' onChange='updateForm()'>";

    }else{

    echo "<fieldset class='checkout' id='checkoutCoupons' style='display:none;' onChange='updateForm()'>";

    }

    ?>

  5. #5
    Join Date
    Dec 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Remove Discount Coupon field from view - but retain function

    Hi, this bit of code seem just what I need, but I can't figure out which file to put it and where in the file. Could you help?

 

 

Similar Threads

  1. v139h Remove/Hide Discount Coupon Code from Order Confirmation Emails
    By emovendo in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 31 Jul 2012, 07:49 PM
  2. Remove the remnant of Discount Coupon from checkout
    By silverwoman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Aug 2009, 12:37 AM
  3. Replies: 1
    Last Post: 11 Jul 2008, 08:05 AM
  4. Replies: 0
    Last Post: 3 Apr 2008, 08:16 PM
  5. Remove 'Discount Coupon' from Payment Information page
    By warstormer in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Mar 2008, 07:09 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