Page 2 of 40 FirstFirst 123412 ... LastLast
Results 11 to 20 of 397
  1. #11
    Join Date
    Jan 2007
    Posts
    226
    Plugin Contributions
    0

    Default 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.


    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

  2. #12
    Join Date
    Jan 2007
    Posts
    226
    Plugin Contributions
    0

    Default 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.

  3. #13
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

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

    Quote Originally Posted by Funtony View Post
    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:

    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! (So any suggestions are welcome!)
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  4. #14

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

    Quote Originally Posted by xman888 View Post
    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
    Super Orders2
    Info at a glance
    export email address
    encrypted master pass
    quick updates
    recover carts
    order Tracking
    Tabbed products lite - admin edition
    Hosted with sashbox.net <- best host around...

  5. #15
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

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

    Quote Originally Posted by wickedklown View Post
    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?

  6. #16

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

    Quote Originally Posted by jettrue View Post
    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
    Super Orders2
    Info at a glance
    export email address
    encrypted master pass
    quick updates
    recover carts
    order Tracking
    Tabbed products lite - admin edition
    Hosted with sashbox.net <- best host around...

  7. #17
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

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

    Quote Originally Posted by wickedklown View Post
    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?

  8. #18

    Default 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.
    Super Orders2
    Info at a glance
    export email address
    encrypted master pass
    quick updates
    recover carts
    order Tracking
    Tabbed products lite - admin edition
    Hosted with sashbox.net <- best host around...

  9. #19
    Join Date
    Jun 2005
    Posts
    109
    Plugin Contributions
    0

    Default 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 View Post
    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.


    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

  10. #20
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

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

    Quote Originally Posted by kenaniah View Post
    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>

 

 
Page 2 of 40 FirstFirst 123412 ... 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