WooCommerce: Shipstation plugin is broken [solved]

I worked with a client who uses the Shipstation plugin. After updating to the latest version of WooCommerce (2.2), the plugin stopped working and its tab under “settings” could not be clicked. On top, some of the dropdowns got broken. Here’s the fix, hoping that Shipstation updates the plugin asap.

Fix 1: make Shipstation tab clickable in WooCommerce 2.2


// Look for "woocommerce" and change it to "wc-settings" in the function below

function tab() {
	$class = 'nav-tab';
	if ( $this->current_tab == 'woo_ss' ) $class .= ' nav-tab-active';
	echo '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=woo_ss' ) . '" class="' . $class . '">ShipStation</a>';
}

Fix 2: fix the Shipstation “import” dropdown in WooCommerce 2.2


// Look for "options > array" and instead of the current value enter order statuses manually

'name' => __( 'Order Status to move it to when the shipnotify action is presented', $this->domain ),
		'desc' => '',
		'tip' => '',
		'id' => 'woo_ss_import_status',
		'css' => '',
		'std' => '',
		'type' => 'select',
		'options' => array ( "Pending" => "Pending", "Processing" => "Processing", "Cancelled" => "Cancelled", "Refunded" => "Refunded", "Failed" => "Failed" )

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce: Fix “Sorry, This File Type Is Not Permitted for Security Reasons” For Downloadable Products
    In WordPress, you get the “Sorry, This File Type Is Not Permitted for Security Reasons” error when you try to upload certain files to the Media library. Similarly, in WooCommerce you may get the same error when you try to upload a downloadable product download files. Why is that? Well, by default WordPress only allows […]
  • WooCommerce: Fix WP Memory Limit issue
    WordPress automatically limits your PHP memory to 40MB. This may result in your WooCommerce website being slow to process information, searches, product uploading and so on.
  • upload-max-file-size wordpressWooCommerce: “uploaded file exceeds the upload_max_filesize” Error
    You may have seen this error at least once, if you have used WordPress. When installing a theme, plugin or uploading a image or file, you may find this dreaded message on your screen. Well, it has nothing to do with themes or plugins. The issue is with your server settings which limit the maximum […]
  • WooCommerce: How to Shop As a Customer
    You launched a new feature on your WooCommerce store or added a subscription functionality for your customers but arenโ€™t sure how your customers will take it, if itโ€™ll help them, and wish to review the functionality yourself first? Or, do you take remote orders over the phone and need a solution that lets you place […]
  • WooCommerce: Email Admin Upon Fatal Error
    WooCommerce has a nice feature when it comes to WordPress Error 500 / Fatal Error – it logs the error and all the information regarding it inside the WooCommerce Status > Logs > Fatal Errors area. My problem is that sometimes these errors occur in the backend, so they may not trigger the WordPress built-in […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *