4.0.2.0
https://github.com/opencart/opencart/releases/tag/4.0.2.0
Changes
- Works with PHP 8.2
- Changed the route to use . instead of using | for compatibility with some payment gateways
- Payment methods need to be updated:
$method_data = [];
if ($status) {
$method_data = [
'code' => 'bank_transfer',
'title' => $this->language->get('heading_title'),
'sort_order' => $this->config->get('payment_bank_transfer_sort_order')
];
}
has changed to:
$method_data = [];
if ($status) {
$option_data['bank_transfer'] = [
'code' => 'bank_transfer.bank_transfer',
'name' => $this->language->get('heading_title')
];
$method_data = [
'code' => 'bank_transfer',
'name' => $this->language->get('heading_title'),
'option' => $option_data,
'sort_order' => $this->config->get('payment_bank_transfer_sort_order')
];
}
What's Changed
- Corrected Two-factor Security Error Message by @nexadomain in #11599
- fix email url by @iamsyh in #11603
- Fixed SQL abbreviation typo and pushed space - upload/system/library/db.php file by @TheCartpenter in #11619
- Update free.php by @osworx in #11625
- fix: upgrade dirname failure fix by @v5mvidal in #11605
- add text for guest checkout success message by @iamsyh in #11613
- Use seperate success message for guest checkout by @iamsyh in #11614
- build yml file by @KennedyFVB in #11469
- Fixed sentence - catalog/language/en-gb/checkout/register.php file by @TheCartpenter in #11628
- Replaced account/subscription model as lowercase - catalog/controller/account/subscription.php file by @TheCartpenter in #11627
- Removed commented out $data['balance'] - admin/controller/sale/subscription.php file by @TheCartpenter in #11584
- Update customer.php by @PhamToan in #11636
- fix: add slash ("/") at the end of the directory when generating autoload by @valdeirpsr in #11635
- Replaced | with . on address list URL - catalog/view/template/account/address.twig file by @TheCartpenter in #11642
- Replaced | with . in URL - catalog/view/template/product/product.twig file by @TheCartpenter in #11643
- fix: Correctly add subscriptions report by @v5mvidal in #11640
- Replace ; with , by @anytizer in #11661
- Update FontAwesome 6.2.0 & jQuery 3.6.1 by @stalker780 in #11653
- Update order.php by @PhamToan in #11666
- Update order_info.twig by @sabeti05 in #11655
- Removed spaced on int cast - extension/opencart/admin/model/report/customer_subscription.php file by @TheCartpenter in #11647
- Update Bootstrap 5.2.1 by @stalker780 in #11671
- Update custom_field.php by @nexadomain in #11672
- Fixed loading button if more than one request by @padaliyajay in #11674
- Bootstrap minor fixes by @stalker780 in #11677
- Improved sentence - system/library/template/twig.php file by @TheCartpenter in #11710
- Improved can not with cannot - admin/controller/common/security.php file by @TheCartpenter in #11681
- Added comment text on magic methods - system/library/cart/weight.php file by @TheCartpenter in #11724
- Replaced can not with cannot - index.php file by @TheCartpenter in #11693
- Replaced can not with cannot - admin/controller/common/column_left.php file by @TheCartpenter in #11682
- Added intend on comment text - system/library/url.php file by @TheCartpenter in #11749
- Replaced can not with cannot - admin/controller/tool/upload.php file by @TheCartpenter in #11683
- Replaced can not with cannot - admin/index.php file by @TheCartpenter in #11684
- Replaced can not with cannot - admin/language/en-gb/common/filemanager.php file by @TheCartpenter in #11685
- Replaced can not with cannot - admin/language/en-gb/common/security.php file by @TheCartpenter in #11686
- Replaced can not with cannot - admin/language/en-gb/setting/store.php file by @TheCartpenter in #11687
- Replacd can not with cannot - admin/language/en-gb/user/user.php file by @TheCartpenter in #11688
- Replaced can not with cannot - catalog/controller/tool/upload.php file by @TheCartpenter in #11689
- Replaced can not with cannot - catalog/language/en-gb/api/sale/cart.php file by @TheCartpenter in #11690
- Replaced can not with cannot - catalog/language/en-gb/checkout/register.php file by @TheCartpenter in #11691
- Improved can not with cannot - catalog/model/checkout/cart.php file by @TheCartpenter in #11692
- Various sentence corrections - system/framework.php file by @TheCartpenter in #11694
- Replaced then with comma - admin/controller/catalog/product.php file by @TheCartpenter in #11695
- Sentence correction. Methods unfinished - admin/controller/mail/subscription.php file by @TheCartpenter in #11696
- Improved sentences - admin/controller/startup/language.php file by @TheCartpenter in #11697
- Aligned equal alignments - admin/language/en-gb/catalog/product.php file by @TheCartpenter in #11698
- Improved sentence - admin/controller/user/user.php file by @TheCartpenter in #11699
- Improved sentence - admin/language/en-gb/mail/voucher.php file by @TheCartpenter in #11700
- Improved sentence - admin/language/en-gb/marketplace/marketplace.php file by @TheCartpenter in #11701
- Improved sentence - admin/model/catalog/product.php file by @TheCartpenter in #11702
- Improved sentence - admin/model/localisation/language.php file by @TheCartpenter in #11703
- Improved sentence - catalog/controller/event/activity.php file by @TheCartpenter in #11704
- Improved sentence - catalog/controller/mail/order.php file by @TheCartpenter in #11705
- Improved sentence - catalog/controller/product/compare.php file by @TheCartpenter in #11706
- Improved sentence - catalog/controller/startup/language.php file by @TheCartpenter in #11707
- Improved sentence - catalog/language/en-gb/mail/gdpr.php file by @TheCartpenter in #11708
- Added space after 'then' - catalog/language/en-gb/product/product.php file by @TheCartpenter in #11709
- Added note for __call magic method in proxy engine - system/engine/proxy.php file by @TheCartpenter in #11712
- Added magic method comments - system/engine/controller.php file by @TheCartpenter in #11713
- Added return void in set comments - system/engine/registry.php file by @TheCartpenter in #11714
- Added magic method comment for the get method - system/engine/model.php file by @TheCartpenter in #11715
- Added intend of 2 spaces for $registry object by @TheCartpenter in #11716
- Added comment text on each magic methods - system/library/cache/apc.php file by @TheCartpenter in #11717
- Added comment text on magic methods - system/library/cache/file.php file by @TheCartpenter in #11718
- Added comment text on magic methods - system/library/cache/memcached.php file by @TheCartpenter in #11719
- Added comment text on magic methods - system/library/cache/mem.php file by @TheCartpenter in #11720
- Added comment text on magic methods - system/library/cache/redis.php file by @TheCartpenter in #11721
- Added comment text on magic methods - system/engine/autoloader.php file by @TheCartpenter in #11723
- Added comment text on magic methods - system/library/db/mysqli.php file by @TheCartpenter in #11725
- Added comment text on methods - system/library/cart/customer.php file by @TheCartpenter in #11728
- Added comment text on magic methods - system/library/db/pdo.php file by @TheCartpenter in #11726
- Added comment text on magic methods - system/library/db/pgsql.php file by @TheCartpenter in #11727
- Added return void in comment text - system/library/log.php file by @TheCartpenter in #11729
- Added comment text on methods - system/library/cart/tax.php file by @TheCartpenter in #11730
- Added comment text on methods - system/library/cart/user.php file by @TheCartpenter in #11731
- Added comment text on methods - system/library/cart/length.php file by @TheCartpenter in #11732
- Added comment text on methods - system/library/cart/currency.php file by @TheCartpenter in #11733
- Added comment text on methods - system/library/image.php file by @TheCartpenter in #11736
- Added comment text on methods - system/library/mail.php file by @TheCartpenter in #11737
- Added comment text on methods - system/library/language.php file by @TheCartpenter in #11738
- Added comment text on methods - system/library/session/db.php file by @TheCartpenter in #11739
- Added comment text on methods - system/library/mail/smtp.php file by @TheCartpenter in #11740
- Added comment text on methods - system/library/cart/cart.php file by @TheCartpenter in #11741
- Added comment text on methods - system/library/session/file.php file by @TheCartpenter in #11742
- Added return void on comment text - system/library/session.php file by @TheCartpenter in #11743
- Added return void on comment text - system/library/session.php file by @TheCartpenter in #11744
- Added comment text on methods - system/library/session/redis.php file by @TheCartpenter in #11745
- Added return comment text on methods - system/library/template/twig.php file by @TheCartpenter in #11746
- Added comment text on methods - system/library/template/template.php file by @TheCartpenter in #11747
- Added return comment text in methods - system/engine/loader.php file by @TheCartpenter in #11748
- Added "startup/authorize" in user_permission.php by @nexadomain in #11753
- Added int cast on store ID - admin/controller/sale/order.php file by @TheCartpenter in #11758
- Bootstrap 5.2.1 fix tooltips by @stalker780 in #11759
- Added more ignored routes in user_permission.php by @nexadomain in #11756
- update notification.php by @nexadomain in #11757
- Update common.js by @padaliyajay in #11767
- Removed root composer.json by @qaharmdz in #11772
- Update catalog.php by @PhamToan in #11773
- Bump twig/twig from 3.4.2 to 3.4.3 in /upload/system/storage by @dependabot in #11776
- Prevent to Save multiple times form data in Banner, Bestsellers, Featured, HTML Content, Latest & Special modules. by @memdufaizan in #11711
- Added int cast on customer_payment_id - catalog/controller/account/payment_method.php file by @TheCartpenter in #11780
- Added IF statement on customer payment ID - catalog/model/checkout/subscription.php file by @TheCartpenter in #11781
- Banner images don't update on existing rows by @madgamer98 in #11755
- Fixed string to int type field - catalog/model/account/subscription.php file by @TheCartpenter in #11783
- Fixed two parameter types - admin/model/sale/subscription.php file by @TheCartpenter in #11782
- Replaced array() with [] - admin/controller/sale/order.php file by @TheCartpenter in #11787
- Removed duplicated sale/subscription load model - admin/controller/sale/subscription.php file by @TheCartpenter in #11788
- Added the mandatory fields in the parameters - admin/model/sale/subscription.php file by @TheCartpenter in #11790
- Added error_service_type language key definition - admin/language/en-gb/sale/subscription.php file by @TheCartpenter in #11809
- Fixed commented sentence; address to pay method - catalog/controller/account/payment_method.php file by @TheCartpenter in #11795
- Renamed getByCode to getExtensionByCode - catalog/controller/account/subscription.php file by @TheCartpenter in #11814
- Update mysqli.php by @osworx in #11799
- Removed !isset lookup on zone_id - catalog/controller/account/address.php file by @TheCartpenter in #11810
- Bootstrap 5.2.1 fix tooltips (another attempt) by @stalker780 in #11764
- Need to add the extension field - customer_payment - install/controller/upgrade/upgrade_8.php file by @TheCartpenter in #11797
- Replaced editSubscriptionPlan parameters - admin/controller/sale/subscription.php file by @TheCartpenter in #11804
- Added editSubscriptionPlan method - admin/model/sale/subscription.php file by @TheCartpenter in #11805
- Completing addTransaction() from sale/subscription - admin/controller/sale/subscription.php file by @TheCartpenter in #11807
- Added missing language key entries - catalog/language/en-gb/account/subscription.php file by @TheCartpenter in #11812
- Renamed recurring to subscription - catalog/view/template/account/subscription_info.twig file by @TheCartpenter in #11813
- Update INSTALL.md by @douglasmaiabr in #11819
- Removed duplicated closing select - admin/view/template/sale/subscription.twig file by @TheCartpenter in #11818
- Changed from int to float - catalog/model/account/customer.php file by @TheCartpenter in #11820
- Added validation on subscription status ID - admin/controller/sale/subscription.php file by @TheCartpenter in #11827
- Update subscription.php - admin/language/en-gb/sale/subscription.php file by @TheCartpenter in #11828
- Added int cast on config_customer_group_id key - catalog/controller/checkout/register.php file by @TheCartpenter in #11831
- Updated year range - system/library/language.php file by @TheCartpenter in #11856
- Added int cast on config_customer_group_id key - catalog/controller/api/sale/customer.php file by @TheCartpenter in #11832
- Added int cast on config_customer_group_id key - catalog/controller/account/custom_field.php file by @TheCartpenter in #11833
- Adding getTransactionTotal to admin subscriptions - admin/model/sale/subscription.php file by @TheCartpenter in #11821
- Renamed uppercase S to lowercase S - catalog/controller/account/subscription.php file by @TheCartpenter in #11835
- Removed extra row from row-cols-1 - extension/opencart/catalog/view/template/module/latest.twig file by @TheCartpenter in #11834
- Updated year range - system/engine/controller.php file by @TheCartpenter in #11844
- Updated year range - system/engine/event.php file by @TheCartpenter in #11845
- Updated year range - system/engine/loader.php file by @TheCartpenter in #11846
- Updated year range - system/engine/proxy.php file by @TheCartpenter in #11848
- Updated year range - system/engine/model.php file by @TheCartpenter in #11849
- Updated year range - system/engine/registry.php file by @TheCartpenter in #11850
- Updated year range - system/library/cache.php file by @TheCartpenter in #11851
- Updated year range - system/library/db.php file by @TheCartpenter in #11852
- Updated year range - system/library/encryption.php file by @TheCartpenter in #11854
- Updated year range - system/library/log.php file by @TheCartpenter in #11855
- Updated year range - system/library/image.php file by @TheCartpenter in #11857
- Updated year range - system/library/request.php file by @TheCartpenter in #11858
- Updated year range - system/library/session.php file by @TheCartpenter in #11859
- Updated year range - system/library/template.php file by @TheCartpenter in #11860
- Updated year range - system/library/url.php file by @TheCartpenter in #11861
- Fix seo url PDO error by @Lighadar in #11867
- Update contact.php by @PhamToan in #11824
- Replaced else if with elseif lookup - system/library/mail/smtp.php file by @TheCartpenter in #11866
- Explain the session_expire time by @pemaier in #11869
- Fixed description array key - admin/view/template/sale/order_info.twig file by @TheCartpenter in #11870
- Aligned autocomplete filter data array - admin/controller/catalog/attribute.php file by @TheCartpenter in #11887
- Permission needs to be checked before ID - admin/controller/sale/subscription.php file by @TheCartpenter in #11891
- Added missing error_permission language key - admin/language/en-gb/sale/subscription.php file by @TheCartpenter in #11892
- Added payment and shipping address comment - catalog/controller/mail/order.php file by @TheCartpenter in #11898
- Added payment and shipping address comment - admin/controller/sale/order.php file by @TheCartpenter in #11896
- Removed multiple rows for order product ID - catalog/model/checkout/subscription.php file by @TheCartpenter in #11893
- Added payment and shipping address comment - catalog/controller/account/order.php file by @TheCartpenter in #11897
- Added payment and shipping address comment - catalog/controller/mail/subscription.php file by @TheCartpenter in #11899
- Added payment as first parameter for ext. code - catalog/controller/account/subscription.php file by @TheCartpenter in #11904
- Added subscription status lookup in addTransaction - admin/controller/sale/subscription.php file by @TheCartpenter in #11913
- Added trial_remaining since it's a mandatory field - system/library/cart/cart.php file by @TheCartpenter in #11915
- Added trial_remaining as it's a mandatory field - catalog/model/checkout/order.php file by @TheCartpenter in #11916
- Added error_status language definition - admin/language/en-gb/sale/subscription.php file by @TheCartpenter in #11914
- Renamed recurring_description to description - catalog/view/template/account/subscription_info.twig file by @TheCartpenter in #11917
- Added trial_remaining field in commented text - catalog/controller/mail/subscription.php file by @TheCartpenter in #11919
- subscription status ID comment text correction - admin/controller/sale/subscription.php file by @TheCartpenter in #11920
- Update gdpr.php by @padaliyajay in #11921
- Added filter_data in compliance; cron/subscription - catalog/controller/account/subscription.php file by @TheCartpenter in #11927
- Added filters in account/subscription model - catalog/model/account/subscription.php file by @TheCartpenter in #11928
- Added addHistory as per cron/subscription - catalog/model/checkout/subscription.php file by @TheCartpenter in #11931
- Fixed typo from dot to comma in getSubscriptions() - catalog/model/account/subscription.php file by @TheCartpenter in #11933
- Added customer_payment_id in array comment - catalog/controller/mail/subscription.php file by @TheCartpenter in #11934
- Removing subscriptions in editOrder() method - catalog/model/checkout/order.php file by @TheCartpenter in #11937
- Modified active transaction status for new order - catalog/controller/cron/subscription.php file by @TheCartpenter in #11938
- Moved and renamed mail/subscription code field - install/opencart.sql file by @TheCartpenter in #11941
- Renaming code convention to mail_subscription - install/controller/upgrade/upgrade_5.php file by @TheCartpenter in #11942
- Completed mail/subscription event - catalog/controller/mail/subscription.php file by @TheCartpenter in #11943
- Added mail/subscription language - catalog/language/en-gb/mail/subscription.php file by @TheCartpenter in #11944
- Suggesting this change for TWIG file - catalog/view/template/mail/subscription.twig file by @TheCartpenter in #11945
- Fixed trial_remaining to trial_duration - system/library/cart/cart.php file by @TheCartpenter in #11947
- Added load language file - catalog/controller/mail/subscription.php file by @TheCartpenter in #11948
- Finalized cron/subscription by @TheCartpenter in #11952
- Added text_success - catalog/language/en-gb/cron/subscription.php file by @TheCartpenter in #11954
- Added promotional features in mail/subscription - catalog/controller/mail/subscription.php file by @TheCartpenter in #11955
- Added text_promotion language definition - catalog/language/en-gb/mail/subscription.php file by @TheCartpenter in #11956
- Added promotion variable in mail/subscription TWIG by @TheCartpenter in #11957
- Added new customer lookup in promo - catalog/controller/mail/subscription.php file by @TheCartpenter in #11958
- Another improvement of cycle and frequency - catalog/controller/mail/subscription.php file by @TheCartpenter in #11961
- Seperate help disription for trial language file by @pemaier in #11960
- Finalized the promo in mail/subscription - catalog/controller/mail/subscription.php file by @TheCartpenter in #11962
- Seperate help disription for trial by @pemaier in #11959
- Added default field for the address table - install/controller/upgrade/upgrade_8.php file by @TheCartpenter in #11965
- Renamed conventional name from $return to $returns - admin/controller/common/column_left.php file by @TheCartpenter in #11969
- Added mail/subscription language definitions - admin/language/en-gb/mail/subscription.php file by @TheCartpenter in #11980
- Edited mail/subscription_history.twig file - admin/view/template/mail/subscription_history.twig file by @TheCartpenter in #11981
- Replaced '/' with config session path - catalog/controller/startup/marketing.php file by @TheCartpenter in #11987
- Replaced '/' with config session_path - cron.php file by @TheCartpenter in #11988
- mail/subscription_transaction will not be needed by @TheCartpenter in #11983
- Completed mail/subscription in the admin - admin/controller/mail/subscription.php file by @TheCartpenter in #11979
- Added content in mail/subscription_canceled twig - admin/view/template/mail/subscription_canceled.twig file by @TheCartpenter in #11982
- Added trial period and reverse period lookup - catalog/controller/mail/subscription.php file by @TheCartpenter in #11986
- Replaced '/' with config session_path - system/framework.php file by @TheCartpenter in #11989
- Bootstrap 5.2.3 update by @stalker780 in #12012
- Renamed LOWER to LCASE - catalog/model/account/customer.php file by @TheCartpenter in #12052
- Renamed LOWER to LCASE - system/library/cart/customer.php file by @TheCartpenter in #12053
- Aligned two variables - system/library/db/pgsql.php file by @TheCartpenter in #12016
- Added session sql mode in model/install/install - install/model/install/install.php file by @TheCartpenter in #12021
- Added closing tag to BR - system/library/db/mysqli.php file by @TheCartpenter in #12080
- Edited some comment text - admin/language/en-gb/marketplace/marketplace.php file by @TheCartpenter in #12100
- Changed varchar(11) to int(11) - system/helper/db_schema.php file by @TheCartpenter in #12113
- Trimming to one space - system/library/mail/smtp.php file by @TheCartpenter in #12088
- Renamed targe into target - extension/opencart/admin/view/template/report/customer_search.twig file by @TheCartpenter in #12126
- Renamed language->load to load->language; comment - catalog/controller/startup/language.php file by @TheCartpenter in #12072
- Replaced | with . - admin/controller/sale/order.php file by @TheCartpenter in #12134
- Typo upgrade4 controller by @condor2 in #12138
- Update compare.twig by @PhamToan in #12067
New Contributors
- @nexadomain made their first contribution in #11599
- @iamsyh made their first contribution in #11603
- @KennedyFVB made their first contribution in #11469
- @sabeti05 made their first contribution in #11655
- @padaliyajay made their first contribution in #11674
- @memdufaizan made their first contribution in #11711
- @madgamer98 made their first contribution in #11755
- @douglasmaiabr made their first contribution in #11819
- @Lighadar made their first contribution in #11867
Full Changelog: 4.0.1.1...4.0.2.0