Forums / General Questions / How do I eliminate the GV code box in the checkout?

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

Views: 630

Results 1 to 3 of 3
18 Apr 2011, 12:13 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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

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;
18 Apr 2011, 1:21 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

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

admin panel/ modules/ order total

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

19 Apr 2011, 6:09 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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