Notes

Upgrade OpenCart Extensions from 2.1x to 2.3x/3x

Edit on GitHub

OpenCart

Language

  • The default language folder is now called en-gb instead of english. Update your scripts to reflect the change
  • It looks like it is no longer saving language variables in controller files. For example, this whole chunk is gone from admin/controller/extension/shipping/pickup.php
 1$data['heading_title'] = $this->language->get('heading_title');
 2
 3$data['text_edit'] = $this->language->get('text_edit');
 4$data['text_enabled'] = $this->language->get('text_enabled');
 5$data['text_disabled'] = $this->language->get('text_disabled');
 6$data['text_all_zones'] = $this->language->get('text_all_zones');
 7$data['text_none'] = $this->language->get('text_none');
 8
 9$data['entry_geo_zone'] = $this->language->get('entry_geo_zone');
10$data['entry_status'] = $this->language->get('entry_status');
11$data['entry_sort_order'] = $this->language->get('entry_sort_order');
12
13$data['button_save'] = $this->language->get('button_save');
14$data['button_cancel'] = $this->language->get('button_cancel');

Folder Structure

  • The default folder structure has changed. All the extensions that were previously directly under the model and controller etc. are now under an extensions folder. So, model/extensions/shipping/pickup.php instead of model/shipping/pickup.php

OCMOD

  • OpenCart 3 no longer uses .ocmod.xml for modification files. If you try to upload an .ocmod.xml file, you’ll get a Invalid file type! error.
  • For a OCMOD file to be uploaded the file extension must be .ocmod.zip read more

Example file structure for OCMOD compressed files.

  • upload
  • install.xml

upload

All files under this directory will be uploaded to the to directory of your OpenCart installation.

install.xml

The XML modification file.