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

Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

This is a discussion on Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm looking for the table code for the "Gift Vouchers/Discount Coupons" displayed in Payment Options. It isn't written into checkout_payment.tpl.php ...

      
  1. #1
    New Member
    Join Date
    Nov 2008
    Posts
    6
    Rep Power
    0


    Default Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    I'm looking for the table code for the "Gift Vouchers/Discount Coupons" displayed in Payment Options. It isn't written into checkout_payment.tpl.php - only this:

    <?php
    echo $order_total_modules->credit_selection();//ICW ADDED FOR CREDIT CLASS SYSTEM
    ?>

    I've checked most of the order total module files but they don't appear to include any template configurations.

  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: Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    Not sure what you want to do here. Most of what is displayed for "Gift Vouchers/Discount Coupons" follows standard CSS and is dynammically pulled and displayed as needed.
    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!

  3. #3
    New Member
    Join Date
    Nov 2008
    Posts
    6
    Rep Power
    0


    Default Re: Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    Here is a screen-shot of my Payment Options page. I'm fussy about detail and like to be able to tweak the layout, add and subtract info as needs be. I want to know where the html is that displays the "Credits Available" table. As well as the input field, checkbox and redeem button, the table contains the following class: onmouseover="rowOverEffect(this)" for the rollover on Gift Vouchers/Discount Coupons and there are td elements positioning everything within the table. It is not written into checkout_payment.tpl.php.
    Attached Images Attached Images
    Last edited by princeofpalms; 11-18-2008 at 12:32 AM.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    This should clue you in to the order_total modules:
    PHP Code:
    echo $order_total_modules->credit_selection(); 

    And here it is - /includes/modules/order_total/ot_coupon.php:

    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;

    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Aug 2009
    Posts
    19
    Rep Power
    0


    Default Re: Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    Hi Mike,

    I would like to edit the Text for "Gift Vouchers & Coupons" and remove <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" >

    I've checked the " echo $order_total_modules->credit_selection();" in ot_coupon.php, but I can't find the corresponding "Text" which contain <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" >

    Would you please tell me where can I find the corresponding file?

    Many thanks,
    Gman


  6. #6
    New Member
    Join Date
    Aug 2009
    Posts
    19
    Rep Power
    0


    Default Re: Gift Vouchers/Discount Coupons display on checkout_payment.tpl.php

    Hi there,

    I know the answer, we just need to change the stylesheet.css for moduleRow.

    Thanks for your help.
    Gary

Similar Threads

  1. Gift Voucher (GV) and Discount Coupons (DC) for RC1, RC2, RC2a
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-21-2008, 05:11 AM
  2. Gift Voucher (GV) and Discount Coupons (DC) for RC1, RC2, RC2a
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-17-2008, 03:18 AM
  3. Gift Voucher (GV) and Discount Coupons (DC) for RC1, RC2, RC2a
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-15-2008, 08:13 AM
  4. Replies: 1
    Last Post: 09-07-2007, 05:52 AM
  5. gift vouchers - double discount?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-18-2004, 10:04 AM

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
  •