diff --git a/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv2.blade.php b/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv2.blade.php index 7df6e516..e40a0d1a 100644 --- a/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv2.blade.php +++ b/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv2.blade.php @@ -2653,7 +2653,6 @@ function gtag() { $('.buy-select').hide() $('#p2-select').show() $('#product2').addClass('background-green') - initProuctData(0, '2') } var nprice = currencySymbol + data.package_products[0].new_price.toFixed(2) $('#summary-total1').text(nprice) @@ -2753,6 +2752,12 @@ function gtag() { params.products = [] params.products.push(productL1, productL2) getSkuListInfo(); + if (data.attr.attributes.length == 0) { + params.products.forEach(function(item) { + item.product_sku = data.sku + item.variant_id = '' + }) + } $('#pc-banner').attr('src', data.ads.pc.img); $('#mobile-banner').attr('src', data.ads.mobile.img); $('.prod-name').text('') diff --git a/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv3.blade.php b/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv3.blade.php index 29f6e493..dd741062 100644 --- a/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv3.blade.php +++ b/packages/Nicelizhi/Checkout/src/Resources/views/product-detail-checkoutv3.blade.php @@ -1561,7 +1561,6 @@ function gtag() { $('.buy-select').hide() $('#p2-select').show() $('#product2').addClass('background-green') - initProuctData(0, '2') } var nprice = currencySymbol + data.package_products[0].new_price.toFixed(2) $('#summary-total1').text(nprice) @@ -1656,6 +1655,12 @@ function gtag() { params.products = [] params.products.push(productL1, productL2) getSkuListInfo(); + if (data.attr.attributes.length == 0) { + params.products.forEach(function(item) { + item.product_sku = data.sku + item.variant_id = '' + }) + } $('.prod-name').text('') console.log('', '123'); $('title').html('')