Skip to content

Commit

Permalink
Merge pull request #344 from codersaiful/3.5.0.0
Browse files Browse the repository at this point in the history
double cart adding issue has been solved
  • Loading branch information
codersaiful authored Aug 18, 2024
2 parents 8f9e149 + 5df2f8c commit a9a6480
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ jQuery(function($) {
e.preventDefault();

var thisButton = $(this);

if(thisButton.hasClass('disabled')){
return;
}

//Adding disable and Loading class
thisButton.addClass('disabled');
// thisButton.addClass('loading');
Expand Down Expand Up @@ -2441,6 +2446,9 @@ jQuery(function($) {
WPT_BlankNotice();
var product_id = $(this).parents('tr').data('product_id');
var thisButton = $('tr#product_id_' + product_id + ' .wpt_action button.single_add_to_cart_button');
if(thisButton.hasClass('disabled')){
return;
}
var thisTable = $(this).parents('div.wpt-wrap');
var table_id = $(this).parents('div.wpt-wrap').attr('id');

Expand Down

0 comments on commit a9a6480

Please sign in to comment.