Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by chuby2 http://www.zen-cart.com/forum/images...s/viewpost.gif
Thanks for this add-on !!
Is there a way to format the text and move the checkbox to the left ?
I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.
Please advise
Hi!
Just add this to your css:
#checkoutPayment .inputLabel {
width:85%;
}
I think that will do the trick.
Hello.
Where exactly in the css file do we put the above code ?
I am also looking to format the text and move the checkbox as currently there are only a couple of words per line, as below:
Click add optional
insurance to your
order. text text
text text text.
Thanks,
Anthony
Re: Optional Shipping Insurance Module Support Thread...
Hello,
Its OK, I just added it underneath this line:
#checkoutPayment LABEL.radioButtonLabel {
font-weight: bold;
}
and it worked fine.
Cheers.
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Funtony
Is there a way to alter this mod to 'Require Insurance' or is there a mod for Shipping Insurance where you can check to make shipping insurance 'Mandatory'?
For anyone else looking to do this, this answer was provided by the module author:
Quote:
Open up includes/modules/order_total/ot_insurance.php
Go to line approx. line 214 and change it to this:
Code:
'field' => zen_draw_hidden_field('opt_insurance', '1'))));
That will make your change! Voila!
Though you'll need a couple of tweaks. You'll notice now that the fieldset box that is supposed to surround your insurance text doesn't enclose the text. So open up includes/templates/YOUR_TEMPLATE_NAME/tpl_checkout_payment_default.php and change around line 101:
Code:
<?php echo $selection[$i]['fields'][$j]['field']; ?>
<br class="clearBoth" />
</fieldset>
(you're just adding the <br class="clearBoth" />)
Then of course you want to open up includes/languages/english/order_total/YOUR_TEMPLATE_NAME/ot_insurance.php and change the text to say something like "Shipping Insurance will be added to your order".
Now, having made it mandatory, the next requirement is to exclude it completely from the Store Pickup option! This would probably take a proficient php coder a matter of minutes...but I'm not, and I'm starting now! :D (So any suggestions are welcome!)
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
xman888
Hello,
I have installed this mod, however I have encountered an error during the the checkout process (Step 3 of 3 - Order Confirmation).
It comes up with the following error:
"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"
The insurance cost is inculded in the order total at this stage, however if I click "confirm order", it comes up with the folowing error:
"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"
Anyone have any ideas ?
Im having this same issue. It seems as tho it is calculating correctly. When a customer needs to be taxed it is adding the tax and the insurance, but not adding to the insurace based on tax cost.. So i believe its working correctly, just need to remove this error from our site..
anyone have a fix for this.. I see that the pervious issue of this kind fixed itself. heh.
Thanks
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
wickedklown
Im having this same issue. It seems as tho it is calculating correctly. When a customer needs to be taxed it is adding the tax and the insurance, but not adding to the insurace based on tax cost.. So i believe its working correctly, just need to remove this error from our site..
anyone have a fix for this.. I see that the pervious issue of this kind fixed itself. heh.
Thanks
Don't have a fix for it, cause I don't have the same issue.
What version of zen cart are you using?
Go to "Module", the "order total" in your admin, and tell me the sort orders for the order total modules you have installed.
Do you have an out of the ordinary tax setup? Perhaps some items with tax, some items without? Does this occur with every item? Are you taxing the insurance fee?
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Don't have a fix for it, cause I don't have the same issue.
What version of zen cart are you using?
Go to "Module", the "order total" in your admin, and tell me the sort orders for the order total modules you have installed.
Do you have an out of the ordinary tax setup? Perhaps some items with tax, some items without? Does this occur with every item? Are you taxing the insurance fee?
Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 500
Shipping Insurance ot_insurance 600
Shipping ot_shipping 300
Sub-Total ot_subtotal 100
Tax ot_tax 200
Total ot_total 999
that is my layout. no i dont have insurance added to the tax, or anything like that. all my products have a tax setup on them. and it seems to calculate correctly. This occures every time i click on the add insurance to the order.
If i dont add insurance its fine.
Thanks
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
wickedklown
Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 500
Shipping Insurance ot_insurance 600
Shipping ot_shipping 300
Sub-Total ot_subtotal 100
Tax ot_tax 200
Total ot_total 999
that is my layout. no i dont have insurance added to the tax, or anything like that. all my products have a tax setup on them. and it seems to calculate correctly. This occures every time i click on the add insurance to the order.
If i dont add insurance its fine.
Thanks
I've been doing some testing, and duplicated your sort order above, with no issues.
What version of zen cart are you using?
Have you tried re-uploading a fresh version of /includes/functions/functions_taxes.php?
Re: Optional Shipping Insurance Module Support Thread...
actualy, i just hired someone to fix it. we use 1.3.6 right now, but we have updated all the changes released in 1.3.7
They got it fixed, im unsure what the exact problem was, however it is working.
While working on it, we noticed that the display in IE7 was all squaished to the left hand side of the page.
We also fixed this so that the display is correct on all browsers. Dont know if anyone else was experancing these problems.
Re: Optional Shipping Insurance Module Support Thread...
This was a tremendous help. Would anyone know how to get the checkbox to show up before the wording?
Thanks!
Quote:
Originally Posted by
xman888
Quote:
Originally Posted by
chuby2 http://www.zen-cart.com/forum/images...s/viewpost.gif
Thanks for this add-on !!
Is there a way to format the text and move the checkbox to the left ?
I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.
Please advise
Hi!
Just add this to your css:
#checkoutPayment .inputLabel {
width:85%;
}
I think that will do the trick.
Hello.
Where exactly in the css file do we put the above code ?
I am also looking to format the text and move the checkbox as currently there are only a couple of words per line, as below:
Click add optional
insurance to your
order. text text
text text text.
Thanks,
Anthony
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
kenaniah
This was a tremendous help. Would anyone know how to get the checkbox to show up before the wording?
Thanks!
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>