-
Optional Shipping Insurance Module [Support Thread]
https://www.zen-cart.com/downloads.php?do=file&id=232
I've delayed putting this back up forever, but I can confirm this works with 1.3.6. This will be in the download section soon.
What this mod does:
This module allows shipping insurance to be charged in three ways. You can either choose standard USPS rates, a percentage of the subtotal, or by an incremental rate of your choosing. It calculates US, Canadian, and then international rates. It limits canadian to $8.60 or orders up to $675 (USPS Canadian shipping indemnity limit). This module WILL NOT add insurance to virtual items or gift certificates.
Please post any issues or questions here!
-
WHOA! This is exactly what a lot of people have been looking for!!!
I don't need this for insurance, but by changing the label, I can use this to allow people to choose a delivery confirmation add on for $2 at checkout. All I do is set it to a flat amount of $2 per increment and make the increment a super high dollar amount so it's never more than $2.
Then I go into one of the files (english/modules/order_total/***.php) and change the jive about insurance to read "Check this for Delivery Confirmation..."
My point is people all over this board are looking for a way to charge a fee during checkout for an added service - be it gift wrapping (per product is too cumbersome for some) or what I included. There is one mod for such an add on but it didn't work for me, is unsupported and far too complicated.
Woo Hoo!
Chris
-
Re: Optional Shipping Insurance Module Support Thread...
Okay, I have an idea, but since I don't know php, I'm not exactly sure how to impliment it. Our customers can choose between USPS and UPS shipping. What I would like to do is offer them shipping insurance based on which shipping option they choose. So, my thought is to have 2 ot_insurance.php files. one would be called ot_uspsinsurance.php and the other would be ot_upsinsurance.php. The USPS one would be set to calculate the USPS insurance rates. While the UPS one would be set to increment. Now, my question is, how can I get it to call the right insurance file based on the shipping option that the customer chooses. Any ideas?
Thanks,
Melissa
http://store.equineshop.biz
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
I've delayed putting this back up forever, but I can confirm this works with 1.3.6. This will be in the download section soon.
What this mod does:
This module allows shipping insurance to be charged in three ways. You can either choose standard USPS rates, a percentage of the subtotal, or by an incremental rate of your choosing. It calculates US, Canadian, and then international rates. It limits canadian to $8.60 or orders up to $675 (USPS Canadian shipping indemnity limit). This module WILL NOT add insurance to virtual items or gift certificates.
Please post any issues or questions here!
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
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
saddlebred
Okay, I have an idea, but since I don't know php, I'm not exactly sure how to impliment it. Our customers can choose between USPS and UPS shipping. What I would like to do is offer them shipping insurance based on which shipping option they choose. So, my thought is to have 2 ot_insurance.php files. one would be called ot_uspsinsurance.php and the other would be ot_upsinsurance.php. The USPS one would be set to calculate the USPS insurance rates. While the UPS one would be set to increment. Now, my question is, how can I get it to call the right insurance file based on the shipping option that the customer chooses. Any ideas?
Thanks,
Melissa
http://store.equineshop.biz
Sorry, I don't have any ideas on that, but if you have both offered during checkout, one titled USPS insurance, one titled UPS insurance, then the customer has to choose one or the other. Not perfect, but I think doable.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
chuby2
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.
-
Re: Optional Shipping Insurance Module Support Thread...
jettrue,
thanks for this module. The fix you posted in the post above this one does format the text correctly.. however the checkbox is still to the right side. Could I bother you into helping me move it to the left of the text? :)
-
Re: Optional Shipping Insurance Module Support Thread...
I love this mod, but the items in my store 'Require Insurance' and I need an insurance module that requires insurance. 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'?
Thanks for all of your help in advance!
-
Re: Optional Shipping Insurance Module Support Thread...
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 ?
-
Re: Optional Shipping Insurance Module Support Thread...
That issue is not occuring now - however I don't know if I did anything to fix it.
My apologies to those people who might have that problem in the future, but I don't know why it is suddenly working.
Cheers.
-
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>
-
Re: Optional Shipping Insurance Module Support Thread...
I need to set up shipping insurance based on several different flat rates.
The products have free shipping but require the insurance. How do I do this.
Thanks
Brian
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Briank58
I need to set up shipping insurance based on several different flat rates.
The products have free shipping but require the insurance. How do I do this.
Thanks
Brian
My only advice to you is to open up inlcudes/modules/order_total/ot_insurance.php and look around at the different rates (they're hard coded into the module), and see if you can adjust them to your needs. For example this section says:
if ($order->info['subtotal'] < 50.01) {
$insurance = 1.35;
If the order is less than $50.01, charge $1.35.
You may be able to do something like this, if you're charging these rates by cart total.
Good luck!
-
Re: Optional Shipping Insurance Module Support Thread...
Hmm ... I'm going to brush up on my PHP :wacko:
the only way I can think of that might work is to create a statement like:
if ($productID=30) {
insurance= 29.99 }
(you get the idea)
does this make sense?
Brian
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Briank58
Hmm ... I'm going to brush up on my PHP :wacko:
the only way I can think of that might work is to create a statement like:
if ($productID=30) {
insurance= 29.99 }
(you get the idea)
does this make sense?
Brian
It makes sense, though I believe the if statement would be a little different, I don't know if you'd need something like this:
if (int($_GET['product_id']) ??
I did a search in the developers tool kit for "product_id", perhaps doing that yourself will give you some ideas.
Then I think you'd need some sort of function in there that gets the product_id in the database if that's even able to do in that stage of the game? Then I don't know how it would take each product, then add up all the insurances?? Seems complicated to me. My point is, I'm not sure if the above code is enough
I'm just a php hacker, to be honest. :thumbsup: I guess maybe I've progressed from a php hacker to a php mauler, but I'm still no guru. :lol: So, sorry for not having a better answer!!
ETA: Just thought of another idea, if you're having free shipping, perhaps you get close to your desired costs with the per unit shipping module, then enter different weights in the weight boxes, so that different items have higher charges. Then you could change the text from "shipping" to "insurance" with the language files....
-
Re: Optional Shipping Insurance Module Support Thread...
Thanks Jettrue!
Is there an easy way to have the wording come directly after the checkbox as if it were in a table as opposed to below the checkbox.
Thanks for your help!
Michael
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...
Old thread but I think this is where everyone would tell me to put it so..
I appear to have the module installed correctly and it shows up in the Admin-modules-order total screen and can be edited but insurance does not seem to be getting added to either USPS (which I use to non-U.S.) or UPS (all U.S. shipments.
Any common problem out there that would cause this not to work?
Maybe I missed a thread somewhere but read most/all of them.
Thanks.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Jeffey
Old thread but I think this is where everyone would tell me to put it so..
I appear to have the module installed correctly and it shows up in the Admin-modules-order total screen and can be edited but insurance does not seem to be getting added to either USPS (which I use to non-U.S.) or UPS (all U.S. shipments.
Any common problem out there that would cause this not to work?
Maybe I missed a thread somewhere but read most/all of them.
Thanks.
Does it show up during the checkout for customers to select it? Can I see a link?
-
Re: Optional Shipping Insurance Module Support Thread...
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.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Jeffey
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)
-
Re: Optional Shipping Insurance Module Support Thread...
Copied the mod for later...hopefully! Thanks.
File uploading was a little bumpy at first for some reason but pretty sure they are in the right place now:
../zencart/includes/languages/english/modules/order_total/ot_insurance.php
../zencart/includes/modules/order_total/ot_insurance.php
Didn't seem to work in override places so this is where they are at now.
Fooled with sort order too but right now it is set back to default of 500.
Thanks for help.
-
Re: Optional Shipping Insurance Module Support Thread...
Dude!!!
It is there I just expected it a step before where it shows, color me embarrassed! To bleary last night to even catch it when I was at that page in the check out process.
Sorry for wasting your time though I really needed the mandatory mod so it wasn't a total waste.
It looks like the simple things are tripping me up as I've gotten a little (very) better at putting stuff together.
Got the book and getting better at hunting down the often elusive solutions already posted but gotta remember the basics!
Thanks so much for your time.
Lets see, how can I delete a forum thread...........
-
Re: Optional Shipping Insurance Module Support Thread...
Mandatory mod worked like a charm! Thanks again. I'm almost to the cosmetic only point with only a few more functionality issues to go.
Now I'll try and get this to work in my override folders though I guess theoretically they wont get overwritten anyway due to their unique names.
Just in case keeping good records of mods along with their files with copious notes so I don't blow it up next upgrade!
-
Re: Optional Shipping Insurance Module Support Thread...
Trying to get the insurance to work reasonably well for both USPS and UPS rates since I use UPS in the U.S. and USPS to other countries.
USPS with rate chart selected works great of course but then UPS rate is significantly higher than actual UPS rates because they are using USPS higher insurance rates.
I've been working with percentages to get them both to be at least close to actual cost but when I use percentage I get this message on checkout step 3:
Warning: Missing argument 2 for zen_add_tax() in ../zencart/includes/functions/functions_taxes.php on line 94
Line 94 reads (along with comment above):
////
// Add tax to a products price based on whether we are displaying tax "in" the price
function zen_add_tax($price, $tax) {
However, tax appears to be adding correctly, or not showing as it should in every place but my state but message always shows regardless.
Anyone run across this before or figured out a way to have the module work for both USPS and UPS depending on option provided at checkout?
In my case shipping method happens automatically based on U.S./non-U.S. and no choice is given.
Thanks.
-
Re: Optional Shipping Insurance Module Support Thread...
By the way, it appears to only happen with percentage chosen as calculation method.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Jeffey
By the way, it appears to only happen with percentage chosen as calculation method.
I'll look into this. :-)
-
Re: Optional Shipping Insurance Module Support Thread...
Thanks.....again.
I guess most people pick one shipper or another and never have an issue.
I'll stay tuned.
-
Re: Optional Shipping Insurance Module Support Thread...
Is there a way to have the Shipping Insurance Module show on the Shipping Information page instead of the Payment Information page? It makes more sense for my store. Thanks!
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Studio Attivo
Is there a way to have the Shipping Insurance Module show on the Shipping Information page instead of the Payment Information page? It makes more sense for my store. Thanks!
Sorry, no, as far as I've designed it, by modifying previous options, that's the way it works. If I could, I would! :hug:
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Sorry, no, as far as I've designed it, by modifying previous options, that's the way it works. If I could, I would! :hug:
Thanks for the quick reply. I was trying to use it for another purpose. I want to add two options to the shipping page. One option to require a signature to receive the shipment and another option to have Saturday delivery. Each option would have a cost to it that would be added to the order total. The module works great for its intended purpose. I will keep looking for another way. Thanks!
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
The Insurance module does not show the additional amount the customer has to pay, (I use Zone Rate Shipping Fee)
My setting: (I also include a screenshot)
Enable Insurance Module
Do you want to enable this module? To fully turn this off, both this option and the one below should be set to false.
true
Offer Shipping Insurance?
Do you want to offer shipping insurance?
true
Sort Order
Sort order of display.
500
Use USPS Rates?
Do you want to use USPS Rates?
true
Alternate Insurance Type
If not using USPS rates, would you like to charge by percentage of cart total, or by a specific amount?
amount
Insurance Percentage
If using percent, what percentage of subtotal to charge for insurance.
5
Insurance Rate
What amount do you want to charge per increment amount.
.5
Increment Amount
For each how many dollars, ie. the increment amount, of the total(e.g. 100 here and .50 for the rate above would mean 50 cents fee for every 100 of the amount to be insured).
Amount Exempt From Fee
(Works for Increment Amounts only) Set this to the part of the total that is exempt from the Shipping Insurance. UPS insures the first $100 for free, so I set mine to 100. 0 is ok if none of the total is exempt.
0
Apply Insurance Fee To Which Orders
Apply insurance fee for orders sent to the set destination.
both
Tax Class
Use the following tax class on the insurance fee.
--none--Taxable Goods
No Insurance Fee on Virtual Products
Do not charge insurance fee when cart is Virtual Products Only
true
No Insurance Fee on Gift Vouchers
Do not charge insurance fee when cart is Gift Vouchers Only
true
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
yellow1912
The Insurance module does not show the additional amount the customer has to pay, (I use Zone Rate Shipping Fee)
That is how it works, it doesn't show till the following page. I usually change the text to something like this:
"Click here to add optional insurance. We use standard USPS shipping rates, and the rate will display on the following page. If you decide you no longer want insurance, simple use the back button on your browser and de-select this option"
The text for that is in includes/languages/english/modules/order_total/ot_insurance.php
-
Re: Optional Shipping Insurance Module Support Thread...
Ah, that's the reason. But wouldn't it be too much a hassle for customers? Can't we somehow display it there? Is it because of the GiftCards and stuffs that the customers may apply? But we can display an estimated number there based on the total price before any discount, and then on the next page we display the real price (after all the discounts have been applied)?I think that would be better for me, as a customer.
-
Re: Optional Shipping Insurance Module Support Thread...
Hello,
I was wondering if it was possible to move this module to the shipping screen (where the customer selects the shipping method). If so, how would i go about doing that?
Thanks
-Andrew
-
Re: Optional Shipping Insurance Module Support Thread...
Is there a place where I can go and insert the new USPS insurance costs? They went up in May and the mod doesn't reflect those price changes.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
traypup
Is there a place where I can go and insert the new USPS insurance costs? They went up in May and the mod doesn't reflect those price changes.
You can change them in includes/modules/shipping/usps.php
You'll be messing around in php, but you'll see the section with the rates, and you can just put the new ones in!
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
You can change them in includes/modules/shipping/usps.php
You'll be messing around in php, but you'll see the section with the rates, and you can just put the new ones in!
Oh cool....I answered my own question and I actually put the new rates into includes/modules/order_total/ot_insurance.php and that seems to be working.
I had one more question, though: I see that in IE7, the text in the shipping insurance checkbox area on the payment information page is weird....it's like a narrow column of text in the box that's the same width as the rest of the payment boxes on that page. I can't find where to adjust for this in IE. It's fine in firefox. I hope that made sense.
thanks!
Tracey
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
traypup
Oh cool....I answered my own question and I actually put the new rates into includes/modules/order_total/ot_insurance.php and that seems to be working.
I had one more question, though: I see that in IE7, the text in the shipping insurance checkbox area on the payment information page is weird....it's like a narrow column of text in the box that's the same width as the rest of the payment boxes on that page. I can't find where to adjust for this in IE. It's fine in firefox. I hope that made sense.
thanks!
Tracey
Sorry, that's the file I meant.
Could I see a link, please?
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Sorry, that's the file I meant.
Could I see a link, please?
Hi! I can't really give you a link because you have to be logged in and in step 2 of the checkout process, but attached is a screen shot. It's doing this in IE (I have IE7, they have IE7 or earlier), but not in Firefox.
thanks!!
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
traypup
Hi! I can't really give you a link because you have to be logged in and in step 2 of the checkout process, but attached is a screen shot. It's doing this in IE (I have IE7, they have IE7 or earlier), but not in Firefox.
thanks!!
I don't see this in my test site, though I've made a lot of css adjustments from stock zen.
Try adding this to your css:
LABEL.inputLabel {
width:85%;
float:left;
margin:0.3em;
}
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
I don't see this in my test site, though I've made a lot of css adjustments from stock zen.
Try adding this to your css:
LABEL.inputLabel {
width:85%;
float:left;
margin:0.3em;
}
Jettrue, that worked!!!! Thank you SO much! :clap:
-
Re: Optional Shipping Insurance Module Support Thread...
hi there,
I am having the same problem - the insurance text is showing up in one corner of teh page in a column. I tried the dit recommended but no luck - still the same...please assist.
also, is there a way to link the insurance with only a certain shipping module rather than generic shipping/s.
thanks
N
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
pcspot
hi there,
I am having the same problem - the insurance text is showing up in one corner of teh page in a column. I tried the dit recommended but no luck - still the same...please assist.
also, is there a way to link the insurance with only a certain shipping module rather than generic shipping/s.
thanks
N
A) could I see your site?
B) no, unfortunately not....
-
Re: Optional Shipping Insurance Module Support Thread...
Hello,
Is it possible to have the shipping insurance be part of the total used for tax calculation? I thought setting the Tax option to taxable goods would do it but it is not showing up in the tax amount.
Thanks,
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
redsail
Hello,
Is it possible to have the shipping insurance be part of the total used for tax calculation? I thought setting the Tax option to taxable goods would do it but it is not showing up in the tax amount.
Thanks,
Its adding it on my test site. It adds it to the shipping insurance cost, not the tax cost.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Its adding it on my test site. It adds it to the shipping insurance cost, not the tax cost.
I tried the test site in the first page, and I'm not seeing the tax from shipping insurance in the shipping insurance line or tax line.
I added a single $29.99 product and it shows Tax $1.96 (which does not equal 29.99*7%) and shipping insurance of $1.35 (which is default for the value range).
Am I doing something wrong?
Thanks!
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
redsail
I tried the test site in the first page, and I'm not seeing the tax from shipping insurance in the shipping insurance line or tax line.
I added a single $29.99 product and it shows Tax $1.96 (which does not equal 29.99*7%) and shipping insurance of $1.35 (which is default for the value range).
Am I doing something wrong?
Thanks!
I don't know how you set up tax, it can be tricky, so its very likely something went wrong somewhere if it is not working correctly; on my test 1.3.7 install, tax calculates fine, and shipping insurance gets its own tax added correctly.
Read the tax tutorial, and maybe start fresh with tax rates and zones.
https://www.zen-cart.com/tutorials/index.php?article=76
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Ryk
...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...
Read this whole thread and nobody answered this question. Guess there must not be many people that allow Store Pickups.
Any ideas? TIA...
- Scott
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
sneader
Read this whole thread and nobody answered this question. Guess there must not be many people that allow Store Pickups.
Any ideas? TIA...
- Scott
Sorry, I'm not sure how to do this. People ordering via Store Pickup, can just de-select insurance. :smile:
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Sorry, I'm not sure how to do this. People ordering via Store Pickup, can just de-select insurance. :smile:
We require insurance on all shipments.
I really appreciate your efforts on this module, Jade. It just seems odd to me how full-featured ZenCart is, yet the basic concept of insurance somehow got overlooked. :(
- Scott
-
Re: Optional Shipping Insurance Module Support Thread...
I don't have the insurance module running around but you could use this IF statement to determine when to use or not use it:
PHP Code:
if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {
// do stuff
} else {
// don't do stuff
}
-
Re: Optional Shipping Insurance Module Support Thread...
On the store pickup issue, I'm not sure if this answers the question or has been covered, but I configured in-store pickup and it works alongside the optional shipping insurance mod just fine.
-
Re: Optional Shipping Insurance Module Support Thread...
We REQUIRE insurance, it is not optional. But of course you don't need insurance if you are picking up the item and not using a shipper.
I don't know how to stop this module from adding insurance to store pickup. Again, just super surprised that the concept of insurance was somehow left out of ZenCart. I appreciate Jen's 3rd party module... at least I can include insurance now, even if I look like a dork for charging insurance on a store pickup. :)
- Scott
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
sneader
We REQUIRE insurance, it is not optional. But of course you don't need insurance if you are picking up the item and not using a shipper.
I don't know how to stop this module from adding insurance to store pickup. Again, just super surprised that the concept of insurance was somehow left out of ZenCart. I appreciate Jen's 3rd party module... at least I can include insurance now, even if I look like a dork for charging insurance on a store pickup. :)
- Scott
Did you see Ajeh's response?
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Ajeh
I don't have the insurance module running around but you could use this IF statement to determine when to use or not use it:
PHP Code:
if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {
// do stuff
} else {
// don't do stuff
}
Hi Linda. I looked at this module for a while and all I got was a headache. Would you mind taking a peek at it when you have time? (php file attached as a .txt). If not, I understand....
- Scott
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Jeffey
Trying to get the insurance to work reasonably well for both USPS and UPS rates since I use UPS in the U.S. and USPS to other countries.
USPS with rate chart selected works great of course but then UPS rate is significantly higher than actual UPS rates because they are using USPS higher insurance rates.
I've been working with percentages to get them both to be at least close to actual cost but when I use percentage I get this message on checkout step 3:
Warning: Missing argument 2 for zen_add_tax() in ../zencart/includes/functions/functions_taxes.php on line 94
Line 94 reads (along with comment above):
////
// Add tax to a products price based on whether we are displaying tax "in" the price
function zen_add_tax($price, $tax) {
However, tax appears to be adding correctly, or not showing as it should in every place but my state but message always shows regardless.
Anyone run across this before or figured out a way to have the module work for both USPS and UPS depending on option provided at checkout?
In my case shipping method happens automatically based on U.S./non-U.S. and no choice is given.
Thanks.
I am also getting this error after installing the OSIM on an otherwise working Zen 1.3.7 installation. Has anyone made any headway on this yet?
-
Re: Optional Shipping Insurance Module Support Thread...
Been a while since I revisited this thread (though I glance at email updates) but it doesn't look like anyone has tackled this.
Personally I gave up and now just charge everyone $0.75 for insurance. I haven't taken the time to figure out the lose/gain on the total orders but I'm sure it is not significant either way. Prior to Zen I generally took a small lose at the end of the year for shipping charges anyway.
UPS covers up to $100 without insurance so orders under that are bumping another $0.75. I think the new USPS (I only ship via Air Priority International) now has indemnity coverage around $60-75 for many Countries so, again, this level of order through in another $0.75.
Huge orders don't worry me since I just write it off towards making a nice order.
I'm sure there are other workarounds that will end up equally well. Mine is mandatory and every customer sees it before submitting anyway and no one has had an issue with it to date.
Truth is so many businesses/people overcharge for shipping and/or add a "handling" charge that my total shipping is affordable and most comment on how reasonable it is.
-
Re: Optional Shipping Insurance Module Support Thread...
I added this module and it works on 1.3.7. :) Thanks! I was wondering if it's possible to do two things:
1) Offer the insurance option on the shipping step of checkout (checkout_shipping) instead of the payment step of checkout (checkout_payment)
2) Display the cost of the insurance when using USPS rates (right now customers have to check the box, enter their method of payment and proceed to the next step of checkout without knowing how much they're going to be charged for insurance).
If it's not possible to do both, the second is a higher priority for me. :)
thank you!
-Lis
-
Re: Optional Shipping Insurance Module Support Thread...
I'm also getting that error message...
Warning: Missing argument 2 for zen_add_tax() in ../zencart/includes/functions/functions_taxes.php on line 94
Line 94 reads (along with comment above):
////
// Add tax to a products price based on whether we are displaying tax "in" the price
function zen_add_tax($price, $tax) {
It is fine on Amounts, just not percentages.
Is there anyone smart enough out there to compare the Amount vs Percentage calculations and perhaps spot the error? Its probably in ordertotal/ot_insurance.php between lines 165 and 173.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
diannev
I'm also getting that error message...
Warning: Missing argument 2 for zen_add_tax() in ../zencart/includes/functions/functions_taxes.php on line 94
Line 94 reads (along with comment above):
////
// Add tax to a products price based on whether we are displaying tax "in" the price
function zen_add_tax($price, $tax) {
It is fine on Amounts, just not percentages.
Is there anyone smart enough out there to compare the Amount vs Percentage calculations and perhaps spot the error? Its probably in ordertotal/ot_insurance.php between lines 165 and 173.
I don't get this error. Make sure that even though you're using percentage, have values in the rate, increment amount, etc... meaning leave nothing blank.
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
OK, sorry guys, there is an issue with percentage, sorry I missed it.
Please try this version of includes/modules/order_total/ot_insurance.php, and test it out for me. If there are no issues, I'll upload the new version to the download site.
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Actually guys, TRY THIS ONE INSTEAD.
It goes here: includes/modules/order_total/ot_insurance.php
It includes NEW USPS rates, and also will turn itself OFF if someone chooses "STORE PICKUP" as their shipping method.
-
Re: Optional Shipping Insurance Module Support Thread...
Can anyone confirm if this works with V1.3.8 ?
I tried it on V1.3.7, no problems, but when i tried it on V1.3.8 my checkout payment screen is blank (nothing loads). :huh:
What could I be doing wrong?
Thanks
Warren
-
Re: Optional Shipping Insurance Module Support Thread...
Same thing happening to me, blank screen on checkout step 2.
So it's definitely a 1.3.8 issue.
-
Re: Optional Shipping Insurance Module Support Thread...
I'm using this on 1.37.1 but i cannot get it to work. the tick box option in checkout is there but the rates that i have set up are never applied to the total cost of the order on the final confimration screen.
What am i doing wrong?
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Here is the new includes/modules/order_total/ot_insurance.php
Please test well before using on a live site.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
DVDTitan
I'm using this on 1.37.1 but i cannot get it to work. the tick box option in checkout is there but the rates that i have set up are never applied to the total cost of the order on the final confimration screen.
What am i doing wrong?
Did you turn off the USPS rate option? Does any amount get added?
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Did you turn off the USPS rate option? Does any amount get added?
Yes i did turn off the USPS rate and no, no amoutn getsa added to the final confirmation screen.
I have just uploaded your revised file and that makes no difference. There is the option to check the require insurance box, when i check that no amount gets added on the final payment screen.
These are my settings:
Code:
Enable Insurance Module
true
Offer Shipping Insurance?
true
Sort Order
500
Use USPS Rates?
false
Alternate Insurance Type
amount
Insurance Percentage
5
Insurance Rate
£0.50
Increment Amount
£30.00
Amount Exempt From Fee
£0.00
Apply Insurance Fee To Which Orders
both
Tax Class
--none--
No Insurance Fee on Virtual Products
true
No Insurance Fee on Gift Vouchers
true
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
DVDTitan
Yes i did turn off the USPS rate and no, no amoutn getsa added to the final confirmation screen.
I have just uploaded your revised file and that makes no difference. There is the option to check the require insurance box, when i check that no amount gets added on the final payment screen.
Hmmm, Under "modules", "order total" make sure that the insurance module's sort order isn't the same as something else's?
-
Re: Optional Shipping Insurance Module Support Thread...
As requested by Jettrue, I am going to explain the reason for the update to 3.10.
A sponsor requested the following additions be made to the script:
- be able to see the rate that is being added on the checkout_payment page (works in all currencies).
- make insurance mandatory when an order is over a defined amount.
- make the former USPS rate table admin configurable and generalized to be used for any shipping company.
- distuinguish free-shipping items from regular shipping products so that insurance can be based on the regular shipping products only.
- make all of the above compatible with Fast and Easy Checkout as well.
Jettrue wanted me to also outline that because I have removed the hard-coded USPS rates and put in a general admin table, features such as the max-Canadian insurance rate no longer exist. Well, this is only partially true. If $1000 is the most that can be insured and the cost is $10, simply put 1000:10 in the table that is defined for your zone containing Canada and all orders over $1000 will be charged $10 only. Then, simply add a note on your checkout page that Canadian orders are insured up to a maximum of $1000.
If anyone has requests for the mod, please feel free to contact me and I will try to implement them when convenient.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Hmmm, Under "modules", "order total" make sure that the insurance module's sort order isn't the same as something else's?
Have checked and it does not clash. I've even changed it to another number and it still does'nt show up.
Can you suggest anything else i can try to get it working? I think it would be a great mod for my site and really want to implement it.
-
Re: Optional Shipping Insurance Module Support Thread...
The new version (3.10) causes a conflict with the linkpoint API. It sees us as chargeing more than the total, and gives the error "SGS-002301: Charge total must be the sum of subtotal, tax, value added tax, and shipping."
Dr. Byte had given s solution on this page: http://www.zen-cart.com/forum/showth...ght=SGS-002301 that would work for the low order fee module, but it doesn't work for this. Any ideas?
-
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Dr. Byte gave me the fix. If you use the new insurance module with link point, replace your includes/modules/payment/linkpint_api.php with this:
-
Re: Optional Shipping Insurance Module Support Thread...
I'm using the USPS API to determine shipping rates, and it's not working with that. I don't get an option to choose insurance in step 1, and in step 2, it adds insurance at $0.00 to the summary. Am I missing something?
If I put an amount in for Required Insurance Amount, I get the checkbox but it says $0 still.
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
jettrue
Here is the new includes/modules/order_total/ot_insurance.php
Please test well before using on a live site.
This is working fine for me in 1.3.8. and also on another 1.3.8 cart I was working on. I do not use Linkpoint, but I am using the USPS API and it is working correctly. Much thanks!!!!
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Scarlet
I'm using the USPS API to determine shipping rates, and it's not working with that. I don't get an option to choose insurance in step 1, and in step 2, it adds insurance at $0.00 to the summary. Am I missing something?
If I put an amount in for Required Insurance Amount, I get the checkbox but it says $0 still.
Please post your settings for the insurance, perhaps it is an issue there.
-
Re: Optional Shipping Insurance Module Support Thread...
Here is my config. I had to put require shipping on orders over $25,000 to make the checkbox show up, and I had to change it to a percentage to get a fee over $0. You can see it on www.koimillworks.com (in development). I changed it back to table rates.
Code:
Insurance
Enable Insurance Module
true
Offer Shipping Insurance?
true
Sort Order
500
Use Table Rates?
true
Alternate Insurance Type
amount
Insurance Percentage
1.6
Insurance Rate
$0.50
Increment Amount
$100.00
Amount Exempt From Fee
$0.00
Tax Class
--none--
No Insurance Fee on Virtual Products
true
No Insurance Fee on Gift Vouchers
true
No Insurance Fee on Free Shipping
true
Required Insurance Amount
$25,000.00
Insurance Zone 1
--none--
Zone 1 Insurance Table
50:1.65,100:2.05,200:2.45,300:4.60,:400:5.50,500:6.40,600:7.30
-
Re: Optional Shipping Insurance Module Support Thread...
Since mine seems to be working correctly, I thought it might help (maybe?) to post my settings:
Code:
Enable Insurance Module
true
Offer Shipping Insurance?
true
Sort Order
240
Use USPS Rates?
true
Alternate Insurance Type
amount
Insurance Percentage
Insurance Rate
$0.00
Increment Amount
$0.00
Amount Exempt From Fee
$0.00
Apply Insurance Fee To Which Orders
both
Tax Class
--none--
No Insurance Fee on Virtual Products
true
No Insurance Fee on Gift Vouchers
true
-
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
Scarlet
Here is my config. I had to put require shipping on orders over $25,000 to make the checkbox show up, and I had to change it to a percentage to get a fee over $0. You can see it on
www.koimillworks.com (in development). I changed it back to table rates.
You have to create zones in your admin, and then choose the "Zone" for the table rate you're using in the drop down menu.
-
Re: Optional Shipping Insurance Module Support Thread...
If you want to use it for all zones, run the optional international_zone.sql which includes all of the zones in the world (this file may require updating from time to time). Then set your zone in the configuration to this new zone called "International"
-
Re: Optional Shipping Insurance Module Support Thread...
Hi, this module is wonderful! I downloaded and installed it easily, but I cannot figure out how to make insurance OPTIONAL, along with a few other things.
1) I want the feature available, but not required, on all orders (those with free shipping & those where I charge shipping).
2) I also want the customer to be able to select whether or not they add insurance
3) I want to use the rates I designate for insurance
I've read through this entire thread and I see people talking about a check box appearing for the insurance option. Mine is automatically adding in to the customers total. Here's my site if it helps: www.kings-kreations.com/zen
Since you can't see the checkout without logging in, I'm attaching a link to a screen shot of step 2 of the checkout process.
http://i80.photobucket.com/albums/j1...out_screen.jpg
Any help you can offer would be greatly appreciated!
-
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: