Re: ZCA Bootstrap Template
Quote:
Originally Posted by
dbltoe
It looks like you have some bad HTML code at
Code:
Courier Locations</a>">Courier Locations</a>">
Without seeing the site's code, it should probably be
Code:
Courier Locations">Courier Locations</a>
This is the code
'HEADING_ORDER_COMMENTS' => 'Special Instructions or Comments About Your Order - Indicate the courier location nearest you from this list <a href="https://cyp.acscourier.net/en/myacs/my-tools/acs-store-locator" target="_blank">Courier Locations</a>',
Re: ZCA Bootstrap Template
Yet, if you look at your second image, something is causing a lot of extra HTML to be sent to the browser.
Re: ZCA Bootstrap Template
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.
Re: ZCA Bootstrap Template
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.)
Re: ZCA Bootstrap Template
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).
Re: ZCA Bootstrap Template
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.
Re: ZCA Bootstrap Template
I ran a test and it looked like the required solution.
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
swguy
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.)
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.
Code:
#authorizenet_cim-cc-cvv {
width: 15%
}
#authorizenet_cim_save {
opacity: 100%;
position: initial;
}
label[for=authorizenet_cim_save] {
display: flex;
}
at one point, i was going to add it to the payment module, but alas i got distracted.
Re: ZCA Bootstrap Template
> 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.
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
You can see in the attached image how it's rendered (without the checkbox).