Shipstation looks awesome... unfortunately it starts at $25/month and since I'm just launching my business... I don't even know if I'll MAKE that much a month at first. My dad is willing to let me share his Stamps.com account (hey, it's in the same family!), so I am going that route at least for now.
The Google Checkout module doesn't let you set the order status at all... it creates several new order statuses and uses those:
Google New
Google Processing
Google Digital Proccessed
Google Shipped
Google Refunded
Google Shipped and Refunded
Google Canceled
As far as editing the Stamps.com files, they tell you right in the file where to edit it to add order statuses. I tried it following their instructions but failed. I patterned my addition on what was there... but I think the space in "Google Processed" is throwing it off. Maybe. Or maybe it's something else entirely. Here is what I did:
Default code in ShippingZSettings.php:
Code:
# To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses"
#
define("ZENCART_RETRIEVE_ORDER_STATUS_1_PENDING",0);
define("ZENCART_RETRIEVE_ORDER_STATUS_2_PROCESSING",1);
define("ZENCART_RETRIEVE_ORDER_STATUS_3_DELIVERED",0);
define("ZENCART_RETRIEVE_ORDER_STATUS_4_UPDATE",0);
Instructions referred to above:
Code:
# Say you want the system to retrieve an order status in addition to what is already coded here.
# How?
# There are two areas to modify. This settings file, and the php file for your platform.
# Here is an example for OsCommerce (can be used for most other php based systems):
# Step 1: Add to this settings file (without the leading # comment symbol):
# define("OSCOMMERCE_RETRIEVE_ORDER_STATUS_4_PAID",1);
# Step 2: Modify ShippingZOscommerce.php
# Add to this section:
# //Prepare order status string based on settings
# if(OSCOMMERCE_RETRIEVE_ORDER_STATUS_4_PAID==1) // if set to 1 in Settings
# {
# if($order_status_filter=="")
# {
# $order_status_filter.="orders_status=ZZZ";
# }
# else
# {
# // The ZZZ is the actual value in the database as the order_status for Paid
# // For the status you want to retrieve, look in the database to find the real value
# // and use it in this code
# $order_status_filter.=" OR orders_status=ZZZ";
#
My edits to ShippingZSettings.php (I did as instructed above and looked in the database--the 'Google Processed' order_status is "101" whereas, for example, 'Processing' is "2":
Code:
define("ZENCART_RETRIEVE_ORDER_STATUS_1_PENDING",0);
define("ZENCART_RETRIEVE_ORDER_STATUS_2_PROCESSING",1);
define("ZENCART_RETRIEVE_ORDER_STATUS_3_DELIVERED",0);
define("ZENCART_RETRIEVE_ORDER_STATUS_4_UPDATE",0);
define("ZENCART_RETRIEVE_ORDER_STATUS_101_GOOGLE_PROCESSED",1);
My edit/addition to ShippingZZencart.php:
Code:
if(ZENCART_RETRIEVE_ORDER_STATUS_101_GOOGLE_PROCESSED==1)
{
if($order_status_filter=="")
{
$order_status_filter.=" orders_status=101 ";
}
else
{
$order_status_filter.=" OR orders_status=101 ";
}
}
Now what I'm not clear about, is that they only tell you to use that database number for the second $order_status_filter line... the first one, where it says ZZZ, are you supposed to put something else? The pattern for all the others is to have the same number in both places, so that is what I did...
Bookmarks