Re: Optional Shipping Insurance Module Support Thread...
I think I figured it out! I had an issue with the zones and geo_zones tables. I now have a ton of php warnings about undefined array keys and undefined properties but it did calculate the insurance fee correctly on the front-end when going through checkout. I haven't tested an actual transaction yet which I will handle tomorrow after I finally get some needed rest. If the transaction calculates properly I will post the updated plugin as well as installation instructions (The installer built into the plugin doesn't work with 1.5.8a)
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
clam_man
So I installed a fresh copy of zen cart 1.5.8a ...
And the reason for 1.5.8a from two years ago is.....?
If you are trying to use an old version to get an older shipping/payment mod to work, you should know that most of those basic zen cart settings had to be modified in 2.0.0 to meet the current coding requirements for many of those older shipping/payment features.
You may be creating a shiny new bridle and saddle for a horse that really needs to be a Nascar vehicle for today's "race".
Re: Optional Shipping Insurance Module Support Thread...
Our custom template doesn't work with 2.0. This update will be for those stores which are on 1.5.8a without the means to upgrade to 2 yet.
Re: Optional Shipping Insurance Module Support Thread...
Also, I haven't found a single premium template available for ZC 2+ yet and the stock template is not going to cut it for the brand needing the site.
Re: Optional Shipping Insurance Module Support Thread...
bootstrap can be manipulated fairly easily to meet most needs.
There's not a store-bought template that I've ever found that doesn't mess with core files in some way that generally makes them a pain in the :censored:. Especially at upgrade time.
I'm sure there are those out there that are skipping store-bought creation for 2.0.1 in favor of 2.1.0. Lots of changes (great ones) coming soon.
Re: Optional Shipping Insurance Module Support Thread...
v4.0.0 of the Optional Shipping Insurance plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=232
Updates for continued operation under Zen Cart v2.1.0+, Edit Orders v5.0.0+ and PHP 8.0+.
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
lat9
Was the optional part removed?
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
mprough
Was the optional part removed?
It wasn't. The insurance is optional until such time that the insurance's configuration indicates that it's required.
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
lat9
It wasn't. The insurance is optional until such time that the insurance's configuration indicates that it's required.
Any reason you can think the optional not showing in checkout? I get only the required to work
Zen Cart 2.1.0
PHP Version: 8.3.17
OPC 2.5.4
Boot 3.7.4
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
mprough
Any reason you can think the optional not showing in checkout? I get only the required to work
Zen Cart 2.1.0
PHP Version: 8.3.17
OPC 2.5.4
Boot 3.7.4
A screenshot of its configuration would help.
1 Attachment(s)
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
lat9
A screenshot of its configuration would help.
Attachment 20926
Thanks for your help =)
Re: Optional Shipping Insurance Module Support Thread...
OK, my eyesight is going, but ...
It looks like you've got both the "Amount Exempt From Fee" and the "Required Insurance Amount" set to 150, which essentially says that insurance is required over $150.
If I've misread the teeny-weeny text on that image, please enlighten me!
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
lat9
OK, my eyesight is going, but ...
It looks like you've got both the "Amount Exempt From Fee" and the "Required Insurance Amount" set to 150, which essentially says that insurance is required over $150.
If I've misread the teeny-weeny text on that image, please enlighten me!
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
Sort Order
Sort order of display. Note: Must be higher than the sub-total.
299
Use Table Rates?
Do you want to use Table Rates?
false
Alternate Insurance Type
If not using Table Rates, would you like to charge by percentage of the cart sub-total or by a specific amount?
amount
Insurance Percentage
Used with percent calculations. What percentage should be applied to the cart sub-total to calculate the insurance amount?
5
Insurance Rate
Used with amount and Table Rates calculations. What amount do you want to charge per Increment Amount?
1.25
Increment Amount
Used with amount and Table Rates calculations. Identify the amount-increment for which the Insurance Rate is applied. If, for example, the increment-amount is 100 and the rate is .50, the insurance is calculated as $0.50 for each $100.00 of the total.
100
Amount Exempt From Fee
Used with amount calculations. Set this to the amount of the total that is exempt from the insurance calculations, i.e. set to 100 for all orders under 100 to be exempt, already insured, etc.
100
Tax Class
Use the following tax class on the insurance fee.
--none--
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
No Insurance Fee on Free Shipping
Do not calculate insurance for products that have free shipping (includes gv and virtual products)
false
Required Insurance Amount
Automatically charge shipping insurance for amounts over X dollars
100
The optional insurance is not in checkout.
Re: Optional Shipping Insurance Module Support Thread...
OK, same comment, different numbers.
You've got the first $100.00 exempt from insurance (if optional) but require insurance for orders >= $100.00. That's why the optional insurance isn't displayed; there's no available option.
Up to $100.00, the cost is exempt, so there's no option to display. After $100.00, the insurance is required, so there's no option to display.
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
lat9
OK, same comment, different numbers.
You've got the first $100.00 exempt from insurance (if optional) but require insurance for orders >= $100.00. That's why the optional insurance isn't displayed; there's no available option.
Up to $100.00, the cost is exempt, so there's no option to display. After $100.00, the insurance is required, so there's no option to display.
Got it, thanks a bunch =)