Jump to content

greasemonkey

Members
  • Content count

    1,333
  • Joined

  • Last visited

  • Days Won

    25

greasemonkey last won the day on June 11

greasemonkey had the most liked content!

Profile Information

  • Real Name
    Scott
  • Gender
    Male

Recent Profile Visitors

30,466 profile views
  1. greasemonkey

    ShipStaion for OsCommerce

    Hi Brian @rastlin the file seems to be in the right place (just confirm the URL is correctly set in ShipStation - to the one I sent you in the PM). And also confirm the Unpaid Status and Paid Status in ShipStation are correct as mentioned above. They should be; unpaid paid1, paid
  2. greasemonkey

    ShipStaion for OsCommerce

    I sent you a PM.... but first try in ShipStation to change your connection status' to: Unpaid Status to unpaid Paid Status to "paid1, paid" (just like that with the comma - without the quotes)
  3. greasemonkey

    ShipStaion for OsCommerce

    Ok, and a screen shot of your orders status.... www.mystore.com/admin/order_status.php
  4. greasemonkey

    ShipStaion for OsCommerce

    @rastlin lets see.... despite the error, will it allow you to connect (hit connect not test connect)? Also, can you take a screen shot (mask your store url username and password) of your details here
  5. greasemonkey

    ShipStaion for OsCommerce

    @rastlin No I have not had any issues connecting this to any site. The file goes in your root or catalog directory - the same place that you find files such as shopping_cart.php, checkout_shipping.php etc. Example: http://www.mystore.com/shipstation_osc.php or http://www.mystore.com/catalog/shipstation_osc.php (you may have renamed the catalog like you mentioned above) http://www.mystore.com/oscommerce/shipstation_osc.php If you use ssl/https on the catalog side of your store then you need to ensure (step 4 in the instructions) the path to the file in the shipstation setup is https (ie look at your index.php does it have https - yes or no). Example: https://www.mystore.com/shipstation_osc.php or https://www.mystore.com/catalog/shipstation_osc.php (you may have renamed the catalog like you mentioned above) https://www.mystore.com/oscommerce/shipstation_osc.php Make sure the admin credentials you used in the shipstation setup are correct. Also, confirm, you have new orders in your store for SS to get and that your "pending" order status and the pending order status=1. You can confirm by navigating to https://mystore.com/admin/orders.php?status=1
  6. greasemonkey

    ShipStaion for OsCommerce

    @rastlin I use it everyday 50 to 100 orders. note: this app is for ShipStation not Shipworks
  7. greasemonkey

    UPS XML 1.7 for Phoenix

    @ecartz I'm testing your hook today... And not having much success. The hook seems to registered (only cause I forgot to rename the class from hook_admin_modules_whatever to hook_admin_modules_canadapost it gives a warning). But will not seem to work. I've modified admin/modules.php to be: $OSCOM_Hooks->call('modules', 'preAction'); $action = (isset($_GET['action']) ? $_GET['action'] : ''); Do note: I'm working with the Canada Post module .... (if this needs to be moved to that thread... mods please do so). Was anyone able to get this working with UPS? The core change to admin/modules.php for UPS and Canada Post are identical however - and do work: if (is_array($value) ) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } However the hook (which I have tried exactly as above) and also modified to be identical to the original (below) <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class hook_admin_modules_canadapost { function listen_preAction() { if (isset($_GET['module']) && 'canadapost.php' == $_GET['module'] && isset($_GET['action']) && 'save' == $_GET['action'] && isset($_POST['configuration'])) { foreach ($_POST['configuration'] as $key => &$value) { if (isset($value) && is_array($value)) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } } unset($value); } } } Does not work. Both "save" into the DB as "Array" I can print_r the array... but can't save the array.
  8. greasemonkey

    UPS XML 1.7 for Phoenix

    Thank you for the explanation - makes sense.
  9. greasemonkey

    UPS XML 1.7 for Phoenix

    @ecartz Although my skills are basic (if not already obvious...lol) , I was under the impression we now had site wide hooks in Phoenix. Is admin/modules.php not covered under these hooks?
  10. greasemonkey

    UPS XML 1.7 for Phoenix

    I’ll try that thank you kindly @ecartz
  11. greasemonkey

    canada.post.rest.rate.service.oscommerce.V2.3

    So coders, assuming I'm correct (in my testing I am...lol). How do we take the add to admin/modules.php if (is_array($value) ) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } And incorporate it with the the actual shipping modules set function (in my very limited skill - the set function is building an array, which when saved, modules.php with the additional code above, is imploding the or replacing (???) the array before inserting into the configuration value) function upsxml_cfg_select_multioption($select_array, $key_value, $key = '') { $string = ''; $key_values = explode( ", ", $key_value); for ($i=0, $n=sizeof($select_array); $i<$n; $i++) { $name = ((tep_not_null($key)) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br /><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"'; if (in_array($select_array[$i], $key_values)) $string .= ' CHECKED'; $string .= '> ' . $select_array[$i]; } return $string; } Sorry for the cross post mods.... I was trying to keep this in one place but messed up....
  12. greasemonkey

    UPS XML 1.7 for Phoenix

    ***
  13. greasemonkey

    canada.post.rest.rate.service.oscommerce.V2.3

    I've figured out the issue - just not sure how to fix it yet...
  14. greasemonkey

    UPS XML 1.7 for Phoenix

    @TomB01 hey Tom, I mentioned I was trying to update the Canada Post module, which is based on this UPS module.... Anyway, I figured out my issue (real amateurish...😜) and I'm guessing you may be having the same issue. Did you make the edit from the original instructions to admin/modules.php???? Adding if (is_array($value) ) { $value = implode( ", ", $value); $value = preg_replace ("/, --none--/", "", $value); } It would go after the below (line 35 in a fresh copy): if (tep_not_null($action)) { switch ($action) { case 'save': foreach ($_POST['configuration'] as $key => $value) { Give it a try and report back... Like I said, this was my issue.... I'll need some help so we don't require this edit to a core file???? Anyone?
  15. greasemonkey

    canada.post.rest.rate.service.oscommerce.V2.3

    Working on updating this for Phoenix - and I'm having one issue (which I believe I've confused with a similar issue on the UPS XML thread) Thank you @azpro and @ecartz for your help... and sorry if I caused any additional confusion... The issue I'm having is when "disallowing" a shipping service I'm receiving the following error: Disallow array is built here: tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Disallowed Shipping Methods', 'MODULE_SHIPPING_CANADA_POST_TYPES', '', 'Select the Canada Post services <span style=\'color: red; font-weight: bold\'>not</span> to be offered.', '6', '12', 'get_multioption_canadapost_xml', 'canadapost_cfg_select_multioption(array(\'D.RP\',\'D.EP\',\'D.XP\',\'D.XP.CERT\',\'D.PC\',\'D.LIB\',\'U.EP\',\'U.PW.ENV\',\'U.PW.PAK\',\'U.PW.PARCEL\',\'U.SP.AIR\',\'U.SP.SURF\',\'U.XP\',\'I.XP\',\'I.IP.AIR\',\'I.IP.SURF\',\'I.PW.ENV\', \'I.PW.PAK\',\'I.PW.PARCEL\',\'I.SP.AIR\',\'I.SP.SURF\'),', now())"); With this function: function canadapost_cfg_select_multioption($select_array, $key_value, $key = '') { for ($i=0; $i<sizeof($select_array); $i++) { $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"'; $key_values = explode( ", ", $key_value); if ( in_array($select_array[$i], $key_values) ) $string .= ' checked="checked"'; $string .= '> ' . constant('CANADA_POST_' . get_canada_post_service_code($select_array[$i])); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; } It would seem the result of the function = Array ... Inputting "Array" into the DB as the "disallowed" service (in place of the service code) .... hence why it cannot find the constant.... As a test, I can manually remove Array from the DB and replace it with any (multiple service codes) and it works perfectly. I have no issues on Gold, Edge/Frozen... I've attached a screen cap....
×