PWA version 4.3.6.x
Because of the new input.php class introduced in 1.0.8.1, the tpl_cm_cs_pwa_keep_account.php radio buttons are misaligned (see the attachment).
old contents:
...
<div class="col-sm-12">
<label class="radio-inline">
<?php echo tep_draw_radio_field('pwa_account', 'true', NULL, 'required aria-required="true"') . ' ' . MODULE_CONTENT_CHECKOUT_SUCCESS_PWA_KEEP_ACCOUNT_TEXT_SET_PASSWORD; ?>
</label>
</div>
<div class="col-sm-12">
<label class="radio-inline">
<?php echo tep_draw_radio_field('pwa_account', 'false') . ' ' . MODULE_CONTENT_CHECKOUT_SUCCESS_PWA_KEEP_ACCOUNT_TEXT_DELETE_ACCOUNT; ?>
</label>
</div>
...
my fix:
...
<div class="col-sm-12 custom-control custom-radio">
<?php
echo tep_draw_selection_field('pwa_account', 'radio','true', false, 'id="keep" required class="custom-control-input"');
echo '<label for="keep" class="custom-control-label text-muted">' . MODULE_CONTENT_CHECKOUT_SUCCESS_PWA_KEEP_ACCOUNT_TEXT_SET_PASSWORD .'</label>';
?>
</div>
<div class="col-sm-12 custom-control custom-radio">
<?php
echo tep_draw_selection_field('pwa_account', 'radio','false',false,'id="delete" class="custom-control-input"');
echo '<label for="delete" class="custom-control-label text-muted">' . MODULE_CONTENT_CHECKOUT_SUCCESS_PWA_KEEP_ACCOUNT_TEXT_DELETE_ACCOUNT .'</label>';
?>
</div>
...
The function tep_draw_radio_field is deprecated in admin. I presume that it will be deprecated in the catalog, too.
In Login without Account Form settings the Exclude Payment Modules for Virtual Guest Orders check boxes are misaligned (see the attachment).
Purchase without Account
Misaligned radio buttons - Purchase without Account
Re: Misaligned radio buttons
Thanks,
I’ ll include it in the next update. Although the next update round is planned for Phoenix 1.0.9.0. Please be patient.
I’ ll include it in the next update. Although the next update round is planned for Phoenix 1.0.9.0. Please be patient.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: Misaligned radio buttons
Hi,
I just downloaded PWA 4.4.0, thanks!
Looks like the misaligned radio buttons and admin checkbox are not fixed, yet.
Please consider this change, which works in all template configurations:
//VMNif (!file_exists(DIR_FS_CATALOG . 'templates/' . TEMPLATE_SELECTION . '/includes/hooks/shop/siteWide/pwa.php')) {
global $oscTemplate;
if (!file_exists($oscTemplate->map_to_template('includes/hooks/shop/siteWide/pwa.php', ''))) {
I just downloaded PWA 4.4.0, thanks!
Looks like the misaligned radio buttons and admin checkbox are not fixed, yet.
Please consider this change, which works in all template configurations:
//VMNif (!file_exists(DIR_FS_CATALOG . 'templates/' . TEMPLATE_SELECTION . '/includes/hooks/shop/siteWide/pwa.php')) {
global $oscTemplate;
if (!file_exists($oscTemplate->map_to_template('includes/hooks/shop/siteWide/pwa.php', ''))) {
-
- Posts: 40
- Joined: Mon Mar 08, 2021 8:59 am
- Contact:
Re: Misaligned radio buttons
PWA is still a 1.0.8.0 version. As already pointed out, 1.0.8.1+ will probably not come until 1.0.9.0 release.
Thanks for the reminder on the hook check. Hope I’ll remember it for the next update :-)
Thanks for the reminder on the hook check. Hope I’ll remember it for the next update :-)
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: Misaligned radio buttons
Sorry, I missed the tested with note. I appreciate your hard work with all addon updates.
When 1.0.8.1 was released I decided to start with a fresh installation. I've got all my changes (addons and my own) archived. So it's relatively easy to install them into a full fresh release.
The !file_exists change suggestion worked already in 1.0.7.16.
When 1.0.8.1 was released I decided to start with a fresh installation. I've got all my changes (addons and my own) archived. So it's relatively easy to install them into a full fresh release.
The !file_exists change suggestion worked already in 1.0.7.16.
-
- Posts: 40
- Joined: Mon Mar 08, 2021 8:59 am
- Contact: