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
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>
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
gizmo_girl
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;
}
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! :-))
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
gizmo_girl
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!
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!
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
gizmo_girl
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. :smile:
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?
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!
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
craftzombie
No problem! Yes, you can even use the <img> tags in case you wanted something more glamorous. :smile:
Excellent...so I could add an image - something like a unique shipping insurance logo or something, right? :blink:
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
gizmo_girl
Excellent...so I could add an image - something like a unique shipping insurance logo or something, right? :blink:
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:
http://www.craftzombie.com/zencart/insurance.gif
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). :wink: