Jump to content

olsonsp4c

Members
  • Content count

    545
  • Joined

  • Last visited

Everything posted by olsonsp4c

  1. the place to look would probably be admin/orders.php double check your edits in that file to make sure you didn't delete something important and compare it to RC2 original to see if there are missing lines using WinMerge... as my addon does not effect this function. also check admin/includes/classes/order.php and includes/classes/order.php Scott
  2. olsonsp4c

    [Contribution] - USPS Methods

    That looks like a good start Corey, here's a few edits that I think make it php friendly, but I'm no expert either. // item zero weight USPS shipping calc bypass and flag def item = ''; def index = '0'; foreach item (set item = item_model(to vector[attributes])) { def $shipping_weight = ''; if (item_model[element of shipping weight] == '0') { message(to_invoice(), html!to_browser() : 'The shipping for item X cannot be calculated thru the store interface, we will contact you will shipping details for the item and invoice you appropriately') } else {usual USPS shipping calc here} set index = (index+1); I think I see where you are going... let me know your progress here... Scott
  3. olsonsp4c

    USPS Shipping Insurance

    Nope, understand - I've done the same thing in installing addons beating my head against the wall all because I just misunderstood or misread the instructions... thanks for using my addon :) Scott
  4. olsonsp4c

    USPS Priority Mail Flat Rate Shipping

    Version 1.3 is out! Changes since v1.2 ------------------ * Added the capability to choose a minimum weight for both sizes of Priority Mail Flat Rate Boxes * Added the capability to choose a maximum weight for the large Priority Mail Flat Rate Box * Added the test - if the package weight is less than the small Priority Mail Flat Rate Box minimum weight or is greater than or equal to the large Priority Mail Flate Rate Box maximum weight, no flat rate option will appear on the checkout shipping page * Fixed Tax Class issue (was not showing up in the admin) * Removed duplicate key entry * Added support for international shipping * Updated the english file (description, link, naming, etc.) * Updated the description * Updated the screenshots * Updated the "what I could use help with" section Download it here: http://addons.oscommerce.com/info/5783 Scott (olsonsp4c)
  5. olsonsp4c

    [Contribution] - USPS Methods

    In the code there is a section which states that USPS does not accept 0 weight; however, you could mod that section of the code to accomplish what you want, I think. Here's the code that mods 0 weights to round up. // usps doesnt accept zero weight $shipping_weight = ($shipping_weight < 0.1 ? 0.1 : $shipping_weight); $shipping_pounds = floor ($shipping_weight); $shipping_ounces = round(16 * ($shipping_weight - floor($shipping_weight))); $this->_setWeight($shipping_pounds, $shipping_ounces); thanks for using this addon! Scott
  6. olsonsp4c

    USPS Priority Mail Flat Rate Shipping

    Ted, This should not be difficult to add, it would mean 1 additional database field and a compare statement... good idea - i'll work on it. Scott
  7. olsonsp4c

    [Contribution] - USPS Methods

    what version are you using? thanks! Scott
  8. olsonsp4c

    USPS Priority Mail Flat Rate Shipping

    Version 1.2 is out with minor changes: http://addons.oscommerce.com/info/5783 Scott
  9. olsonsp4c

    USPS Priority Mail Flat Rate Shipping

    if you wanted the envelope vs the boxes determined by weight it would not be difficult to add. Also, international would not be difficult to add, I'm planning on adding these things in the next month or so if you can wait :) also, here is the addon you are looking for: http://addons.oscommerce.com/info/4674 Scott
  10. olsonsp4c

    USPS Shipping Insurance

    I use an older version of the Paypal IPN, version 1.4 by windfif and it works very will and does pass things along properly. You might try that version. Scott
  11. The issue, I believe, was copying these two line into admin/orders.php that is not a part of the edit but is only there for placement (creates and extra } and messes with the if statements): tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } Scott
  12. Could you post the name of the file, the offending line of code before you inserted the } around delete confirm and the surrounding code highlighting the offending line, and the offending line of code after you inserted the } around delete confirm and the surrounding code highlighting the offending line. thanks! Scott
  13. olsonsp4c

    USPS Shipping Insurance

    Thanks for the clarity - it seems that it might be getting passed to Paypal actually... well, it might be - adding the insurance to the sub-total and then passing it on to Paypal, but there is extra coming from somewhere that is unaccounted for... also, have you looked at this: QUOTE(Aldebaran @ Dec 13 2007, 12:58 AM) * Hi, Running osCommerce 2.2-MS2 and installed the PayPal IPN module. Get no errors, but if you enter a discount code, it is NOT getting passed to PayPal. PayPal uses the full amount and charges the full amount to customer, whether they have a credit card or are using a PayPal account. I have the module set to aggregate, which others have said solved this issue, but this doesn't solve issue. When you go back to store, the order shows the discounted amount and so does the email sent to customer - so there's a big mismatch. All suggestions welcome rolleyes.gif Everything else appears to work normally. Jill I have the same problems as you. discount and insurance do not pass to paypal. I tried the following way. I am not sure it will solve the problem until my customer buy one product. do you set up any thing in paypal-->profile-->shipping calculation??? 1.) make sure you have your shipping mods. set up like you want in os. 2.)Log into your paypal account. 3.)Click on "profile" 4.)Click on "Set Up Shipping Calculations" 5.)Make sure there is NOTHING set up here. thanks! Scott
  14. olsonsp4c

    USPS Shipping Insurance

    I have released version 1.1a which addresses the Tax Class issue and correctly adds the insurance amount to the order total. http://addons.oscommerce.com/info/5782 Scott
  15. olsonsp4c

    USPS Shipping Insurance

    thanks for the update... i am out all day today, so I take a peek tomorrow. if you need to, temporarily disable the mod so you don't lose money. Scott
  16. olsonsp4c

    USPS Shipping Insurance

    A few more edits and let me know what happens: FIND this: $this->enabled = MODULE_OT_USPSINSURANCE_STATUS; ADD this AFTER: $this->tax_class = MODULE_OT_USPSINSURANCE_TAX_CLASS; FIND this: $this->output[] = array('title' => $this->title . ':', 'text' => $currencies->format($insurance, true, $order->info['currency'], $order->info['currency_value']), 'value' => ($insurance * $shipping_num_boxes)); ADD this AFTER: if ($this->tax_class > 0) { $this->output['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } Let me know... i'm off to bed, hope this works... Scott
  17. olsonsp4c

    USPS Shipping Insurance

    I just issued version 1.1 of this contribution: Changes since v1.0 ------------------ * Corrected the colspan to "3" instead of "4" in the second half of checkout_payment.php * Corrected the table alignment issues in checkout_payment.php * Added BEGIN and END comments to the stylesheet * Added the missing Tax Class database entry and corresponding code edits * Added update instructions http://addons.oscommerce.com/info/5782 Scott
  18. olsonsp4c

    USPS Shipping Insurance

    Did you update the sort order so that shipping insurance is numbered 1 higher than tax? could you clarify on the "both" versions of the checkout_confirmation.php file? I have not updated anything in this file (just the 1 edit - 1 added line)... Scott
  19. olsonsp4c

    USPS Shipping Insurance

    Joseph, You are correct. Could you let me know which Paypal Module and version you are using? One quick suggestion is to try making the same edit you made in checkout_confirmation.php to your Paypal file. Scott
  20. olsonsp4c

    USPS Shipping Insurance

    Kimm, I'm making mistakes... i apologize, it's late here in Portland. the changes should have read this: FIND this: return array('MODULE_OT_USPSINSURANCE_STATUS', 'MODULE_OT_USPSINSURANCE_INSURE_TAX', 'MODULE_OT_USPSINSURANCE_CHOICE', 'MODULE_OT_USPSINSURANCE_SORT_ORDER', 'MODULE_OT_USPS_INS1', 'MODULE_OT_USPS_INS2', 'MODULE_OT_USPS_INS3','MODULE_OT_USPS_INS4', 'MODULE_OT_USPS_INS5', 'MODULE_OT_USPS_INS6', 'MODULE_OT_USPS_INS7', 'MODULE_OT_USPS_INS8', 'MODULE_OT_USPS_INS9', 'MODULE_OT_USPS_INS10'); REPLACE with this: return array('MODULE_OT_USPSINSURANCE_STATUS', 'MODULE_OT_USPSINSURANCE_INSURE_TAX', 'MODULE_OT_USPSINSURANCE_TAX_CLASS', 'MODULE_OT_USPSINSURANCE_CHOICE', 'MODULE_OT_USPSINSURANCE_SORT_ORDER', 'MODULE_OT_USPS_INS1', 'MODULE_OT_USPS_INS2', 'MODULE_OT_USPS_INS3','MODULE_OT_USPS_INS4', 'MODULE_OT_USPS_INS5', 'MODULE_OT_USPS_INS6', 'MODULE_OT_USPS_INS7', 'MODULE_OT_USPS_INS8', 'MODULE_OT_USPS_INS9', 'MODULE_OT_USPS_INS10'); FIND this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_USPSFLAT_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); REPLACE with this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_OT_USPSINSURANCE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); for you at this point it just means changing MODULE_OT_USPSFLAT_TAX_CLASS to MODULE_OT_USPSINSURANCE_TAX_CLASS in the 1st REPLACE Scott
  21. olsonsp4c

    USPS Shipping Insurance

    oops, i forgot another... 1. Remove the module 2. make these changes FIND this: return array('MODULE_OT_USPSINSURANCE_STATUS', 'MODULE_OT_USPSINSURANCE_INSURE_TAX', 'MODULE_OT_USPSINSURANCE_CHOICE', 'MODULE_OT_USPSINSURANCE_SORT_ORDER', 'MODULE_OT_USPS_INS1', 'MODULE_OT_USPS_INS2', 'MODULE_OT_USPS_INS3','MODULE_OT_USPS_INS4', 'MODULE_OT_USPS_INS5', 'MODULE_OT_USPS_INS6', 'MODULE_OT_USPS_INS7', 'MODULE_OT_USPS_INS8', 'MODULE_OT_USPS_INS9', 'MODULE_OT_USPS_INS10'); REPLACE with this: return array('MODULE_OT_USPSINSURANCE_STATUS', 'MODULE_OT_USPSINSURANCE_INSURE_TAX', 'MODULE_OT_USPSFLAT_TAX_CLASS', 'MODULE_OT_USPSINSURANCE_CHOICE', 'MODULE_OT_USPSINSURANCE_SORT_ORDER', 'MODULE_OT_USPS_INS1', 'MODULE_OT_USPS_INS2', 'MODULE_OT_USPS_INS3','MODULE_OT_USPS_INS4', 'MODULE_OT_USPS_INS5', 'MODULE_OT_USPS_INS6', 'MODULE_OT_USPS_INS7', 'MODULE_OT_USPS_INS8', 'MODULE_OT_USPS_INS9', 'MODULE_OT_USPS_INS10'); FIND this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_USPSFLAT_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); REPLACE with this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_OT_USPSINSURANCE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); 3. Re-install and choose options... Hopefully it works! I made these changes on my test store and got the dropdown box... let me know! :) Scott
  22. olsonsp4c

    USPS Shipping Insurance

    That is the issue Kimm... this is the adjustment - i will update it in the next release - sorry about that: 1. Remove the order total module 2. Open includes/modules/order_total/ot_uspsinsurance.php FIND this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Insure Tax', 'MODULE_OT_USPSINSURANCE_INSURE_TAX', 'True', 'Insure tax on packages shipped by USPS?', '6', '2', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); AFTER add this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_USPSFLAT_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); 3. Re-install 4. Make the sort order appropriate and choose options it should work :) Scott
  23. Feel free to PM me or to email me. If you'd like to make a donation, I could give you my Paypal account there... Thanks! Glad the install is completed. Scott
  24. olsonsp4c

    USPS Shipping Insurance

    OK, change the code back to the way it was - let me check into your question and get back with you :) Scott
  25. it is a part of the addon (not order editor) Scott
×