我想将HTML添加到付款页面上的特定输入按钮。
<?php foreach ($payment_methods as $payment_method) { ?>
<div class="radio">
<label>
<?php if ($payment_method['code'] == $code || !$code) { ?>
<?php $code = $payment_method['code']; ?>
<input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" checked="checked" />
<?php } else { ?>
<input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" />
<?php } ?>
<?php echo $payment_method['title']; ?>
<?php if (isset($payment_method['terms']) && $payment_method['terms']) { ?>
(<?php echo $payment_method['terms']; ?>)
<?php } ?>
</label>
</div>
<?php } ?>
所以我想指出,如果付款选项是pp_pro_iframe,那么在这部分中添加一些额外的html
<input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" />
所以它最终
<input type="radio" name="payment_method" NEW HTML CODE value="<?php echo $payment_method['code']; ?>" />
这可能吗?如何?
答案 0 :(得分:0)
/catalog/view/theme/default/template/checkout/payment_method.tpl第11和13行