System > Transactional Emails section. Specifically, the template # named "New Shipment" is emailed if this is set to 1. define("Magento_SendsShippingEmail",0); define("Magento_SendsShippingEmail_AddComments",0); // defaults to 0, False, which suppresses our comments in "new shipment" notification email #=================================================== # # Setting below, Magento_SendsBuyerEmail, # # If set to 1, causes Magento to send the "Order Update to buyer" email template configured in # Magento's Admin > System > Transactional Emails section. Specifically, the template # named "Order Update" is emailed to buyer if this is set to 1. Further, comments about the shipment # are merged into this email define("Magento_SendsBuyerEmail",0); # ############################################## END Magento Section ################################################## # ############################################## Magento Users Continue through the All Users section ###################### # # ################################################### BEGIN All Users Section ############################################## # ############################################# Please Read These Instructions ####################################### # # Your Attention Please ! # # There are three steps to take: # # 1) Create & configure a random SHIPPING_ACCESS_TOKEN # 2) .NIX systems: Run chmod on the php files # 3) ZenCart, OSCommerce & CRE Loaded: Configure this file with your "admin" directory # # Stamps WILL NOT FUNCTION until you take these steps! # # Step 1: Create & configure a random SHIPPING_ACCESS_TOKEN Please take these steps: # 1) Go to http://www.pctools.com/guides/password/ (you can use another random password generator if you like) # 2) Check ALL the boxes EXCEPT the punctuation box # 3) Set the LENGTH to 31 # 4) Press the Generate Password button # 5) Copy the generated password value to the clipboard # 6) Now, in THIS file (ShippingZSettings.php): # Go to the SHIPPING_ACCESS_TOKEN line below. Paste the random password from step 5 above in over the "CHANGE THIS" -- Note: keep the "quotes" # Example: define("SHIPPING_ACCESS_TOKEN","CHANGE THISgAst"); # 7) Upload the full kit of files to the root directory of your ecommerce system # (This is the root directory of the web store containing 'index.php'). # (Yes, it is OK to omit the files for other ecommerce systems. E.g. a Magento user # can remove the Zencart and Oscommerce files.) # 8) Continue through the Stamps wizard. # 9) When the Stamps wizard prompts for the Access Token, enter the token you used in step 4 above. # # Step 2: ZenCart, OSCommerce & CRE Loaded: If your "admin" directory has been changed from "admin" # (hint: it usually IS changed), this needs to be set in the relevant "ADMIN_DIRECTORY" setting below. # # Step 3: .NIX systems: In your store root directory, where these Shipping*.php files are, set all the Shipping*.* # files to permission: 444. # This can be done from many FTP clients. # From a shell prompt, in the directory where the Shipping*.* files reside, run this chmod command: # chmod 0444 Shipping*.php (This sets the files to read only, no-execute, required by SuExec and other systems) # ############################################## All Users Settings ####################################### define("SHIPPING_ACCESS_TOKEN","FewrujEsPUtrUPHeheth9w68wuqafra"); // See steps above to set this -- REQUIRED ! ############################################## Retrive Order Status & Update Order status Settings ####################################### ################################################ Only for Zencart Users ############################################ # # 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); # Next question: How do you work with the Zencart Order Status? # In other words, when an order is shipped, should the order # always be set to DELIVERED in Zencart? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: DELIVERED. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Zencart. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Delivered) define("ZENCART_SHIPPED_STATUS_SET_TO_STATUS_3_DELIVERED",1);//Default is 1 define("ZENCART_ADMIN_DIRECTORY","admin"); // = /admin/ ################################################ Only for Oscommerce Users ############################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # define("OSCOMMERCE_RETRIEVE_ORDER_STATUS_1_PENDING",0); define("OSCOMMERCE_RETRIEVE_ORDER_STATUS_2_PROCESSING",1); define("OSCOMMERCE_RETRIEVE_ORDER_STATUS_3_DELIVERED",0); # Next question: How do you work with the Oscommerce Order Status? # In other words, when an order is shipped, should the order # always be set to DELIVERED in Oscommerce? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: DELIVERED. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Oscommerce. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Delivered) define("OSCOMMERCE_SHIPPED_STATUS_SET_TO_STATUS_3_DELIVERED",1);//Default is 1 define("OSCOMMERCE_ADMIN_DIRECTORY","admin"); // = /admin/ ################################################ Only for CRELOADED Users ############################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # define("CRELOADED_RETRIEVE_ORDER_STATUS_1_PENDING",0); define("CRELOADED_RETRIEVE_ORDER_STATUS_2_PROCESSING",1); define("CRELOADED_RETRIEVE_ORDER_STATUS_3_DELIVERED",0); # Next question: How do you work with the Creloaded Order Status? # In other words, when an order is shipped, should the order # always be set to DELIVERED in Creloaded? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: DELIVERED. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Creloaded. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Delivered) define("CRELOADED_SHIPPED_STATUS_SET_TO_STATUS_3_DELIVERED",1);//Default 1 define("CRELOADED_ADMIN_DIRECTORY","admin"); // = /admin/ ################################################ Only for Magento Users ############################################### # This next section controls which order statuses are read from Magento. # Setting to 0 (zero) turns off retrieval of that status. # Setting to 1 (one) turns on retrieval of that status. # By default, all statuses are retrieved EXCEPT for "Pending" define("MAGENTO_RETRIEVE_ORDER_STATUS_1_PENDING",0); // default 0 define("MAGENTO_RETRIEVE_ORDER_STATUS_2_PROCESSING",1); // default 1 define("MAGENTO_RETRIEVE_ORDER_STATUS_3_COMPLETE",1); // default 1 define("MAGENTO_RETRIEVE_ORDER_STATUS_4_CLOSED",1); // default 1 define("MAGENTO_RETRIEVE_ORDER_STATUS_4_CANCELLED",1); // default 1 # # Next question: How do you work with the Magento Order Status? # In other words, when an order is shipped, should the order # always be set to COMPLETE in Magento? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: COMPLETE. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Magento. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Complete) define("MAGENTO_SHIPPED_STATUS_COMPLETE_ALL_SHIPPED_ORDERS",1);// Default is 1 # # Gift message settings. Controls whether the Magento Gift Message is retrieved. # A setting of 1 means Yes. # Normally, only one of these two options would be set to 1. define("Magento_RetrieveOrderGiftMessage",1); // ( default is 1 ) define("Magento_RetrieveProductGiftMessage",0); // ( default is 0 ) # # Store Settings: # - If you have only one store in your Magento system, please ignore the following. # - If you have multiple stores, and want to retrieve orders from all stores, please ignore the following! # - If you want to retrieve orders from only one store in a multi-store environment, set the following to # the "Store Code" to service. # - Note: At this time, we do not support retrieving from "multiple stores but not all stores." # # TO FIND THE STORE CODE: # - In the Magento Admin Panel, navigate to System | Manage Stores # - You get a list of stores. # - Click on the store. You now see the "Edit Store View" screen. # - The code to use for this next setting is the "Code" value. # For example, if the Code is "shoestore1" then the line below would read: # define("Magento_Store_Code_To_Service","shoestore1"); define("Magento_Store_Code_To_Service","softstar"); // default -ALL-, which retrieves from all stores on the Magento system ################################################ Only for Xcart Users ################################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # # The setting QUEUED below will retrieve both QUEUED and Pre_Authorized orders (if set to 1). define("XCART_RETRIEVE_ORDER_STATUS_1_QUEUED",0); define("XCART_RETRIEVE_ORDER_STATUS_2_PROCESSED",1); define("XCART_RETRIEVE_ORDER_STATUS_3_COMPLETE",0); # # Next question: How do you work with the Xcart Order Status? # In other words, when an order is shipped, should the order # always be set to COMPLETE in Xcart? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: COMPLETE. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Xcart. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Complete) define("XCART_SHIPPED_STATUS_SET_TO_STATUS_4_COMPLETE",1);//Defaults 1 ################################################ Only for Ubercart Users ############################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # define("UBERCART_RETRIEVE_ORDER_STATUS_1_PENDING",1); define("UBERCART_RETRIEVE_ORDER_STATUS_2_PAYMENT_RECEIVED",1); define("UBERCART_RETRIEVE_ORDER_STATUS_3_PROCESSING",1); define("UBERCART_RETRIEVE_ORDER_STATUS_4_DELIVERED",1); # Short Explanation: # If this is set to 1, then, when shipped, orders of # STATUS 1 (Pending), STATUS 2 (Payment Receive) and STATUS 3 (processing) will be # set to STATUS 4 (Complete) define("UBERCART_SHIPPED_STATUS_SET_TO_STATUS_4_COMPLETE",1);//Defaults 1 ################################################ Only for Drupal7 with commerce Users ############################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # define("DRUPAL_RETRIEVE_ORDER_STATUS_1_PENDING",1); define("DRUPAL_RETRIEVE_ORDER_STATUS_2_PAYMENT_RECEIVED",1); define("DRUPAL_RETRIEVE_ORDER_STATUS_3_PROCESSING",1); define("DRUPAL_RETRIEVE_ORDER_STATUS_4_DELIVERED",1); # Short Explanation: # If this is set to 1, then, when shipped, orders of # STATUS 1 (Pending), STATUS 2 (Payment Receive) and STATUS 3 (processing) will be # set to STATUS 4 (Complete) define("DRUPAL_SHIPPED_STATUS_SET_TO_STATUS_4_COMPLETE",1);//Defaults 1 ################################################ Only for CS-Cart Users ############################################ # # To retrieve statuses in addition to those here, see the section below "Adding New Order Statuses" # define("CSCART_RETRIEVE_ORDER_STATUS_1_OPEN",1); define("CSCART_RETRIEVE_ORDER_STATUS_2_PROCESSED",1); define("CSCART_RETRIEVE_ORDER_STATUS_3_COMPLETE",1); # Short Explanation: # If this is set to 1, then, when shipped, orders of # STATUS 1 (Open), STATUS 2 (Processed) will be # set to and STATUS 3 (Complete) define("CSCART_SHIPPED_STATUS_SET_TO_STATUS_4_COMPLETE",1);//Default is 1 ################################################ Only for Opencart Users ############################################ define("OPENCART_RETRIEVE_ORDER_STATUS_1_PENDING",0); define("OPENCART_RETRIEVE_ORDER_STATUS_2_PROCESSING",1); define("OPENCART_RETRIEVE_ORDER_STATUS_3_SHIPPED",0); # Next question: How do you work with the Opencart Order Status? # In other words, when an order is shipped, should the order # always be set to SHIPPED in Opencart? # # If you only ship orders that are in a PROCESSING state, you can leave # the setting below alone. When shipped, they will be moved automatically to the next # status: SHIPPED. # # However, if you have PENDING orders being retrieved (see setting above) # AND when shipped, you want those orders to move to a status of # PROCESSING, then the setting below should be set to 0 (zero) # # In all cases, when shipped, the tracking # is posted into Opencart. # # Short Explanation: # If this is set to 1, then, when shipped, orders of # BOTH STATUS 1 (Pending) and STATUS 2 (Processing) will be # set to STATUS 3 (Shipped) define("OPENCART_SHIPPED_STATUS_SET_TO_STATUS_3_SHIPPED",1);//Defaults 1 ############################################## System Settings for Tech Support Only ############################## define("HTTP_GET_ENABLED",1);//allow get method define("GetUnshippedOrdersOnly",0);//set 1 to get unshipped orders only ############################################## Adding New Order Statuses ##################################### # 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"; # ############################################## Legal Notices ###################################################### # ################################################################################ # # (c) 2010 Z-Firm LLC, ALL RIGHTS RESERVED. # Licensed to current Stamps.com customers. # # The terms of your Stamps.com license # apply to the use of this file and the contents of the # Stamps_ShoppingCart_Integration_Kit__See_README_file.zip file. # # This file is protected by U.S. Copyright. Technologies and techniques herein are # the proprietary methods of Z-Firm LLC. # # For use only by customers in good standing of Stamps.com # # # IMPORTANT # ========= # THIS FILE IS GOVERNED BY THE STAMPS.COM LICENSE AGREEMENT # # Using or reading this file indicates your acceptance of the Stamps.com License Agreement. # # If you do not agree with these terms, this file and related files must be deleted immediately. # # Thank you for using Stamps.com! # ################################################################################ ?>