i have a form in my checkout page, i need insert a new litle form into my exist form, like this:
<form class="login" id="paypalForm" method="post" action="">
// my inputs checkout....address shipping, email etc...
// i need insert HERE a new litle form to CHECK if input code COUPON is valid
{!! Form::open(['url' => 'coupon']) !!}
<input type="text" class="form-control dark" id="coupon" name="coupon">
<button type="submit" name="submit" class="btn" />
{!! Form::close() !!}
</form>
-my controller CouponController work good and return the right value
-I tryed do it with blade but it doesnt work, it is going always to "payment" and NOT to route "coupon"
There is a better way? maybe disable one form if other form is submited?
Thank you for your help!
I can not insert form coupon in another place, because the design and layout of my template doesnt permit.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire