Post by chrisgwynne » Wed Nov 29, 2017 7:55 pm

Ok bare with me :). I want to add HTML to a specific input button on the payment page.

Code: Select all

<?php foreach ($payment_methods as $payment_method) { ?>
  <div class="radio">
      <?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 } ?>
  <?php } ?>
So I want to specify, that if payment option is pp_pro_iframe, then add some extra html into this part

Code: Select all

<input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" />
So it'd end up

Code: Select all

<input type="radio" name="payment_method" NEW HTML CODE value="<?php echo $payment_method['code']; ?>" />
Is this possible and how?

Thank you.

New member


Fri Nov 11, 2016 7:33 am

Post by straightlight » Wed Nov 29, 2017 9:40 pm

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Straightlight Administrator / Quality Assurance Analyst / Programmer

Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 1 guest