Zen Cart Logo
Forums / General Questions / USPS update notice inside admin–BOLD RED even...

USPS update notice inside admin–BOLD RED even...

Views: 1,182

Results 1 to 7 of 7
17 Nov 2014, 3:11 AM
#1
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

USPS update notice inside admin–BOLD RED even...

How is it that the current USPS shipping
module listed in the Modules > Shipping
is intelligent enough to know when it's
ready to be replaced by the next version?
I find that to be quite, er, sophisticated,
snazzy, neat in a nerdy kind of way.

Is its code looking for a certain file, or a
certain location, or a particular string of
a version number somewhere, or even a
date and when it finds it a flag is triggered?

I think I may need to buy someone a
drink for that...

Dr Doug

24 Nov 2014, 2:43 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: USPS update notice inside admin–BOLD RED even...

d0ugparker:

How is it that the current USPS shipping
module listed in the Modules > Shipping
is intelligent enough to know when it's
ready to be replaced by the next version?
I find that to be quite, er, sophisticated,
snazzy, neat in a nerdy kind of way.

Is its code looking for a certain file, or a
certain location, or a particular string of
a version number somewhere, or even a
date and when it finds it a flag is triggered?

I think I may need to buy someone a
drink for that...

Dr Doug:blush: That was some fancy code Ajeh asked me to write so that it could alert you if the plugin in the ZC plugins library was newer than the one in your store. It makes a request to the plugin server to ask what the latest version is, and tells you if they're different.

24 Nov 2014, 7:28 PM
#3
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Re: USPS update notice inside admin–BOLD RED even...

Brilliant.

DrDoug

24 Nov 2014, 8:39 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: USPS update notice inside admin–BOLD RED even...

Also, the plugin_version_check_for_updates() function is present within ZC core since v1.5.3, and takes 2 parameters: the fileid for the plugin on the ZC plugin site, and the version number you wish to check against.
https://github.com/zencart/zencart/blob/v155/includes/functions/plugin_support.php

9 Sep 2016, 12:42 PM
#5
herbert_hoover avatar

herbert_hoover

New Zenner

Join Date:
Feb 2013
Location:
New York, New York, United States
Posts:
25
Plugin Contributions:
0

Re: USPS update notice inside admin–BOLD RED even...

Mine's giving me the bold red update notice, but I have the latest from January 17, 2016.

9 Sep 2016, 1:21 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS update notice inside admin–BOLD RED even...

Save your settings and then try a REMOVE/Install and reconfigure it and see if that corrects it ...

10 Sep 2016, 9:12 PM
#7
herbert_hoover avatar

herbert_hoover

New Zenner

Join Date:
Feb 2013
Location:
New York, New York, United States
Posts:
25
Plugin Contributions:
0

Re: USPS update notice inside admin–BOLD RED even...

I did that, kinda blindly. I installed the "update" only to notice afterwards that the version was the same. Still have the red warning. Seems to work fine, though.