28. Upgrade GetDropFlow for Magento (B2C stores) to 0.4.3: log in and authorize, 30-day grace, expiry reminders

Status: release candidate text. Screenshots are marked [SCREENSHOT: ...] and are taken on the preview store by the Mac window (list: docs/release/SCREENSHOTS-0.4.3.md). Click or tap any picture to enlarge it.

Since version 0.4.2 there is one thing you will notice (0.4.3 keeps it and adds a safety check for Social posting): your store is linked to your free or paid GetDropFlow account by "log in and authorize". No license key to find or paste. This page tells you what happens when you upgrade, what the 30 days of grace mean for stores that were already using GetDropFlow, and what the three expiry reminders look like.

Who needs which package

You areUse
A new buyer, nothing installed yetThe manual-install package dropshipkit-manual-install-0.4.3.zip (tutorial 01), then step 3 below
Running 0.3.4 up to 0.4.2The "Upgrade now" button (step 1 and 2), if the Settings page shows it (see "When there is no button" below). If there is no button: the command line or the manual steps below
Running 0.3.3 or olderThe manual steps of tutorial 10, with the package dropshipkit-upgrade-0.4.3.zip. In these versions the button does not exist (0.2.x) or was not reliable (0.3.0 to 0.3.3), so do not wait for it

The one-click button only exists in an installed version, so a first install is always manual. The upgrade is carried out by the code of the version you have installed, so a button in 0.4.1 upgrades you with the 0.4.1 upgrader.

When there is no "Upgrade now" button

The button code is in every version from 0.3.4 on (0.3.4, 0.3.5, 0.3.6, 0.4.0, 0.4.1, 0.4.2). The Settings page shows the button only when all of this is true, and shows the blue notice with the upgrade guide instead when it is not:

  • the newer version has been published (the page asks getdropflow.com; the answer is kept for up to 1 hour, so a version released a minute ago may take a while to show);
  • every server check is green: the store's own cron job (the one Magento needs anyway) must run, because it writes the readiness report every minute (a report older than 15 minutes hides the button), and PHP, disk space, memory and the rest must pass;
  • no other upgrade is running or waiting to be put back.

If there is no button, use one of these two ways (both use the same upgrade engine and make the same backup):

  1. Command line (SSH, as the user who owns the store files): php bin/magento dropshipkit:upgrade --dry-run (only checks), then php bin/magento dropshipkit:upgrade --to=0.4.3 --yes. It downloads the package itself.
  2. Manual steps of tutorial 10, with the package dropshipkit-upgrade-0.4.3.zip (illustrated).

Before you start: do you also have "Social posting" installed?

GetDropFlow and Social posting share a few library files. If Social posting is installed, it must be version 0.5.6 or newer before you upgrade GetDropFlow to 0.4.2 or newer (or upgrade both in the same maintenance window, Social first). With an older Social (0.5.5 or earlier) the old shared files win and several GetDropFlow admin pages fail with an error page (HTTP 500) after the upgrade.

How to check: open Social posting → Upgrade in the admin; the version is shown on that page. Or open app/code/DropshipKit/Social/BUILD-INFO.txt: the first line reads Social posting 0.5.5 (for example). No Social posting folder means nothing to do here.

If it is older than 0.5.6: upgrade Social posting first (its Upgrade page, or dropshipkit-social-upgrade-0.5.6.zip), check that its pages open, then continue with step 1. From 0.4.3 on, the upgrade checks this by itself and refuses, before anything is changed, with a clear message. But the check runs in the version you have installed: upgrading from 0.4.2 or older to 0.4.3 is still done by the old upgrader, which cannot check it, so look yourself as described above.

On the Settings page of 0.4.3 the same warning is shown for you: if Social posting is older than 0.5.6, the "Upgrade now" button is not shown, and a red box "Upgrade Social posting to 0.5.6 first." plus the first line of the checklist tell you why. [SCREENSHOT: Settings page with the red box "Upgrade Social posting to 0.5.6 first."; red box on it]

Step 1 — Back up and open Settings

  1. Make a backup of the files and the database of your store (your host's snapshot is the safest). The upgrade makes its own backup too, but yours is the one you trust. [SCREENSHOT: Settings page with the upgrade card "A new version is ready: 0.4.3"; red box on the card]
  2. Pick a quiet hour. The storefront shows the maintenance page for about 4 to 5 minutes.

Step 2 — Press "Upgrade now"

  1. Tick the box "I understand: the store will be in maintenance mode for a few minutes." (red box), then press Upgrade now. [SCREENSHOT: the ticked box and the button; red boxes on both]
  2. Watch the progress line. Do not press twice and do not close the page in the first minutes.
  3. When it finishes, the card says the upgrade is done and the version above shows 0.4.3. [SCREENSHOT: "upgraded to 0.4.3"; red box on the version]
  4. If a step fails, the old version is put back and the shop is reopened by itself; the card shows a reason code and the button stays. More in tutorial 10.

Step 3 — Log in and authorize (the new part)

  1. Open GetDropFlow → Settings. In the License card press Log in to GetDropFlow to authorize. [SCREENSHOT: License card with the button; red box on the button]
  2. A short code appears (for example BCDF-G2H3) and a getdropflow.com page opens in a new tab. [SCREENSHOT: the code in the plugin; red box on the code]
  3. Sign in to your GetDropFlow account (we email you a link; if you have no account, the first sign-in creates a free one). [SCREENSHOT: the sign-in page]
  4. Check that the store address is yours and the code is the same as in your admin, then press Allow. Do not press Allow if you did not start this yourself. [SCREENSHOT: the Allow page; red boxes on the address, the code and Allow]
  5. Go back to the plugin page. It continues by itself within a few seconds and shows Status: Valid and your plan. [SCREENSHOT: License card with Status Valid; red box]

If the code runs out (10 minutes) or you pressed Refuse by mistake, press the button again. If your server cannot reach getdropflow.com, tutorial 26 and tutorial 14 explain what to check; typing a key by hand still works.

What the 30 days of grace mean

  • You already used GetDropFlow before this upgrade and have a valid key: you are authorized from the first minute. Nothing changes, nothing to do. The store then swaps the key for its own site token within a few hours, by itself.
  • You used it but have no key (for example the free plan with no key): every feature keeps working for 30 days after the upgrade. A note at the top of every GetDropFlow page counts the days down. [SCREENSHOT: countdown note; red box] Authorize at any time, even on day 1; the note disappears.
  • After day 30 without authorizing: only the License card is open, until you authorize. Your products, orders and settings are never touched or deleted.
  • A new installation has no grace: authorize first (it is free).
  • If getdropflow.com is down, an authorized store keeps working for up to 30 days from the last good answer.

The three reminders before a paid plan ends

If your plan does not renew by itself (no subscription, a subscription you cancelled at the end of the period, or a failed payment) you get one reminder each about 30 days, 7 days and 1 day before the end date: an e-mail to your account address and a yellow note at the top of the GetDropFlow pages (it has a cross to close it). [SCREENSHOT: yellow reminder note; red box] A monthly subscription that renews by itself gets no reminder.

If you do not renew, you do not have to do anything: on the day after the end date the paid features stop and the store goes back to the free plan (30 products, 1 store). The plugin does not stop and nothing is deleted. A blue note says which plan ended and when. [SCREENSHOT: blue "plan ended" note; red box] Renew, press Verify now in the License card (or wait for the next automatic check): the plan comes back without a new authorization.

Disconnecting, an expired code, and who has to authorize

  • Disconnect: in the License card press Disconnect this store. The paid features stop immediately, with no waiting period, and the saved license answer is deleted, so Verify now cannot bring them back. Only the License card stays open until you authorize again. Your products, orders and settings are never touched or deleted.
  • Expired authorization code: the code from step 3 lives 10 minutes. After that the plugin shows The code has expired; press Log in to GetDropFlow to authorize again to get a new one.
  • Who has to authorize: the Magento plugin (every plan, the free plan too: a free account is enough). The GetDropFlow Shopify app and the free Chrome / Edge browser extension are separate products and are not required to register or authorize.

What can go wrong

You seeWhat to do
Only the License card is openThe 30 days are over or this is a new installation: authorize (step 3).
"The code has expired"Press the button again.
The Allow page shows another store addressPress Refuse and check which store you started from.
The Upgrade button is missingSee "When there is no button" above, or tutorial 10 ("Upgrade now button missing"); use the command line or the manual steps with dropshipkit-upgrade-0.4.3.zip.
After the upgrade several GetDropFlow pages show an error page (HTTP 500) and Social posting is installedSocial posting is older than 0.5.6. Upgrade Social posting to 0.5.6 or newer (Social posting → Upgrade, or the package dropshipkit-social-upgrade-0.5.6.zip), then clear the cache. If you cannot, restore the backup you made in step 1.
No reminder e-mailCheck the spam folder; a monthly auto-renewing plan gets none.
The paid features stopped right after I pressed DisconnectThat is intended. Authorize again (step 3); the plan comes back from your account.