L
L
LastGeneral2020-08-12 15:54:49
opencart
LastGeneral, 2020-08-12 15:54:49

How to change coupon input in OpenCart3?

How to replace the standard input for choosing a coupon in the order form?

<div class="input-group">
  <input type="text" value="<%= model.coupon ? model.coupon : '' %>" name="coupon" id="coupon" <% if(Number(config.design.placeholder)) {  %>placeholder="{{ text_use_coupon }}" <% } %>  class="form-control"/>
  <span class="input-group-btn">
    <button class="btn btn-primary" id="confirm_coupon" type="button"><i class="fa fa-check"></i></button>
  </span>
</div>

On select c (-100, -75, -50, -25, -15).
<select name="coupon" id="coupon">
    <option value="-100"></option>
    <option value="-75"></option>
    <option value="-50"></option>
    <option value="-25"></option>
    <option value="-15"></option>
</select>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question