Jump to content

The buttons of voucher and register are disabled before log-in


Recommended Posts

Check-out in the OPC page. 
If the customer didn't log-in, then they cannot press the "OK" button of the voucher part.

Plus, they cannot register on the same page due to the "save" button cannot be pressed, either.

 

Though the source code looks the same, when I check" Inspect", it shows that the button is disabled:

<fieldset>
  <h4>Vouchers</h4>
  <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="">
  <input type="hidden" name="submitDiscount">
  <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small" disabled="disabled">
    <span>OK</span>
  </button>
</fieldset>

 

After log-in, the button function is back to normal:

<fieldset>
  <h4>Vouchers</h4>
  <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="">
  <input type="hidden" name="submitDiscount">
  <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small">
    <span>OK</span>
  </button>
</fieldset>

 

Does anyone know that how I can solve it, let "disable" disappear?

Thank you so much if anyone has an idea!

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...