Soon, we’ll be announcing a fresh new marketplace for TastyIgniter developers.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Solved] Customer clicks Confirm button multiple Submits

#1 zeta Offline Junior Member
I just noticed that when a customer places an order. In Step 2 Payment page, if they click on "Confirm" button multiple times, then multiple orders would go through.

The "Confirm" button needs to be disabled once it gets clicked the first time.


Line 279, \tastyigniter\extensions\cart_module\controllers\Cart_module.php
$data['button_order'] = '<a class="btn btn-order btn-primary btn-block btn-lg" onclick="$(this).attr(\'onclick\',\'\'); $(\'#checkout-form\').submit();">' . $this->lang->line('button_confirm') . '</a>';

Possibly Related Threads...

Thread / Author
Forum Jump:

Users browsing this thread: 1 Guest(s)