Page 34 of 34 FirstFirst ... 24323334
Results 331 to 340 of 340
  1. #331
    Join Date
    Aug 2010
    Location
    Brighton, MI
    Posts
    162
    Plugin Contributions
    1

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

    Quote Originally Posted by abibliss View Post
    Hi,
    Could you kindly elabrate on which file to edit so that when optional insurance is not selected, it will not show up in the order total as $0.0. Your advise is very much appreciated.

    Ok, so I figured out the in tpl_checkout_confirmation_default.php these lines are what "prints" the order totals:
    around line 164
    Code:
    <?php
      if (MODULE_ORDER_TOTAL_INSTALLED) {
        $order_totals = $order_total_modules->process();
    ?>
    <div id="orderTotals"><?php $order_total_modules->output(); ?></div>
    <?php
      }
    ?>
    I would think you could add in a if statement to exclude the ot_insurance module is it is not selected, just not really sure how to do that right now.

    This is on the list of to do's, but unfortunately that list is getting pretty long!

  2. #332
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

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

    Hello

    i am using zen cart 1.3.9h. i have installed various add ons with no problem but I've hit a snag with this one.

    I installed it as per instructions and it shows up in admin. I have set it to the following settings

    Enable Insurance Module: True
    Sort Order : 102
    Use Table rates : NO
    Alternate insurance type : percent
    Insurance percenatge : 3
    insurance rate : .50
    Increment Amount : 100
    Amount Exempt from fee : 0
    Tax Class : none
    Required insurance amount : 0

    Basically I just want the option to charge 3% shipping insurance if the customer chooses it.

    i have tried altering the above settings, but I cannot get the option to show up when the customer is concluding their purchase.

    any help appreciated, i just cannot see where im going wrong

    many Thanks

  3. #333
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

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

    Sorry just forgot to add

    i have not installed the SQl patch. I am only shipping to my local country South Africa. I have removed all other countries from the sql database.
    Would i need to install the SQL patch anyway

    thanks

  4. #334
    Join Date
    Jun 2007
    Posts
    271
    Plugin Contributions
    0

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

    Sorry if this has already been answered, but I can't seem to sort it out.

    How can the code be changed so that the insurance is preselected, but not required.I've been running in circles playing with the file to no avail.

    -lindasdd

  5. #335
    Join Date
    Mar 2006
    Posts
    404
    Plugin Contributions
    0

    Default Re: i have tons of debug logs

    still don't understand this one

    [15-Oct-2012 13:36:42] PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant MODULE_ORDER_TOTAL_INSURANCE_ZONE_5 in /home2/pwcforum/public_html/includes/modules/order_total/ot_insurance.php on line 43


    http://www.zen-cart.com/downloads.php?do=file&id=232

    i think something isn't matching up cause its for 1.3.8 can anyone help me and either take out zone 5 cause we don't use it anyway or help me update it so it will work with 1.5.1

    Thanks
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  6. #336
    Join Date
    Mar 2006
    Posts
    404
    Plugin Contributions
    0

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

    i installed this on 1.5.1 and now i get this error

    [15-Oct-2012 13:36:42] PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant MODULE_ORDER_TOTAL_INSURANCE_ZONE_5 in /home2/*******/public_html/includes/modules/order_total/ot_insurance.php on line 43

    please help
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  7. #337
    Join Date
    Jan 2004
    Posts
    58,263
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: i have tons of debug logs

    Dashizna,
    Click "Remove" on that module, and then click "install" and set it up again. That should clear up those messages which were caused by the way in which you did your upgrade.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #338
    Join Date
    Aug 2010
    Location
    Brighton, MI
    Posts
    162
    Plugin Contributions
    1

    Default Re: i have tons of debug logs

    Dashizna-
    Take a look back at post#327...
    I had to fill in ALL of the zones even if they are not being used. You could also go in to and edit the ot_insurance.php file to remove where it is looking for ZONE_5, but I wouldn't advise that if you are not comfortable working with the php files. (If you do this MAKE SURE TO BACK UP FIRST, just in case!)

  9. #339
    Join Date
    Aug 2010
    Location
    Brighton, MI
    Posts
    162
    Plugin Contributions
    1

    Default Re: i have tons of debug logs

    Just took a quick look at the file.
    My line 40 reads:
    Code:
    $this->num_zones = $geozones->RecordCount();
    you could remove $geozones->RecordCount(); and replace with the number of zones you use. Like so:
    Code:
    //$this->num_zones = $geozones->RecordCount();
    $this->num_zones = 4;
    I'm sure this is not the "right" way nor the "pretty" way but it should work

  10. #340
    Join Date
    Aug 2010
    Location
    Brighton, MI
    Posts
    162
    Plugin Contributions
    1

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

    Linda-
    If you change it from a radio button to a check box the customer should be able to uncheck it... I'll take a look at this tomorrow and get back with you.

 

 
Page 34 of 34 FirstFirst ... 24323334

Similar Threads

  1. Disable entire shipping module?
    By jdl in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 5 Jun 2006, 05:51 PM

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
  •