Showing
1 changed file
with
2 additions
and
3 deletions
@@ -377,8 +377,7 @@ Cart = { | @@ -377,8 +377,7 @@ Cart = { | ||
377 | var poolId = $item.data('pool-id'); | 377 | var poolId = $item.data('pool-id'); |
378 | var batchNo = $item.data('batch-no'); | 378 | var batchNo = $item.data('batch-no'); |
379 | 379 | ||
380 | - if (!$chk.hasClass('cart-item-checked') || !$item.data('id') || | ||
381 | - $item.find('.pay-pro').hasClass('is-check')) { | 380 | + if (!$chk.hasClass('cart-item-checked') || $item.find('.pay-pro').hasClass('is-check')) { |
382 | return true; | 381 | return true; |
383 | } | 382 | } |
384 | 383 | ||
@@ -396,7 +395,7 @@ Cart = { | @@ -396,7 +395,7 @@ Cart = { | ||
396 | promotion_id: $(this).data('promotionid') || 0 | 395 | promotion_id: $(this).data('promotionid') || 0 |
397 | }); | 396 | }); |
398 | }); | 397 | }); |
399 | - } else { | 398 | + } else if ($item.data('id')) { |
400 | selectArray.push({ | 399 | selectArray.push({ |
401 | product_sku: $item.data('id'), | 400 | product_sku: $item.data('id'), |
402 | buy_number: $item.data('productnum'), | 401 | buy_number: $item.data('productnum'), |
-
Please register or login to post a comment