
Originally Posted by
mc12345678
Seems like a sound process. Thanks for that.
Now to address the added feature(s) of ZC 1.5.3 with the added function plugin_version_check_for_updates that reaches out to the ZC server(s) for information about the current version of the identified plugin and can be used to provide the store owner/operator notification of an available update. Somewhat seems like a chicken/egg scenario, and wondering what the "correct" (preferred) way to incorporate that feature should be as a result of the following information and assumption(s):
1. As a plugin contributor, (assumption) won't know the specific data that will populate the field(s) until the plugin is made available on the site.
2. Once the plugin has been made available, incorporation of the information into the code and reupload (assumption) has the potential of modifiying the information that was made available to support the resubmission. This has the potential of making the new information out-of-date, requiring a "newer" submission... and this loop continues to no success...
I didn't read your previous post very well -- just the title!
Re: Using the plugin_version_check function, it's a chicken/egg thing for the very first submission since, until the plugin is approved you don't know the plugin's download id. Using the usps shipping module as the basis, the function call looks like:
Code:
$new_version_details = plugin_version_check_for_updates(1292, '2014-10-30 K6');
The 1292 value is the plugin's download id, assigned upon the first submission, so a plugin will require an update after the initial submission to add this functionality. The second parameter appears to be the version number specified by the plugin author at the time of upload, so if you uploaded a plugin with v1.0.0 that's what you'd specify as the second parameter.