This is a discussion on Going Postal within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; <ignore>Should you not understand what I am asking,not really care or are too intelligent to respond ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| <ignore>Should you not understand what I am asking,not really care or are too intelligent to respond to such a lame request please follow the code. I have been trying for days now to write the sql needed and code to change the insurance entrys in the USPS module to meet the new insurance rates. I have failed miserably and gave up about 3 beers ago. In domestic it currently has up to $50 $50-100 Per $100 It now needs to calculate the correct rates since they are not in the same increments as before. up to $50 ($1.65) $50-100 ($2.05) this is plus .40 100.01-200 ($2.45) this is plus .40 200.10-300 ($4.60) oops this is plus $2.15 this is why people go postal! Per $100 after that (.90 per $100) In International(this is harder) you now have International Priority as well as Express Mail both with different insurance rates. So you need boxes if someones selects international priority and boxes if the customer chooses Express Mail Express Mail $100-$200 .75 Per $100 after that $1.35 International Priority Up to $50 ($2.40) Up to $100 ($3.30) Per $100 after ($.90) So after screwing up trying to put the boxes in to add those changes and have them line up with the customers selection of service I am groveling for some help.</ignore> PS All credit for the code <tags> that was used in the above post goes to JPF |
|
#2
| ||||
| ||||
| You used the tags incorrectly - I ignored the whole thing.... Hehehe use: If (don't_understand_what_I_am_getting_at = TRUE) { put it in here } Hehehe Did you edit the USPS.PHP file? mainly: PHP Code: Last edited by jpf; 05-29-2007 at 08:15 AM. Reason: Sorry distracted and forgot php tags. |
|
#3
| |||
| |||
| Thank you for your reply. Sorry for the incorrect code. I told you it was 3 beers ago I have messed a bunch with the USPS.php file when I get some time today I will look at the code you put in but I believe on a quick glance I had something similar, my main problem possibly is in mysql,getting the boxes to show in admin properly and in the right order plus the biggie is now there are 2 different insurances for International Exrpess Mail and International Priority Mail and trying to figure out how in admin to differentiate between the 2. Some sort of } elseif Did that make sense? I am super busy today and typed this quick. |
|
#4
| |||
| |||
| Jpf yes that is the code I changed but I realized I had a fatal error Fatal error: Call to a BRAIN function on Miller-Light in \catalog\includes\modules\bkpiesbrain.php on all lines I missed changing the code below that here: return array('MODULE_SHIPPING_USPS_STATUS', 'MODULE_SHIPPING_USPS_USERID', 'MODULE_SHIPPING_USPS_PASSWORD', 'MODULE_SHIPPING_USPS_SERVER', 'MODULE_SHIPPING_USPS_HANDLING', 'MODULE_SHIPPING_USPS_TAX_CLASS', 'MODULE_SHIPPING_USPS_ZONE', 'MODULE_SHIPPING_USPS_SORT_ORDER', 'MODULE_SHIPPING_USPS_OPTIONS', 'MODULE_SHIPPING_USPS_TYPES', 'MODULE_SHIPPING_USPS_TYPES_INTL', 'MODULE_SHIPPING_USPS_INS1', 'MODULE_SHIPPING_USPS_INS2', 'MODULE_SHIPPING_USPS_INS3','MODULE_SHIPPING_USPS_ INS4', 'MODULE_SHIPPING_USPS_INS5', 'MODULE_SHIPPING_USPS_INS6','MODULE_SHIPPING_USPS_ INS7','MODULE_SHIPPING_USPS_INS8','MODULE_SHIPPING _USPS_INSURE','MODULE_SHIPPING_USPS_INSURE The domestic works perfectly now and I will attach my usps.php module here if someone wants the insurance on domestic to work they can use my changes. There are 3 sections that need to be changed. Use a compare tool. My problem now is there is only one calculation for Insurance for International mail which means I can put in the correct amounts for either International priority or Express Mail International but not both since each now have different insurance rates. How do I change it to handle both. That is where I am really stumped. Thanks in advance |
|
#5
| ||||
| ||||
| |
|
#6
| |||
| |||
| Already did and am using that but it does not cover the insurance part of the module. That is why I had to rewrite the usps.php code for the domestic insurance. The post office used to only have one set of rates for International but now it depends on the service you choose. I just can't get it to seperate the insurance rate for International Express mail which is .75 then 1.35 per $100 from International Priority which has a completely different set of insurance rates. Right now I just have a disclaimer on the site for International and use the more expensive insurance rates. |
|
#7
| |||
| |||
| I insstalled this module, but it will not let me edit is. I get the error message: Fatal error: Call to undefined function: tep_cfg_select_multioption() in /Users/spcalia/Sites/dusty/shopping/catalog/admin/modules.php(213) : eval()'d code on line 1 |
|
#8
| |||
| |||
| Which version are you using. The latest at oscommerce at jpf's link above? Did you un-install and re-install in the admin section? Have you replaced your usps.php file in modules? |
|
#9
| |||
| |||
| bkpie asks: Which version are you using. The latest at oscommerce at jpf's link above? Did you un-install and re-install in the admin section? Have you replaced your usps.php file in modules? ############################################## I am using oscommerce-2.2rc2a I did not un-install and re-restall the admin. I did replace usps.php in the includes/modules |
|
#10
| |||
| |||
| Since you did replace the usps.php then you have to go to admin then to modules shipping remove usps then click install again. If that doesent work you may have a corrupted usps.php some later versions were released since mine here osCommerce: USPS Methods |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| United States Postal Service | Btwixt_Group | osCommerce 2.2 Installation Help | 3 | 12-21-2004 03:42 PM |
| Postal Countries Are Dated and Funny | AceDog | osCMax v1.7 Discussion | 0 | 04-02-2004 06:06 AM |
| Postal code label and input box shifted left after move | cvc505 | osCommerce 2.2 Installation Help | 0 | 06-09-2003 07:56 PM |