Closed lat9 closed 1 year ago
Noting that the template's override of the core /includes/modules/shipping_estimator.php
introduces a slight wonkiness in the state-label display on zc157 when a country doesn't have zones:
To prevent that, zc157-based stores can keep the previous template-override file. For zc158, the label's aligned properly albeit with additional whitespace above:
The account_history
page now 'hides' the SQL used to gather the customer's previous orders (see this zc158 issue) and results in a set of warning/error logs:
[22-Jul-2022 14:41:31 America/New_York] Request URI: /zc158/index.php?main_page=account_history, IP address: 127.0.0.1
#0 C:\xampp\htdocs\zc158\includes\modules\pages\account_history\header_php_account_history_zca_bootstrap.php(6): zen_debug_error_handler()
#1 C:\xampp\htdocs\zc158\index.php(35): require('C:\\xampp\\htdocs...')
--> PHP Warning: Undefined variable $history_query_raw in C:\xampp\htdocs\zc158\includes\modules\pages\account_history\header_php_account_history_zca_bootstrap.php on line 6.
[22-Jul-2022 14:41:31 America/New_York] Request URI: /zc158/index.php?main_page=account_history, IP address: 127.0.0.1
#0 [internal function]: zen_debug_error_handler()
#1 C:\xampp\htdocs\zc158\includes\classes\db\mysql\query_factory.php(665): trigger_error()
#2 C:\xampp\htdocs\zc158\includes\classes\db\mysql\query_factory.php(632): queryFactory->show_error()
#3 C:\xampp\htdocs\zc158\includes\classes\db\mysql\query_factory.php(273): queryFactory->set_error()
#4 C:\xampp\htdocs\zc158\includes\modules\pages\account_history\header_php_account_history_zca_bootstrap.php(7): queryFactory->Execute()
#5 C:\xampp\htdocs\zc158\index.php(35): require('C:\\xampp\\htdocs...')
--> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 10' at line 1 :: LIMIT 10 ==> (as called by) C:\xampp\htdocs\zc158\includes\modules\pages\account_history\header_php_account_history_zca_bootstrap.php on line 7 <== in C:\xampp\htdocs\zc158\includes\classes\db\mysql\query_factory.php on line 665.
since the template's addition to the account_history
page 'expects' that raw SQL to be available.
Please let me know what you think from this list should be added to https://docs.zen-cart.com/user/upgrading/release_specific_upgrade_considerations/
(This is for breaking changes only.)
I would add the following:
others?
I've added a prefixed * to items that will break other templates, too. Many of them are the renaming of language constants so that previous templates are met with a PHP error for the missing definition.
This issue will identify changes needed for the Bootstrap-4 template to support both zc157 and the upcoming zc158 core. This list will be added to as I discover additional changes required.
Note: Items prefixed by * will also break other templates.
advanced_search
andadvance_search_results
pages becomesearch
andsearch_results
, respectively. Affectstpl_page_not_found_default.php
,tpl_site_map_default.php
as well as the two search-related sideboxes, too.about_us
page added. No change required.brands
page added. Requires template and sidebox formatting.checkout_address_book
module now returns an array of address-information instead of a set of database fields. requires template re-formatting.info_shopping_cart
,coupon_help
andcvv_help
.gv_faq
page changes that affect the template.strftime
usage deprecated for PHP 8.1, now availablezcDate
class.ot_coupon
refactored, with notifier added for the one current override section.checkout_confirmation
page changes for credit-coversaccount_history_info
page's template.<label></label>
tags from sidebox titles so that the core versions can be used (search, music_genres and record_companies).zen_not_null
with!empty
.account_history
now uses theCustomer
class to return a customer's order-history and breaks (see below).tpl_account_history_info_default.php
refactored, needs checktpl_account_password_default.php
adds autocomplete="current-password" to and "new-password" to password fields.tpl_address_book_default.php
replaces use ofzen_count_customer_address_book_entries
with$addressArray
.tpl_ask_a_question_default.php
now uses 'ENTRY_TELEPHONE_NUMBER' instead of 'ENTRY_TELEPHONE'.tpl_checkout_shipping_default.php
now uses 'HEADING_SHIPPING_METHOD' instead of 'TABLE_HEADING_SHIPPING_METHOD'.tpl_checkout_payment_default.php
now uses 'HEADING_PAYMENT_METHOD' instead of 'TABLE_HEADING_PAYMENT_METHOD'.tpl_contact_us_default.php
changes based on header change, used 'ENTRY_TELEPHONE_NUMBER' instead of 'ENTRY_TELEPHONE'. This is going to result in PHP warnings/errors for all pre-existing templates!tpl_discount_coupon_default.php
now autofocuses on the coupon lookup field.tpl_index_categories.php
now uses 'HEADING_TITLE_NESTED' instead of 'HEADING_TITLE'.tpl_gv_send_default.php
now uses 'ENTRY_RECIPIENT_NAME' instead of 'ENTRY_NAME'.tpl_login_default.php
sets email fields asautocomplete="username"
and password fields asautocomplete="current-password"
.tpl_modules_products_featured_listing.php
now uses 'TEXT_DATE_ADDED_LISTING' instead of 'TEXT_DATE_ADDED'. Noting that this template is not used by the Bootstrap template, see #135.tpl_modules_products_new_listing.php
now uses theProductConfigurationSwitch
class. Not used for Bootstrap, see #135.tpl_password_forgotten_default.php
now sets the email address autocomplete="username"tpl_unsubscribe_default.php
now redirects via 'SSL' instead of 'NONSSL'.