Page 10 of 42 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 415
  1. #91
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    283
    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>

  2. #92
    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;
    	}

  3. #93
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    283
    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! :-))

  4. #94
    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!

  5. #95
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    283
    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!

  6. #96
    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
    Thanks for the wonderfully easy fix! I wasn't sure if HTML tags would work the same in these files. Thank you so much!
    No problem! Yes, you can even use the <img> tags in case you wanted something more glamorous.

  7. #97
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

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

    Old minor issue but looks like it can be done in this version:

    Can I use the USPS table rates for Non-U.S. zone and rates I plug in for UPS U.S. zone deliveries?

    I get it to work with US and UPS but how can I get the USPS table rates to take for the other zone only?

  8. #98
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

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

    Third in a row answering my own stuff, takes asking the question though!

    Didn't realize that Priority International, in my case, has pretty fixed insurance rates for most Countries (versus rates based on each Country) so I just put those in the zone indicator.

    Thank me for my help!

  9. #99
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    283
    Plugin Contributions
    0

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

    Quote Originally Posted by craftzombie View Post
    No problem! Yes, you can even use the <img> tags in case you wanted something more glamorous.
    Excellent...so I could add an image - something like a unique shipping insurance logo or something, right?

  10. #100
    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
    Excellent...so I could add an image - something like a unique shipping insurance logo or something, right?
    Yes, here is an example:

    Say for instance you have the Featured Products on your main page, but you want to use an image instead of just text for the heading. In includes/languages/your_template/english.php, you would find the Featured Products heading, which looks like this:

    define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    and you would replace the words Featured Products with your image, like this:

    define('TABLE_HEADING_FEATURED_PRODUCTS','<img src="includes/templates/your_template/images/featured.gif" alt="Featured Products">');

    You just replace the words with the image tags. Make sure you leave all of the quotation marks, apostrophes, etc. the way they were. So just highlight Featured Products with your mouse and replace that with your tags.

    Now in the case of a custom shipping insurance image...

    Say you want to add an image that says "Need Insurance?"

    you would open up includes/languages/english/modules/order_total/ot_insurance.php and add your image there. This is what mine looks like when I added said image with the other info I have there:

    define('MODULE_ORDER_TOTAL_INSURANCE_TEXT_ENTER_CODE', '<img src="includes/templates/my_template/images/insurance.gif"><br><br>We use the standard USPS insurance rates. <a href="http://www.mysite.com/shop/index.php?main_page=insurance_rates">see rates</a><br><br>Click here to add optional insurance to your order:');

    and this is what it looks like when you are checking out:



    I tend to over explain things and annoy people, but hopefully it wasn't too confusing.

    and also.. this is the way I do things. I'm not sure if the Zen gods around here consider that an incorrect way or not. I just try things and if they work for me, I jump up and down like an idiot and my husband looks at me like I'm weird (which happens often).

 

 
Page 10 of 42 FirstFirst ... 8910111220 ... LastLast

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR