Page 36 of 42 FirstFirst ... 263435363738 ... LastLast
Results 351 to 360 of 415
  1. #351
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    What domain are you testing this on?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #352
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    The only way this works to remove the USPS insurance is to have it added in on the checkout_shipping page and then you can remove it on the checkout_payment page ...

    Remove the code change I gave you in in post #369 and see if adding this code works better for you:
    Code:
          $selected = (($_SESSION['insurance'] == '1') ? true : false);
    //override optional setting and force decline to be checked from the start
          $selected = true;
    
    Finally got a chance to sit back down with this! I'm a little lost. What do I remove from checkout_payment and add to checkout_shipping? Thanks!

  3. #353
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Make no changes to anything ...

    Follow these steps ...

    1 Get the Zip from from post #367 ...

    2 Only install the files for the Order Total module for the Optional Insurance
    /includes/modules/order_total/ot_optionalinsurance.php
    /includes/languages/english/modules/order_total/ot_optionalinsurance.php

    3 Edit the file:
    /includes/modules/order_total/ot_optionalinsurance.php

    and around line 144 comment out this line by adding the // and below it add the code in RED:
    Code:
    //echo 'shipping insurance: ' . $_SESSION['shipping']['insurance'] . '<br>';
          $selected = (($_SESSION['insurance'] == '1') ? true : false);
    //override optional setting and force decline to be checked from the start
          $selected = true;
    
    this will make the checkbox on the checkout_payment default as Decline Insurance by having it pre-checked so that if the customer wants the Insurance on the shipping they need to uncheck it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #354
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    Make no changes to anything ...

    Follow these steps ...

    1 Get the Zip from from post #367 ...

    2 Only install the files for the Order Total module for the Optional Insurance
    /includes/modules/order_total/ot_optionalinsurance.php
    /includes/languages/english/modules/order_total/ot_optionalinsurance.php

    3 Edit the file:
    /includes/modules/order_total/ot_optionalinsurance.php

    and around line 144 comment out this line by adding the // and below it add the code in RED:
    Code:
    //echo 'shipping insurance: ' . $_SESSION['shipping']['insurance'] . '<br>';
          $selected = (($_SESSION['insurance'] == '1') ? true : false);
    //override optional setting and force decline to be checked from the start
          $selected = true;
    
    this will make the checkbox on the checkout_payment default as Decline Insurance by having it pre-checked so that if the customer wants the Insurance on the shipping they need to uncheck it ...
    I have installed only the two files and commented out/added to includes/modules/order_total/ot_optionalinsurance.php

    I uninstalled and installed admin/modules/order total/optional insurance. I have insurance set to on in the USPS mod.

    Now insurance is being added still, but no insurance options at all. It also shows the cost with insurance added in the "estimated shipping cost"

    Thanks!

  5. #355
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    The shipping quotes will include the insurance in the Shipping Cost ... it is removed only if the checkbox is checked in the checkout_payment on the checkout ...

    Do you see the checkout checkbox on the checkout_payment page now?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #356
    Join Date
    Jan 2010
    Posts
    49
    Plugin Contributions
    0

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

    I recently added Optional Shipping Insurance Module version 3.2.2 to a couple websites. Overall is performed as advertised, but it bothered me a bit that it "forgot" the insurance setting when moving from the confirmation page back to the payment page via the links. In studying the code, I noticed that $_SESSION['opt_insurance'] is used in two locations in /includes/modules/order_total/ot_insurance.php, but is never set. $_SESSION['insurance'] is also used and is set in the collect_posts function. I changed the two instances of $_SESSION['opt_insurance'] to $_SESSION['insurance'] and noted that now the insurance setting is "remembered" when moving from the confirmation page back to the payment page.

    Then an easy method of setting the initial value of the insurance setting occurred to me.

    In summary, the edits that I did in /includes/modules/order_total/ot_insurance.php:

    Change line 116:
    Code:
    if ($_SESSION['opt_insurance']) {
    to
    Code:
    if ($_SESSION['insurance']) {
    Change line 244:
    Code:
    $selected = (($_SESSION['opt_insurance'] == '1') ? true : false);
    to
    Code:
    if (isset($_SESSION['insurance'])) {
      $selected = (($_SESSION['insurance'] == '1') ? true : false);
    } else {
      $selected = true;	// true for opt-out, false for opt-in
    }

  7. #357
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    What shipping module are you using?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #358
    Join Date
    Jan 2010
    Posts
    49
    Plugin Contributions
    0

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

    I'm using Zone Rates.

  9. #359
    Join Date
    Nov 2011
    Posts
    7
    Plugin Contributions
    0

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

    Hallo I downloaded the module but I have a question:

    Is it possible to make the option not mandatory and let the customer choose if he wants or not the insurance on shpiing ?

    Thank You

  10. #360
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

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

    Quote Originally Posted by aldo.campione View Post
    Hallo I downloaded the module but I have a question:

    Is it possible to make the option not mandatory and let the customer choose if he wants or not the insurance on shpiing ?

    Thank You
    I SWEAR, I'm not trying to be a smart a$$ here.. I think this may be a simply language barrier at play here.. The module is called the "Optional Shipping Insurance Module"

    Optional = NOT required, shopper's choice
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 36 of 42 FirstFirst ... 263435363738 ... LastLast

Similar Threads

  1. Optional Shipping Insurance Module Question
    By kminnich in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Oct 2008, 01:16 AM
  2. Optional Shipping Insurance Module
    By Darkwander in forum Addon Shipping Modules
    Replies: 2
    Last Post: 9 Oct 2006, 02:18 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR