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;


Reply With Quote
