Zen Cart Logo
Forums / Addon Shipping Modules / shipstation no longer importing orders after upgrade.

shipstation no longer importing orders after upgrade.

Locked

Views: 7,548

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
21 Sep 2020, 4:45 PM
#1
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

shipstation no longer importing orders after upgrade.

Zencart 1.5.7, PHP 7.3
I recently finished upgrading to 1.5.7, and shipstation will no longer import the orders. I applied the update found here: https://www.zen-cart.com/showthread.php?226295-Shipstation-Tweak-for-v156-Updated-By

Still not working, even though Shipstation shows no issues, and no errors set. Any clue how to troubleshoot this?

21 Sep 2020, 4:58 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: shipstation no longer importing orders after upgrade.

A couple of questions, to make sure I understand the issue(s).

  1. By "no longer import the orders", does that mean that the shipstation 'export' of the orders from your store to the shipstation site isn't working?
  2. By "no errors set", do you mean that there are no logs recorded in the site's /logs directory?
21 Sep 2020, 5:20 PM
#3
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

  1. Yes, the export of orders to shipstation is not working.
  2. Yes, nothing in the logs directory.
21 Sep 2020, 5:38 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: shipstation no longer importing orders after upgrade.

What version of shipstation_zc.php is in use? Any modifications?

22 Sep 2020, 3:47 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: shipstation no longer importing orders after upgrade.

Does the shipstation admin's password contain "HTML special characters", e.g.** "<>**? If so, change the password in the Zen Cart and on shipstation to replace those characters.

Starting with v156, the Zen Cart admin's password-handling changes those characters to their HTML equivalent, e.g. > becomes >, but the storefront password handling doesn't.

22 Sep 2020, 7:02 PM
#7
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

lat9:

Does the shipstation admin's password contain "HTML special characters", e.g.** "<>**? If so, change the password in the Zen Cart and on shipstation to replace those characters.

Starting with v156, the Zen Cart admin's password-handling changes those characters to their HTML equivalent, e.g. > becomes >, but the storefront password handling doesn't.

No, just letters, and numbers. I have tried it on the test website too, and it doesn't work there either. When I look at the logs in shipstation, it states: Manual order refresh completed

I tried giving the shipstation account full admin privileges, deleting the account, a few other things, and I can't make it show actual orders in shipstation.

22 Sep 2020, 7:38 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: shipstation no longer importing orders after upgrade.

Have you tried running the shipstation_zc.php on your test site:

www.testsite.com/shipstation.zc.php?SS-UserName=[B]adminname[/B]&SS-Password=[B]adminpassword[/B]&action=export&start_date=06/02/2020 05:30&end_date=09/23/2020 22:53

That "should" output the orders directly to your screen.

24 Sep 2020, 4:16 PM
#9
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

I entered this date range: > &action=export&start_date=06/02/2020 05:30&end_date=09/23/2020 22:53, and I got all the orders on the screen from that date range. Looks like it's time to call shipstation, but they claim that they won't even respond for at least 72 hours.

24 Sep 2020, 5:58 PM
#10
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

So I chatted with Shipstation, and they can see the orders, but for some reason the orders don't show up on my screen. He couldn't figure it out, so he is having someone else look into it, and email me back.

Is there anything that changed between 1.5.5, and 1.5.7 that would effect order status for something lie this? In shipstation, I have the settings for the status set as:
pending, 1
processing, 2
shipped, 3

I added the numbers today, and it made no difference.

24 Sep 2020, 6:29 PM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: shipstation no longer importing orders after upgrade.

Well, that's *wonderful *(not):no:. Apparently the constants DATE_TIME_FORMAT and DATE_FORMAT_SHORT, which used to be present in the main language file (e.g. /includes/languages/english.php) have magically disappeared in zc157.

Those definitions, for prior ZC versions, were

  define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

Update: Zen Cart GitHub issue opened (https://github.com/zencart/zencart/issues/3975)

24 Sep 2020, 6:37 PM
#13
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

My workaround was to change line 104 in shipstation_zc.php from this:

    return strftime(DATE_TIME_FORMAT, mktime($hour, $minute, $second, $month, $day, $year))

To this:

    return strftime('%m/%d/%Y %H:%M:%S', mktime($hour, $minute, $second, $month, $day, $year));
24 Sep 2020, 6:47 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: shipstation no longer importing orders after upgrade.

Question: for the way shipstation is using this, does it really need to rely on a constant in Zen Cart? ie: is it critical that it know something about Zen Cart in order to do what it's doing in this part of the code? Or does shipstation's processing actually need/expect a certain format (which "coincidentally" matched what Zen Cart had in that constant) and therefore it would be more sensible to hard-code the expected format instead of using any constants in Zen Cart anyway?

13 Oct 2020, 12:58 PM
#15
apollowilcox avatar

apollowilcox

Zen Follower

Join Date:
Sep 2014
Location:
Indiana
Posts:
123
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

vanhorn_s: could i get clarification here? Exactly what does work? We're having the same issue and trying to solve it. What precisely did you do/ change to get shipstation working?

Thank you!

13 Oct 2020, 3:35 PM
#16
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: shipstation no longer importing orders after upgrade.

When I originally tried post #12, it didn't work, but I accidentally messed it up. If you add those exact 2 lines to the end of the lines that look like that, it will work again.