Yet, if you look at your second image, something is causing a lot of extra HTML to be sent to the browser.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
It's hard to be sure without the code, but it looks like some characters need to be escaped in your constant, probably double quotes.
When displaying it, it probably goes through some function where double quotes inside the constant might need to be escaped.
Just an idea.
In tpl_checkout_payment_default.php, I can see the logic for building a bootstrap-style checkbox for payment methods that have a field which includes a checkbox - it's on line 120 in version 3.7.0.
But this doesn't seem to fire correctly for Authorize AIM, which does
$selection['fields'][] = [
'title' => 'Keep Card on File',
'field' => zen_draw_checkbox_field('authorizenet_cim_save', '', true, 'id="authorizenet_cim_save" '),
'tag' => $this->code . '_save',
];
and produces
<label for="authorizenet_cim_save" class="inputLabelPayment">Keep Card on File</label>
<input type="checkbox" name="authorizenet_cim_save" checked="checked" id="authorizenet_cim_save" class="custom-control-input">
which is lacking the enclosing div of class "custom-control custom-checkbox" (and thus does not actually display a checkbox, just the text.)
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
OK I see. The code on line 120 is for credit classes.
Perhaps the logic from line 120-140 of tpl_checkout_payment_default.php needs to be reused in line 223 (where payment classes are handled).
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I support this suggestion. The symptoms are the same as I reported over 4 years ago in post 222 of this thread, so a similar solution should work.
I ran a test and it looked like the required solution.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
i can not speak of any missing divs; but this template DOES produce the checkbox. you can see it in your code above.
whether the code for this template needs to be addressed, i also can not say. but the "missing" checkbox can be seen by addressing the css.
i use something like this.
at one point, i was going to add it to the payment module, but alas i got distracted.Code:#authorizenet_cim-cc-cvv { width: 15% } #authorizenet_cim_save { opacity: 100%; position: initial; } label[for=authorizenet_cim_save] { display: flex; }
> i can not speak of any missing divs; but this template DOES produce the checkbox. you can see it in your code above.
It does not, which is why I posted this. The specific reason is that a bunch of steps are required to get checkboxes to show in Bootstrap.
These steps are missing. They were added for order total modules but not for payment modules.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
You can see in the attached image how it's rendered (without the checkbox).
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks