Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    Neenah, WI
    Posts
    112
    Plugin Contributions
    0

    help question Commenting Out "Discount Coupons" text in Information Sidebox

    Hello,

    Would anyone be kind enough to guide me in commenting out the "Discount Coupons" text in the Information sidebox. I'd like to keep the Coupons module installed but at the same time remove the link so that customers can only input their code during the order process.

    Thanks,
    Brad

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Commenting Out "Discount Coupons" text in Information Sidebox

    Comment out or delete this section from an override copy of includes/modules/sideboxes/information.php
    Code:
      // only show Discount Coupon FAQ when installed
      if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
        $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
      }
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Sep 2007
    Location
    Neenah, WI
    Posts
    112
    Plugin Contributions
    0

    Default Re: Commenting Out "Discount Coupons" text in Information Sidebox

    I found that section of code, but I don't know what symbols to use to actually comment out the line of code. I use Notepad++ for my html editor and usually when something is successfully commented out the entire text will turn green. I used "<!--" and "-->" but that didn't change the text color so I'm thinking it wasn't commented out.

    I also tried using double forward slashes (//) but that makes the entire page disappear.

    Brad

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Commenting Out "Discount Coupons" text in Information Sidebox

    like this
    Code:
     
    /*
      // only show Discount Coupon FAQ when installed
      if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
        $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
      }
    */
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Sep 2007
    Location
    Neenah, WI
    Posts
    112
    Plugin Contributions
    0

    help question Re: Commenting Out "Discount Coupons" text in Information Sidebox

    Thanks for your help Neville. That worked great!

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

    Default Re: Commenting Out "Discount Coupons" text in Information Sidebox

    Note: the Discount Coupon link is only there to "Look-Up" a Discount Coupon ...

    Actually adding the Discount Coupon is done during the checkout on the checkout_payment page ...
    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!]
    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!

 

 

Similar Threads

  1. "information" text --hiding out in additional images code
    By phillycheese123 in forum General Questions
    Replies: 3
    Last Post: 22 Aug 2012, 03:24 PM
  2. Replies: 26
    Last Post: 19 Feb 2010, 02:56 AM
  3. Trouble understanding "1st Discount Coupon" and "New Signup" discount
    By STFlats in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Aug 2008, 10:04 PM
  4. Replies: 5
    Last Post: 3 Dec 2007, 03:27 PM
  5. Adding "FAQ" in "Information" Sidebox
    By kevnj in forum Basic Configuration
    Replies: 1
    Last Post: 7 Jul 2006, 11:16 AM

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