olsonsp4c Posted November 12, 2008 Author Share Posted November 12, 2008 Thank you Scott! ;) I'll play around with the other edits until I except defeat LOL. one hint - I looked through the code of includes/modules/shipping/usps.php I don't think that the other edits are handled there - I looked in includes/classes/shipping.php and couldn't find it either - it's got to be handles elsewhere - also, the default coding makes both of the checkout_confirmation page display the SAME variable, so you'd have to find where the variable is set to begin with (in a function perhaps) and find a way to create a 2nd variable for the U.S.P.S. = total part while placing a "\n" in the existing variable to create the line break. When I looked at the usps.php file, I thought that: if ($time != '') $transittime[$service] = ': ' . $time . ''; You could try modifying this line: $shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)'; to: $shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)' . "\n"; OR $this->quotes = array('id' => $this->code, 'module' => $this->title . $shiptitle); to: $this->quotes = array('id' => $this->code, 'module' => $this->title . $shiptitle . "\n"); Scott Quote Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox Link to comment Share on other sites More sharing options...
jhande Posted November 13, 2008 Share Posted November 13, 2008 one hint - I looked through the code of includes/modules/shipping/usps.php I don't think that the other edits are handled there - I looked in includes/classes/shipping.php and couldn't find it either - it's got to be handles elsewhere - also, the default coding makes both of the checkout_confirmation page display the SAME variable, so you'd have to find where the variable is set to begin with (in a function perhaps) and find a way to create a 2nd variable for the U.S.P.S. = total part while placing a "\n" in the existing variable to create the line break. When I looked at the usps.php file, I thought that: if ($time != '') $transittime[$service] = ': ' . $time . ''; You could try modifying this line: $shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)'; to: $shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)' . "\n"; OR $this->quotes = array('id' => $this->code, 'module' => $this->title . $shiptitle); to: $this->quotes = array('id' => $this->code, 'module' => $this->title . $shiptitle . "\n"); Scott Thank you Scott for your persistant efforts to help me. I will make a note of those edits and see if I can't find where to make a 2nd variable for the USPS = Total. ;) With all the playing around I've been doing editing osC, I'm starting to pick things up regarding PHP LOL. Thanks again Scott I truely appreciate it. :) Quote - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
olsonsp4c Posted November 18, 2008 Author Share Posted November 18, 2008 (edited) USPS Shipping Insurance 1.51 is out: http://addons.oscommerce.com/info/5782 Changes since v1.4 ------------------ * Fixed the issue: if customer goes back to the checkout shipping page from checkout payment to change their USPS shipping insurance choice, the change is not registered. Now, changes are registered properly. * Added the edits suggested by draculakos which adds rollover color and a function that enables you to click anywhere inside infobox in order to toggle the USPS shipping insurance checkbox. (one edit was missing that I have corrected from his post on the forum) Scott Edited November 18, 2008 by olsonsp4c Quote Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox Link to comment Share on other sites More sharing options...
helpme:( Posted January 25, 2009 Share Posted January 25, 2009 Installed the contribution and am having a problem during checkout. The subtotal is not calculated correctly. It looks like this: 1X item $114.40 Sub-Total: $109.40 Discount Coupon applied: -$5.00 Shipping: $0.00 USPS Shipping Insurance: $2.60 Total: $112.00 When is should say: 1X item $114.40 Sub-Total: $114.40 Discount Coupon applied: -$5.00 Shipping: $0.00 USPS Shipping Insurance: $2.60 Total: $112.00 The discount it being subtracted from the subtotal, which I prefer it not to. So if anyone has any suggestions I would appreciate it. Thanks. Quote Link to comment Share on other sites More sharing options...
Dennisra Posted March 12, 2009 Share Posted March 12, 2009 This is what the actual order is: Sub-Total: $69.75 United States Postal Service (1 x 0.3lbs) (0lbs, 5oz) (First Class Mail: Estimated 1 - 5 Days): $1.85 USPS Shipping Insurance: $2.15 Total: $73.75 This is what it looks like in the PayPal payment notification email: Subtotal $69.75 USD Shipping and handling $1.85 USD Total $73.75 USD Payment $73.75 USD Why isn't the USPS Shipping Insurance: $2.15 showing up? Quote Link to comment Share on other sites More sharing options...
mondofood Posted March 16, 2009 Share Posted March 16, 2009 Howdy, I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself. I tried removing the mouseover effect but I still have the issue. Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you. Quote Link to comment Share on other sites More sharing options...
mondofood Posted April 6, 2009 Share Posted April 6, 2009 *bump* Howdy, I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself. I tried removing the mouseover effect but I still have the issue. Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you. Quote Link to comment Share on other sites More sharing options...
tylerd213 Posted May 21, 2009 Share Posted May 21, 2009 Im having this same problem. Any suggestions? Howdy, I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself. I tried removing the mouseover effect but I still have the issue. Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you. Quote Link to comment Share on other sites More sharing options...
mdlemmer Posted November 26, 2009 Share Posted November 26, 2009 I'm kinda new to oscommerce i installed this addon all went well admin side works fine but it doesnt show during check out. rechecked install followed all steps still doesnt show on checkout any help would be great Quote Link to comment Share on other sites More sharing options...
mdlemmer Posted November 28, 2009 Share Posted November 28, 2009 I'm kinda new to oscommerce i installed this addon all went well admin side works fine but it doesnt show during check out. rechecked install followed all steps still doesnt show on checkout any help would be great never mind found out it it was because one file was heavily customized all works great now Quote Link to comment Share on other sites More sharing options...
alinajoseph Posted December 28, 2009 Share Posted December 28, 2009 hi to all... thanks for the information... now i have got some idea... health insurance tx Quote Link to comment Share on other sites More sharing options...
kalkal Posted February 2, 2011 Share Posted February 2, 2011 Howdy, I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself. I tried removing the mouseover effect but I still have the issue. Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you. BUMP********************** Has this been resolved yet? where should i look? Any help would be great! Quote Link to comment Share on other sites More sharing options...
broadstreetbully Posted February 7, 2012 Share Posted February 7, 2012 anyone have an updated version of this for 2.3.1??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.