Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

natrium42

Pioneers
  • Posts

    141
  • Joined

  • Last visited

Posts posted by natrium42

  1. When the label is created is there a way to capture the tracking number into a variable?

    PayPal doesn't return it unfortunately. But there are two ways that it could be done:

    (1) Route PayPal emails to a script that parses out the tracking number and updates the order

    (2) Use phpOCR or similar to read the tracking number from the GIF label

  2. my host company restored the backup and it is still not working. Did Canada Post change something? Am I the only one?

    They seem to have some kind of outages with their servers. I wasn't even able to login from the Canada Post website for some time. It just said that password is wrong... But it's working again now.

     

    Always check first if you can login manually to see if it's a problem on their end.

  3. OK, so there are two separate and independent shipping parts in osCommerce:

    1. shipping module: quotes prices to your customers

    2. shipping labels module: lets you print labels from the admin backend

     

    You said that for 1. zone rates works well for you. Now as far as I understand you used to ship the orders from paypal.com? Because that's actually eBay shipping, none of the other payment processors have that.

    This is where 2. comes into play. There are two modules worth looking into for your case:

    usps shipping labels (should work out of the box)

    PayPal Automated Labels (would have to be adjusted to work with USPS)

     

    Once you install one of these mods, you'll be able to ship directly from admin.

  4. I'm new to OSCommerce and want to install the Canada Post Module. However, just wondering if anyone regularly updates this module? I don't want our business to halt because nobody has been able to update the code to meet future Canada Post criteria. I'm not a programmer and have limited knowledge of PHP. Should I look elsewhere for an e-commerce solutions? Any feedback would be appreciated!

    I don't recommend using this module, since it's not being updated and since it's an unnecessary Frankenstein-mix of the following two modules:

    CanadaPost Shipping Module for showing your customers all available options and rates

    Canada Post Automated Labels for generating shipping labels in your backend

    It's better to use those directly as they are more recent and each is updated at its own pace.

     

    If you want to also ship Canada Post Light Packets Air, you can do so via the PayPal Automated Labels module, as this is not available directly though Canada Post website.

     

    If your shipping rates with Canada Post aren't great, you could use eShipper Integration Module in your backend for better rates when generating labels (this applies to Regular, Expedited, Xpresspost and Priority). Try eShipper quotes first to see if their rates are better.

     

    If starting from scratch, I would probably go with the free Magento eCommerce solution. osCommerce is too dated...

  5. Whoops, looks like I missed to include the changes to admin/includes/functions/ship_canadapost.php

    You need to add this function at the end of that file:

    function cp_post_var($var) {
     if(get_magic_quotes_gpc()) {
       return stripslashes($_POST[$var]);
     } else {
       return $HTTP_POST_VARS[$var];
     }
    }

    I fixed this in the package with version 1.2.3.

  6. where can i modify the contents of this email?

    See the variable $email_txt in admin/ship_paypal.php

     

     

    also, is it possible to pass the parcel id into the order comments? right now i'm doing that manually and it's a bit tedious for a large number of parcels.

    The tracking number isn't actually returned by PayPal. You could route PayPal emails to a script that would parse out the tracking number and add into osC. Another way would be to add functions to check the shipping history in PayPal and parse out the tracking numbers. Both ways aren't really smooth, so I decided against including them, as I only use the module for light packets myself.

     

    now, oddly enough, when i search the customer's order history, the status says "shipped" ... do i also have to edit something in the order_status_history table for the correct status name to show?

    Whoops, it's a bug. Here is the fix:

     

    // change the following line in admin/ship_paypal.php
     tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $order_id . "', '4', now(), '" . $customer_notified . "', '" . $status_comments  . "')");
    // to
     tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $order_id . "', '" . tep_db_input(PAYPAL_ORDER_STATUS_SHIPPED) . "', now(), '" . $customer_notified . "', '" . $status_comments  . "')");

×
×
  • Create New...