Fixed: multiple orders are create for the user, if the user clicks on the 'Confirm Order' while validating order from checque and bankwire from the front
This commit is contained in:
@@ -85,15 +85,21 @@
|
||||
</p>
|
||||
</div><!-- .cheque-box -->
|
||||
<p class="cart_navigation clearfix" id="cart_navigation">
|
||||
<a class="btn" href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}">
|
||||
<i class="icon-chevron-left"></i> {l s='Other payment methods' mod='bankwire'}
|
||||
</a>
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}" class="button-exclusive btn btn-default">
|
||||
<i class="icon-chevron-left"></i>{l s='Other payment methods' mod='bankwire'}
|
||||
</a>
|
||||
{*By webkul To Check Order restrict condition before Payment by the customer*}
|
||||
{if !$restrict_order}
|
||||
<button class="btn pull-right button button-medium" type="submit">
|
||||
<button class="btn pull-right button button-medium" type="submit" onClick="disableSubmitButton(this)">
|
||||
<span>{l s='I confirm my order' mod='bankwire'} <i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
{/if}
|
||||
</p>
|
||||
</form>
|
||||
<script>
|
||||
function disableSubmitButton(button) {
|
||||
$(button).attr('disabled', 'disabled');
|
||||
$(button).closest('form').get(0).submit();
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
@@ -81,11 +81,17 @@
|
||||
<i class="icon-chevron-left"></i>{l s='Other payment methods' mod='cheque'}
|
||||
</a>
|
||||
{*By webkul To Check Order restrict condition before Payment by the customer*}
|
||||
{if !$restrict_order}
|
||||
<button class="btn pull-right" type="submit">
|
||||
<span>{l s='I confirm my order' mod='bankwire'} <i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
{/if}
|
||||
{if !$restrict_order}
|
||||
<button class="btn pull-right button button-medium" type="submit" onClick="disableSubmitButton(this)">
|
||||
<span>{l s='I confirm my order' mod='cheque'} <i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
{/if}
|
||||
</p>
|
||||
</form>
|
||||
<script>
|
||||
function disableSubmitButton(button) {
|
||||
$(button).attr('disabled', 'disabled');
|
||||
$(button).closest('form').get(0).submit();
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
@@ -90,10 +90,16 @@
|
||||
</a>
|
||||
{*By webkul To Check Order restrict condition before Payment by the customer*}
|
||||
{if !$restrict_order}
|
||||
<button class="btn pull-right button button-medium" type="submit">
|
||||
<button class="btn pull-right button button-medium" type="submit" onClick="disableSubmitButton(this)">
|
||||
<span>{l s='I confirm my order' mod='bankwire'} <i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
{/if}
|
||||
</p>
|
||||
</form>
|
||||
<script>
|
||||
function disableSubmitButton(button) {
|
||||
$(button).attr('disabled', 'disabled');
|
||||
$(button).closest('form').get(0).submit();
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
@@ -82,10 +82,16 @@
|
||||
</a>
|
||||
{*By webkul To Check Order restrict condition before Payment by the customer*}
|
||||
{if !$restrict_order}
|
||||
<button class="btn pull-right button button-medium" type="submit">
|
||||
<button class="btn pull-right button button-medium" type="submit" onClick="disableSubmitButton(this)">
|
||||
<span>{l s='I confirm my order' mod='cheque'} <i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
{/if}
|
||||
</p>
|
||||
</form>
|
||||
<script>
|
||||
function disableSubmitButton(button) {
|
||||
$(button).attr('disabled', 'disabled');
|
||||
$(button).closest('form').get(0).submit();
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user