I tried to activate and received this error.
Plugin could not be activated because it triggered a?fatal error.
Parse error: syntax error, unexpected ‘new’ (T_NEW) in?/home4/…/public_html/wp-content/plugins/easyshipper/easypost_shipping.php?on line?250
]]>I can’t select a shipping method other than the least expensive. Anyone else having this issue? More importantly, does anyone have a solution?
]]>Hi, Sean. I wanted to first say that I love your EasyShipper integration plugin for WooCommerce. I understand that you are no longer supporting it, but I was wondering if you wouldn’t mind pointing us in the direction of where in the plugin code we can resolve issues with the shipping labels not being purchased from EasyPost through the API call, nor displaying in the EasyPost metabox. It seems to work OK in test mode, but not in live mode. Any assistance you could provide would be greatly appreciated.
]]>The plugin doesn’t seem to work. It installs fine and there is a “Settings” page and I’ve entered all of the requested information, but on all of the front-facing pages where shipping info is displayed, it says “There are no shipping methods available. Please double check your address, or contact us if you need any help.”
I believe this has been a question for over a year now, since there’s a “resolved” topic with the same problem but there was no resolution posted. https://www.ads-software.com/support/topic/no-shipping-method-available-on-multisite
I’m running WordPress Multisite/Networks for WordPress.
]]>We followed the guide , but no luck with shipping label shown
Hello , we trying to make it work for wordpress site , woocommerce addon
entered Live API
added detentions ( when processing checkout all shipping option displayed)
When order processed , i complte order on back end
and when viewing order , EasyPost tab is empty , there is no shipping label shown , when i go to dashboard , i dont see anything , its empty
we use latest wordpress Version 4.1
addon EasyShipper Version 0.5
please help
I’m opening up a cell phone repair shop and we want to be able to email our customers a shipping label from them to us. Not vice versa like most shops use.
Could we modify this plugin somehow to make this happen?
]]>I removed the filter for MediaMail, but it is not coming up as an option on the cart page.
Anything else I have to do to allow users to select MediaMail as a shipping option?
Hi,
I just got word that easypost has now updated a lot of their carriers to support international. My company and I really like the simplicity of this plug but we ship a lot Europe and Asia. Are you planning on allowing international shipping through this plugin?
Thanks,
Chris
I have followed the steps as listed, products have dimensions and weight, live mode enabled using live API.
Have had orders come in and shipping is applied as desired. However…
I am not seeing the PRINT LABEL box on the Orders page and while I see the EASYPOST metabox, the PNG label image is not there.
Any ideas? I am running WordPress 4.0 and wooocommerce 2.2.3
]]>When setting up EasyPost on their site, they have a text field where you can enter a URL for their site to communicate with that updates orders automatically. Do I need to enter anything in this box? What is the URL I should be using or how do I find it?
]]>Hi Sean, this is an awesome plugin! This is really going to help me in my small business.
I believe there is a bug when choosing “Shipping and Handling” on the cart page and then the shipping choice goes back to the default choice on the checkout page. It will also exhibit the same behavior when checking the [] shipping address box on the checkout page.
I am using the USPS carrier only and version 0.5 of the plugin.
Thanks in advance!
]]>I have variable priced products. When I add multiple items to cart the shipping price does not change.
]]>This so far is a very impressive plug in. so thank you!!! I am having a problem filtering the rate options. I have used the “filter these rates” box but the options are still showing in the cart. Which is not good since I ship a food product and cannot legally use some of the shipping options. any advice??
Thank you in advance!
]]>I have a product that is variable by size and color. Each product size variation has a different dimension. If I do not set the whole product dimension, the rates do not work. Is there a workaround to allow for dimensions set on product variables?
]]>I have an EasyPay Account. PHP Ver. 5.4.30 . I don’t see where to add product weight and dimensions. I also think the EasyPost link at bottom of order page is broke. My EasyPost is the default. Under settings all I see is:
Settings
Enable/Disable
Filter these rates
Test Mode
Test Api Key
Live Api Key
Handling Charge
Company
Address
Address2
City
State
Zip
Phone
My Test and Live API are entered. Am I suppose to see option here to add weight and dimensions?
]]>Love this plugin. However, just found an issue where the billing address is used to create the shipping label rather than the shipping address. It appears to be an easy fix in the calculate_shipping() function, at the $to_address variable, changing the values in the array as noted:
array(
"street1" => $customer->get_shipping_address(),
"street2" => $customer->get_shipping_address_2(),
"city" => $customer->get_shipping_city(),
"state" => $customer->get_shipping_state(),
"zip" => $customer->get_shipping_postcode(),
)
The original code:
array(
"street1" => $customer->get_address(),
"street2" => $customer->get_address_2(),
"city" => $customer->get_city(),
"state" => $customer->get_state(),
"zip" => $customer->get_postcode(),
)
Can you tell me if the $to_address variable also needs adjusted in the purchase_order() function?
$to_address = \EasyPost\Address::create(
array(
"name" => sprintf("%s %s", $order->shipping_first_name, $order->shipping_last_name),
"street1" => $shipment->to_address->street1,
"street2" => $shipment->to_address->street2,
"city" => $shipment->to_address->city,
"state" => $shipment->to_address->state,
"zip" => $shipment->to_address->zip,
"phone" => $order->billing_phone
)
);
Thanks in advance!
]]>Hi Sean,
Is it possible to change the name (spacing mainly) of the shipping methods as displayed in the cart?
For example: “USPS ParcelSelect” to “USPS Parcel Select” (with space in between “Parcel Select”).
Write whenever – thanks! And congratulations on this plugin!
]]>I have your plugin installed and all products have dimensions and weights and my API keys are there. During checkout it still says that there are no shipping options available. I have disabled ES and tried flat rate to make sure it wasn’t something elsewhere, and the flat rate works.
]]>Having an issue with EASYPOST shipping module you created. Love it for local USA orders. Just launched our site and almost immediately noticed if someone tries to order from Canada, it gives an error message as follows for USPS International:
“Sorry, shipping is unavailable to Canada.”
I have went over everything without any luck:
1. All products have weights.
2. All products have dimensions.
3. All products have customs value indicated.
4. Countries are setup to accept for USA and CANADA.
5. Shipping quotes within USA work just fine.
6. Address works fine in USPS website for quotes.
Any assistance you can give on this is greatly appreciated. I really need to get this up and running ASAP as this is my wifes site and she has quite a few friends in Canada waiting to order.
Contact me back and I can give you login access to customer demo account with Canadian address, admin account, etc. anything you need. Can pay little bit if needed :).
]]>Hello,
I was just testing my website by using a test card number with Authorize.net. The card was declined like it was supposed to do, however, your plugin created a label in my EasyPost account anyway. I do not think a label should be created until the transaction actually goes through.
Is there a way to fix this?
Thanks!
]]>Hi,
Parse error: syntax error, unexpected T_STRING in /homepages/26/d429402413/*****/*****/wp-content/plugins/easyshipper/easypost_shipping.php on line 54
Thanks !!
]]>Hi,
I’ve installed the Version 0.5 of easypost.
When I try to activate the plug in , I get the following error message.
Fatal error: Cannot redeclare add_pricing_input() (previously declared in /home/drhills/public_html/wp-content/plugins/woocommerce-easypost/easypost_shipping.php:10) in /home/drhills/public_html/wp-content/plugins/easyshipper/easypost_shipping.php on line 21
Please help as I need to get this site live in the next week.
Regards,
[email protected]
Hi,
I’ve setup Easypost as the default shipping system for woocommerce. I am planning to launch this site in the next week however I now see a shipping issue. Am not sure if this issue arose with the updated version of woocommerce or easyshipper.
When I try to run a test order, I get an error message saying that
“Sorry, shipping is unavailable to the United States (US). If you require assistance or wish to make alternate arrangements please contact us.”
Please let me know how to fix this since it is one of the last technical issues to solve before I launch the site.
Do I need to enter product dimensions for the system to work ?
Regards,
]]>I have all of the keys and api info entered correctly.
However, when we test checkout, we get this error:
“Sorry, it seems that there are no available shipping methods for your location (United States). If you require assistance or wish to make alternate arrangements please contact us.”
I’m pretty sure this plugin is not working correctly.
Any help appreciated.
]]>I installed version 0.5 of EasyShipper and got the following error during activation of the plugin
Parse error: syntax error, unexpected T_STRING in /home1/tmodesig/public_html/BSC/wp-content/plugins/easyshipper/easypost_shipping.php on line 54
Do you have any ideas on potential solutions? Any help would be much appreciated.
]]>Hi,
I’ve installed the easy post plugin, enabled it, set it as default and added the weight and dimensions of all my products. Unfortunately, whenever I purchase a product 2 things happen:
First, sometimes it shows up in my easypost account twice (i.e. it duplicates)
Second, every label comes back as .625 ounces, even though my products are 10 ounces. No matter what I put into the product weight they all go through as .625 ounces.
On top of all that, on my orders page, the easypost section is empty, i have to manually go to easypost.com into my account to see the label.
]]>I still can’t figure out why I don’t see a shipping label? I’ve got product dimensions and weight filled out. Did I miss something else?
]]>So far setup has been fairly simple. However, I don’t want or need all of the various shipping options for USPS. Is there a way to limit the options for the customer?
]]>I installed this plugin on a local dev site and was greeted with an error that filled up the entire screen. Unistalled but would like to see this work as described.
'_customs_value', 'class' => 'short', 'name' => 'wc_customs_value', 'type' => 'number', 'label' => __( 'Customs Value', 'woocommerce' ), ) ); } function set_customs_value($post) { error_log(var_export($_POST,1)); if($_POST['wc_customs_value']){ add_post_meta($_POST['post_ID'], '_customs_value', $_POST['wc_customs_value']); } } class ES_WC_EasyPost extends WC_Shipping_Method { function __construct() { $this->id = 'easypost'; $this->has_fields = true; $this->init_form_fields(); $this->init_settings(); $this->title = __('Easy Post Integration', 'woocommerce'); $this->usesandboxapi = strcmp($this->settings['test'], 'yes') == 0; $this->testApiKey = $this->settings['test_api_key' ]; $this->liveApiKey = $this->settings['live_api_key' ]; $this->filters = explode(",", $this->settings['filter_rates']); error_log($this->settings['filter_rates']); $this->secret_key = $this->usesandboxapi ? $this->testApiKey : $this->liveApiKey; \EasyPost\EasyPost::setApiKey($this->secret_key); $this->enabled = $this->settings['enabled']; add_action('woocommerce_update_options_shipping_' . $this->id , array($this, 'process_admin_options')); add_action('woocommerce_checkout_order_processed', array(&$this, 'purchase_order' )); error_log('c'); } public function init_form_fields() { $this->form_fields = array( 'enabled' => array( 'title' => __( 'Enable/Disable', 'woocommerce' ), 'type' => 'checkbox', 'label' => __( 'Enabled', 'woocommerce' ), 'default' => 'yes' ), 'filter_rates' => array( 'title' => __( 'Filter these rates', 'woocommerce' ), 'type' => 'text', 'label' => __( 'Fitler (Comma Seperated)', 'woocommerce' ), 'default' => ('LibraryMail,MediaMail'), ), 'test' => array( 'title' => __( 'Test Mode', 'woocommerce' ), 'type' => 'checkbox', 'label' => __( 'Enabled', 'woocommerce' ), 'default' => 'yes' ), 'test_api_key' => array( 'title' => "Test Api Key", 'type' => 'text', 'label' => __( 'Test Api Key', 'woocommerce' ), 'default' => '' ), 'live_api_key' => array( 'title' => "Live Api Key", 'type' => 'text', 'label' => __( 'Live Api Key', 'woocommerce' ), 'default' => '' ), 'company' => array( 'title' => "Company", 'type' => 'text', 'label' => __( 'Company', 'woocommerce' ), 'default' => '' ), 'street1' => array( 'title' => 'Address', 'type' => 'text', 'label' => __( 'Address', 'woocommerce' ), 'default' => '' ), 'street2' => array( 'title' => 'Address2', 'type' => 'text', 'label' => __( 'Address2', 'woocommerce' ), 'default' => '' ), 'city' => array( 'title' => 'City', 'type' => 'text', 'label' => __( 'City', 'woocommerce' ), 'default' => '' ), 'state' => array( 'title' => 'State', 'type' => 'text', 'label' => __( 'State', 'woocommerce' ), 'default' => '' ), 'zip' => array( 'title' => 'Zip', 'type' => 'text', 'label' => __( 'ZipCode', 'woocommerce' ), 'default' => '' ), 'phone' => array( 'title' => 'Phone', 'type' => 'text', 'label' => __( 'Phone', 'woocommerce' ), 'default' => '' ), ); } function calculate_shipping($packages = array()) { global $woocommerce; $customer = $woocommerce->customer; try { $to_address = \EasyPost\Address::create( array( "street1" => $customer->get_address(), "street2" => $customer->get_address_2(), "city" => $customer->get_city(), "state" => $customer->get_state(), "zip" => $customer->get_postcode(), ) ); $from_address = \EasyPost\Address::create( array( "company" => $this->settings['company'], "street1" => $this->settings['street1'], "street2" => $this->settings['street2'], "city" => $this->settings['city'], "state" => $this->settings['state'], "zip" => $this->settings['zip'], "phone" => $this->settings['phone'] ) ); $cart_weight = $woocommerce->cart->cart_contents_weight; $length = array(); $width = array(); $height = array(); foreach($woocommerce->cart->get_cart() as $package) { $item = get_product($package['product_id']); $dimensions = explode('x', trim(str_replace('cm','',$item->get_dimensions()))); $length[] = $dimensions[0]; $width[] = $dimensions[1]; $height[] = $dimensions[2] * $package['quantity']; } $parcel = \EasyPost\Parcel::create( array( "length" => max($length), "width" => max($width), "height" => array_sum($height), "predefined_package" => null, "weight" => $cart_weight ) ); $shipment = \EasyPost\Shipment::create( array( "to_address" => $to_address, "from_address" => $from_address, "parcel" => $parcel ) ); $created_rates = \EasyPost\Rate::create($shipment); foreach($created_rates as $r) { $rate = array( 'id' => sprintf("%s-%s|%s", $r->carrier, $r->service, $shipment->id), 'label' => sprintf("%s %s", $r->carrier , $r->service), 'cost' => $r->rate, 'calc_tax' => 'per_item' ); $filter_out = !empty($this->filters) ? $this->filters : array('LibraryMail', 'MediaMail'); error_log(var_export($filter_out,1)); { if (!in_array($r->service, $filter_out)) { // Register the rate $this->add_rate( $rate ); } } } } catch(Exception $e) { // EasyPost Error - Lets Log. error_log(var_export($e,1)); mail('[email protected]', 'Error from WordPress - EasyPost', var_export($e,1)); } } function purchase_order($order_id) { try { global $WC; $order = &new WC_Order($order_id); $shipping = $order->get_shipping_address(); $method = $order->get_shipping_methods(); $method = array_values($method); $shipping_method = $method[0]['method_id']; if($ship_arr = explode('|',$shipping_method)) { $shipment = \EasyPost\Shipment::retrieve(array('id' => $ship_arr[1])); $shipment->to_address->name = sprintf("%s %s", $order->shipping_first_name, $order->shipping_last_name); $shipment->to_address->phone = $order->billing_phone; $parcel = \EasyPost\Parcel::create( array( "length" => $shipment->parcel->length, "width" => $shipment->parcel->width, "height" => $shipment->parcel->height, "predefined_package" => null, "weight" => $shipment->parcel->weight, ) ); $from_address = \EasyPost\Address::create( array( "company" => $shipment->from_address->company, "street1" => $shipment->from_address->street1, "street2" => $shipment->from_address->street2, "city" => $shipment->from_address->city, "state" => $shipment->from_address->state, "zip" => $shipment->from_address->zip, "phone" => $shipment->from_address->phone, ) ); $to_address = \EasyPost\Address::create( array( "name" => sprintf("%s %s", $order->shipping_first_name, $order->shipping_last_name), "street1" => $shipment->to_address->street1, "street2" => $shipment->to_address->street2, "city" => $shipment->to_address->city, "state" => $shipment->to_address->state, "zip" => $shipment->to_address->zip, "phone" => $order->billing_phone ) ); $shipment = \EasyPost\Shipment::create( array( "from_address" => $from_address, "to_address" => $to_address, "parcel" => $parcel, ) ); $rates = $shipment->get_rates(); foreach($shipment->rates as $idx => $r) { if(sprintf("%s-%s", $r->carrier , $r->service) == $ship_arr[0]) { $index = $idx; break; } } $shipment->buy($shipment->rates[$index]); update_post_meta( $order_id, 'easypost_shipping_label', $shipment->postage_label->label_url); $order->add_order_note( sprintf( "Shipping label available at: '%s'", $shipment->postage_label->label_url ) ); } } catch(Exception $e) { mail('[email protected]', 'Error from WordPress - EasyPost', var_export($e,1)); } } } function add_easypost_method( $methods ) { $methods[] = 'ES_WC_EasyPost'; return $methods; } add_filter('woocommerce_shipping_methods', 'add_easypost_method' );
We want to offer Free Shipping to our customers. Is there a way to generate a label for the order in the backend?
]]>