Jump to content

spiritalan

Members
  • Content count

    192
  • Joined

  • Last visited


Reputation Activity

  1. Like
    spiritalan got a reaction from draco003 in Unable to Edit USPS module in Admin   
    I've been able to make it work for me. For me, the problem was the addition of the USPS Registration Tradmark by the coders. The problem focused with the new code in catalog/admin/includes/functions/general.php. Some code I had to install and some I left out. You may want try this out. BE SURE TO BACKUP. When following the installation instructions in USPS Methods Ver. 5.2.1 provided by fulluvscents, when you come to Step 9. at the correct place to insert as shown, Insert the following (you may already have this code there if you have an earlier version of USPS Methods):
     

    // USPS Methods 3.0 // Alias function for Store configuration values in the Administration Tool function tep_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'; $string .= '> ' . $select_array[$i]; } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; }
     
    Next, The following code may be used in lieu of step 10. (again, you may already have this code inserted). You insert the following code after the code given above in this post.

    // USPS Methods. Added by Greg Deeth // Alias function for Store configuration values in the Administration Tool. function tep_cfg_multiinput_list($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); for ($i=0; $i<sizeof($select_array); $i++) { $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" value="' . $key_values[$i] . '"> ' . $select_array[$i]; } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; } // USPS Methods. Added by Greg Deeth // Alias function for Store configuration values in the Administration Tool. function tep_cfg_multiinput_duallist_oz($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; } function tep_cfg_multiinput_duallist_lb($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; }
     
    Follow the rest of the instructions starting from step 11.. Again, some of this code may be already inserted depending if you used an earlier version of USPS Methods.
     
    After you install the information I gave you, you will not be able to see USPS registration trademarks in the Admin section but you should be able to see them on checkout in the store. In the Admin, USPS configuration section, you will have "regimark" where a registration trademark would go.
     
    Also, for some extra info that might not be applicable, I did not do step 5.a., 5.b, or 8.
     
    Hope this works for you. I am not a coder, just a cut and paster.
    Alan
  2. Like
    spiritalan reacted to a.forever in USPS Rate V4, Intl Rate V2 (official support thread)   
    Alan,
     
    I noticed that 5 minutes after I uploaded the beta. That's why it's a beta. Again, use at your own risk.
     
    It's been reworded and I'm just about to test it. The fields for handling correspond to the quantity of methods checkmarked. For example, if for Domestic Shipping Methods you checkmarked
     
    Method 1 - First-Class Mail® Letter
    Method 5 - Standard Post®
    Method 7 - Priority Mail™ Flat Rate Envelope
     
    Then for Domestic Flat Handling Fees, use only the first 3 lines (currently worded as First-Class regimark Letter, First-Class regimark Large Envelope, First-Class regimark Parcel).
  3. Like
    spiritalan reacted to a.forever in USPS Rate V4, Intl Rate V2 (official support thread)   
    Kudos to @@FlyingKites for providing a working usps.php file. I've fixed the file so that custom handling for USPS domestic services properly adds. After some testing, I'll attach the file in a new thread (or on the old USPS Methods thread). I've tried fixing this USPS Rate V4, Intl Rate V2 contribution to no avail.
  4. Like
    spiritalan got a reaction from mabiem in USPS Rate V4, Intl Rate V2 (official support thread)   
    @@FlyingKites could you post your contribution in the USPS Methods thread. Let's move over there. I am hesitant to communicate in this thread because it is for another contribution. Nevertheless like others who have already posted, your contribution does not add in the domestic handling fee. I haven't tried it yet for International. Thanks for the work though.
    Alan
  5. Like
    spiritalan got a reaction from fqstore in USPS METHODS NOT WORKING?   
    For me, shipping quotes are showing up but they are incorrect. With the handling fee taken into account, the quotes do not match the quotes from USPS website.
×