Page 2 of 2 FirstFirst 12
Results 11 to 20 of 416

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Optional Shipping Insurance Module Support Thread...

    Quote Originally Posted by Jeffey View Post
    Sorry, no link-local work right now.

    Does not show as option on checkout (would prefer it to be mandatory/added in by the way).

    Only thing to tell me it's there right now is the Admin item that appears to be fine.

    Because of that I don't even know where to start!

    Thanks for quick reply and any suggestions you might have.
    First off, make sure all of the files are uploaded.

    Secondly, what is the sort order of the mod under "modules", "order total".

    To do the mandatory, follow these instructions here:
    http://www.zen-cart.com/forum/showpo...4&postcount=20

    (of course we'll have to get it showing up first)

  2. #2
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    286
    Plugin Contributions
    0

    Default Re: Optional Shipping Insurance Module Support Thread...

    I tried this coding (below) as indicated and it moved the check box from the right to the left, but my text is below the check box. The text is also appearing in a column about 1/3 the width of the shipping insurance box. What else can I try to fix this?

    Quote Originally Posted by jettrue View Post
    Hi there,

    OK, to do this, open up includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.

    Around line 91, you'll see this section:
    Code:
    <fieldset>
    <legend><?php echo $selection[$i]['module']; ?></legend>
    <?php echo $selection[$i]['redeem_instructions']; ?>
    <div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
    <label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
    <?php echo $selection[$i]['fields'][$j]['field']; ?>
    </fieldset>
    Replace it with this:
    Code:
    <fieldset>
    <legend><?php echo $selection[$i]['module']; ?></legend>
    <?php echo $selection[$i]['redeem_instructions']; ?>
    <div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
    <?php echo $selection[$i]['fields'][$j]['field']; ?>
    <label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
    <div class="clearBoth"></div>
    </fieldset>

  3. #3
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Optional Shipping Insurance Module Support Thread...

    Quote Originally Posted by gizmo_girl View Post
    I tried this coding (below) as indicated and it moved the check box from the right to the left, but my text is below the check box. The text is also appearing in a column about 1/3 the width of the shipping insurance box. What else can I try to fix this?
    It looks like you got the checkbox working.

    Try adding this to your css:

    Code:
    html>/**/body input[type=checkbox], html>/**/body input[type=radio] {
    	float:left;
    	clear:both;
    	}
    	
    html>/**/body .checkboxLabel, html>/**/body .radioButtonLabel {
    	margin:0 .2em .5em 0;
    	float:left;
    	}
    and then replace:
    Code:
    LABEL.inputLabel {
    	width:9em;
    	float:left;
    	}
    with

    Code:
    LABEL.inputLabel {
    	width:85%;
    	float:left;
    	margin:0.3em 0;
    	}

  4. #4
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    286
    Plugin Contributions
    0

    Default Re: Optional Shipping Insurance Module Support Thread...

    Beautiful! THANK YOU!!! :-)

    Is there a way to add some bold text in that line? I like it to say something like:
    Click here for optional shipping insurance.
    We strongly recommend purchasing insurance on breakable items.

    Also wondering how you would do line breaks, so it appears just like above. Sorry to ask so many questions, but obviously I'm quite new at this.

    Thanks again for the fix, it looks great now! :-))

  5. #5
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: Optional Shipping Insurance Module Support Thread...

    Quote Originally Posted by gizmo_girl View Post
    Beautiful! THANK YOU!!! :-)

    Is there a way to add some bold text in that line? I like it to say something like:
    Click here for optional shipping insurance.
    We strongly recommend purchasing insurance on breakable items.

    Also wondering how you would do line breaks, so it appears just like above. Sorry to ask so many questions, but obviously I'm quite new at this.

    Thanks again for the fix, it looks great now! :-))
    This might be the wrong way (???), but I added text to mine like this...

    In includes/languages/english/modules/order_total/ot_insurance.php

    Code:
    define('MODULE_ORDER_TOTAL_INSURANCE_TEXT_ENTER_CODE', '<b>We strongly recommend purchasing insurance on breakable items</b><br><br>Click here to add optional insurance to your order:');
    Maybe there's a better way, but this works fine for me!

  6. #6
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    286
    Plugin Contributions
    0

    Default Re: Optional Shipping Insurance Module Support Thread...

    Thanks for the wonderfully easy fix! I wasn't sure if HTML tags would work the same in these files. Thank you so much!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Optional Shipping Insurance Module Question
    By kminnich in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Oct 2008, 01:16 AM
  2. Optional Shipping Insurance Module
    By Darkwander in forum Addon Shipping Modules
    Replies: 2
    Last Post: 9 Oct 2006, 02:18 AM

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