Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default How do I eliminate the GV code box in the checkout?

    We're finding some users are confused by the GV redemption code box on the checkout page (I can explain if you'd like), so I'd like to eliminate/hide that.

    I think I've found the piece of code that creates the box in:

    store/includes/modules/order_total/ot_gv.php

    It appears to be the section below. My question - how do I edit this so that just the box to enter the GV code is eliminated? I've tried all kinds of variations, none of which work -- either the box continues to appear, or the page breaks.

    Thanks,

    John

    Code:
    function credit_selection() {
        global $db, $currencies;
        $gv_query = $db->Execute("select coupon_id from " . TABLE_COUPONS . " where coupon_type = 'G' and coupon_active='Y'");
        // checks to see if any GVs are in the system and active or if the current customer has any GV balance
        if ($gv_query->RecordCount() > 0 || $this->use_credit_amount()) {
          $selection = array('id' => $this->code,
                             'module' => $this->title,
                             'redeem_instructions' => MODULE_ORDER_TOTAL_GV_REDEEM_INSTRUCTIONS,
                             'checkbox' => $this->use_credit_amount(),
                             'fields' =>array(array('title' => 
          
                             MODULE_ORDER_TOTAL_GV_TEXT_ENTER_CODE,
                             'field' => zen_draw_input_field('gv_redeem_code', '', 'id="disc-'.$this->code.'" onkeyup="submitFunction(0,0)"'),
                             'tag' => 'disc-'.$this->code
                             )));
    
        }
        return $selection;

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: How do I eliminate the GV code box in the checkout?

    admin panel/ modules/ order total

  3. #3
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: How do I eliminate the GV code box in the checkout?

    Thanks for the tip. I tried that, but couldn't see any option for controlling which fields appear in the GV section of the checkout process. The only option seemed to be to uninstall or disable the module entirely, which I'm assuming I don't want.

    John

 

 

Similar Threads

  1. Replies: 3
    Last Post: 17 Nov 2013, 12:11 AM
  2. How do I change the color on the checkout box on......
    By lrfowler in forum General Questions
    Replies: 2
    Last Post: 7 Jan 2013, 06:51 AM
  3. How to have discount code field appear before the checkout?
    By thisismyusername in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 25
    Last Post: 7 Apr 2011, 04:57 AM
  4. How to eliminate a strange letter at the corner of the column???
    By fancywx in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 Apr 2008, 05:46 AM
  5. Replies: 5
    Last Post: 18 Mar 2007, 06:40 PM

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