Appearance
Upgrading to 2.0
2.0.0 is a major release and the first public release. Read this page before you update from a 1.x beta: it lists what you have to do and what to check in your settings. All changes are in the changelog.
Follow the update instructions. Make a backup of the files and the database first, and test the update on a copy of your site when you can.
Requirements
2.0.0 requires ExpressionEngine 7.3+, PHP 8.2+ and Store 4.0.0 or later. The add-on can no longer be installed on older versions: the Store version is checked on install, on update and in the CP. See Installation.
Check your settings
Hook URL
The webhook has a new URL, which is registered in your MyParcel account when you save the settings. After updating, save the settings once: the old URL (with ?ACT=) no longer works and the add-on doesn't remove it. In MyParcel, go to Shop settings > Integrations and check the Webhook status change field under API key: it must show the new Hook URL. If it still shows the old URL, clear the field, click Save and save the settings of the add-on once more. See Hook URL.
Weight unit
The Weight unit of the Store (kg, g or lbs) is shown in the default settings, and the rules and the parcel page show the unit next to the weight. The weight is converted to grams for MyParcel. Before, it was sent as a whole number in the unit of the Store, so 2.5 kg became 2 g, and every sync changed the weight of the parcel. Check that the Weight unit matches the weight of your products and the weight thresholds of your rules.
Rules
Per carrier only the rule with the highest weight threshold the cart reaches is offered; before, all rules up to the cart weight were offered. A cart without weight only gets the rules with a threshold of 0. The weight threshold is the weight from which a rule applies (the description in the CP used to say it was a maximum). Check your rules, see Weight threshold.
Every rule has a Package Type now. Rules saved before 2.0.0 use Package, as the automatic export always did.
After the update
- The control panel pages moved: the Parcels overview is the add-on's start page (
.../reinos_store_my_parcel/parcelsno longer exists), a parcel is.../parcel/<order_id>(was.../parcel/<parcel_id>/<order_id>) and a rule is.../rule/<rule_id>(was.../rules/<rule_id>). Update your bookmarks. - The update deletes the parcels of orders that were already deleted. The shipments in MyParcel are not touched.
For developers
- The add-on uses the ExpressionEngine 7 add-on installer and migrations.
- The undocumented
{reinos_store_my_parcel_action_url}global variable is removed.
