osCmax v2.5 User Manual
Results 1 to 2 of 2

Reformat the GV/Discount Coupon Code Redemption

This is a discussion on Reformat the GV/Discount Coupon Code Redemption within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'd like to reformat the GV/Discount Coupon redemption area on the checkout_payment page so that it looks slightly different from ...

      
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    49
    Rep Power
    0


    Default Reformat the GV/Discount Coupon Code Redemption

    I'd like to reformat the GV/Discount Coupon redemption area on the checkout_payment page so that it looks slightly different from the rest of the page (basically give it a different background color). However, I've not had any luck changing any of the code in checkout_payment.tpl.php OR ot_coupon.php OR stylesheet.css.

    Any idea where the styles for that area can be changed?

    Thanks so much!

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Reformat the GV/Discount Coupon Code Redemption

    The little bit of HTML for the coupon code request box in payment section is in ot_coupon.php file. The CSS class is main - but can add/change that to whatever you want in your CSS...

    PHP Code:
    function credit_selection() {
      global 
    $customer_id$currencies$language;
      
    $selection_string '';
      
    $selection_string .= '<tr>' "n";
      
    $selection_string .= ' <td width="10">' tep_draw_separator('pixel_trans.gif''10''1') .'</td>';
      
    $selection_string .= ' <td class="main">' "n";
      
    $image_submit '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' DIR_WS_LANGUAGES $language '/images/buttons/button_redeem.gif" border="0" alt="' IMAGE_REDEEM_VOUCHER '" title = "' IMAGE_REDEEM_VOUCHER '">';
      
    $selection_string .= TEXT_ENTER_COUPON_CODE tep_draw_input_field('gv_redeem_code') . '</td>';
      
    $selection_string .= ' <td align="right">' $image_submit '</td>';
      
    $selection_string .= ' <td width="10">' tep_draw_separator('pixel_trans.gif''10''1') . '</td>';
      
    $selection_string .= '</tr>' "n";
      return 
    $selection_string;

    Change to say:
    PHP Code:
    function credit_selection() {
      global 
    $customer_id$currencies$language;
      
    $selection_string '';
      
    $selection_string .= '<tr>' "n";
      
    $selection_string .= ' <td width="10">' tep_draw_separator('pixel_trans.gif''10''1') .'</td>';
      
    $selection_string .= ' <td class="ot_coupon">' "n";
      
    $image_submit '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' DIR_WS_LANGUAGES $language '/images/buttons/button_redeem.gif" border="0" alt="' IMAGE_REDEEM_VOUCHER '" title = "' IMAGE_REDEEM_VOUCHER '">';
      
    $selection_string .= TEXT_ENTER_COUPON_CODE tep_draw_input_field('gv_redeem_code') . '</td>';
      
    $selection_string .= ' <td align="right">' $image_submit '</td>';
      
    $selection_string .= ' <td width="10">' tep_draw_separator('pixel_trans.gif''10''1') . '</td>';
      
    $selection_string .= '</tr>' "n";
      return 
    $selection_string;

    then add listin in your CSS for ot_coupon
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. no where to enter Discount Coupon Code
    By jdavis in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 07-09-2007, 07:59 PM
  2. Discount Coupon Codes
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-11-2007, 06:11 AM
  3. Discount Coupon and Authorize.net - NOT PULLING DISCOUNT...
    By irwin04 in forum osCMax v1.7 General Mods Discussion
    Replies: 5
    Last Post: 03-07-2005, 05:59 PM
  4. request: change Welcome Discount Coupon Code -> Coupon ID
    By kodersoftware in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 11-13-2004, 12:34 PM
  5. please help with discount coupon and authorize.net
    By fridgemags in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 08-26-2004, 02:23 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
  •