$product = {"id":7769510084707,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf47","description":null,"published_at":"2025-07-16T17:28:27+08:00","created_at":"2025-04-15T17:06:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13 Mini","merge","reseller-ilovedoodle"],"price":110000,"price_min":110000,"price_max":110000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43302686916707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197837348963,"product_id":7769510084707,"position":3,"created_at":"2025-07-16T15:23:19+08:00","updated_at":"2025-07-16T15:23:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601","variant_ids":[43302686916707]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF47","featured_media":{"alt":null,"id":25830128844899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302691635299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197841117283,"product_id":7769510084707,"position":9,"created_at":"2025-07-16T15:23:22+08:00","updated_at":"2025-07-16T15:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604","variant_ids":[43302691635299]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF47","featured_media":{"alt":null,"id":25830130581603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302691799139,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197839577187,"product_id":7769510084707,"position":7,"created_at":"2025-07-16T15:23:21+08:00","updated_at":"2025-07-16T15:23:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603","variant_ids":[43302691799139]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF47","featured_media":{"alt":null,"id":25830129893475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2e61da9e2bb5745aa03537691dc11e48f07454.webp?v=1744707975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902f2018b83d2153f6d5d5ceb2ab7d1a4b98c1aa_13ea3038-2dba-4164-901d-16f277009096.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7a1853e371d872e5bda02596758f8c6fed2f_dff723c0-941a-4d7b-aab5-9ccde8703ffb.webp?v=1752650601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3bdf3c2a3dfb3787e6bc72c6eb8cf5005d3378_59554663-b9eb-47d3-9d49-21ab0a0aea45.webp?v=1752650602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d773689cb53fb1cc953c0d5a54a6e0a5a1df67_d63f35c2-5f4e-4aae-a67f-6c20a8790c55.webp?v=1752650603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aab38c12b0e45955703d211591720e97d8767468_87adccb7-a9dd-493b-befc-d57c1f092e36.webp?v=1752650604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc65930a2f890f0a87041d7886bdcc8fa0a4fc0_8165f32d-735b-41bf-8961-08217c02baaa.webp?v=1752650605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde2ad61194c656a720f6a813e60f552ffd1467_cd4b6b32-2b12-402a-9307-7dd68f34de09.webp?v=1752650605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf0a3d2c648bddc2d4501eb258281a96afd8ada_b6fef443-41f9-415c-82be-fc33690bde53.webp?v=1752650606"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2e61da9e2bb5745aa03537691dc11e48f07454.webp?v=1744707975","options":["color"],"media":[{"alt":null,"id":25495652827235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2e61da9e2bb5745aa03537691dc11e48f07454.webp?v=1744707975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2e61da9e2bb5745aa03537691dc11e48f07454.webp?v=1744707975","width":2000},{"alt":null,"id":25830128418915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902f2018b83d2153f6d5d5ceb2ab7d1a4b98c1aa_13ea3038-2dba-4164-901d-16f277009096.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902f2018b83d2153f6d5d5ceb2ab7d1a4b98c1aa_13ea3038-2dba-4164-901d-16f277009096.webp?v=1752650600","width":2000},{"alt":null,"id":25830128844899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601","width":2000},{"alt":null,"id":25830129139811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7a1853e371d872e5bda02596758f8c6fed2f_dff723c0-941a-4d7b-aab5-9ccde8703ffb.webp?v=1752650601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7a1853e371d872e5bda02596758f8c6fed2f_dff723c0-941a-4d7b-aab5-9ccde8703ffb.webp?v=1752650601","width":2000},{"alt":null,"id":25830129434723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3bdf3c2a3dfb3787e6bc72c6eb8cf5005d3378_59554663-b9eb-47d3-9d49-21ab0a0aea45.webp?v=1752650602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3bdf3c2a3dfb3787e6bc72c6eb8cf5005d3378_59554663-b9eb-47d3-9d49-21ab0a0aea45.webp?v=1752650602","width":2000},{"alt":null,"id":25830129631331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d773689cb53fb1cc953c0d5a54a6e0a5a1df67_d63f35c2-5f4e-4aae-a67f-6c20a8790c55.webp?v=1752650603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d773689cb53fb1cc953c0d5a54a6e0a5a1df67_d63f35c2-5f4e-4aae-a67f-6c20a8790c55.webp?v=1752650603","width":2000},{"alt":null,"id":25830129893475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603","width":2000},{"alt":null,"id":25830130253923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aab38c12b0e45955703d211591720e97d8767468_87adccb7-a9dd-493b-befc-d57c1f092e36.webp?v=1752650604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aab38c12b0e45955703d211591720e97d8767468_87adccb7-a9dd-493b-befc-d57c1f092e36.webp?v=1752650604","width":2000},{"alt":null,"id":25830130581603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604","width":2000},{"alt":null,"id":25830130909283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc65930a2f890f0a87041d7886bdcc8fa0a4fc0_8165f32d-735b-41bf-8961-08217c02baaa.webp?v=1752650605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc65930a2f890f0a87041d7886bdcc8fa0a4fc0_8165f32d-735b-41bf-8961-08217c02baaa.webp?v=1752650605","width":2000},{"alt":null,"id":25830131204195,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde2ad61194c656a720f6a813e60f552ffd1467_cd4b6b32-2b12-402a-9307-7dd68f34de09.webp?v=1752650605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde2ad61194c656a720f6a813e60f552ffd1467_cd4b6b32-2b12-402a-9307-7dd68f34de09.webp?v=1752650605","width":2000},{"alt":null,"id":25830131859555,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf0a3d2c648bddc2d4501eb258281a96afd8ada_b6fef443-41f9-415c-82be-fc33690bde53.webp?v=1752650606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf0a3d2c648bddc2d4501eb258281a96afd8ada_b6fef443-41f9-415c-82be-fc33690bde53.webp?v=1752650606","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43302686916707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197837348963,"product_id":7769510084707,"position":3,"created_at":"2025-07-16T15:23:19+08:00","updated_at":"2025-07-16T15:23:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601","variant_ids":[43302686916707]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF47","featured_media":{"alt":null,"id":25830128844899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302691635299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197841117283,"product_id":7769510084707,"position":9,"created_at":"2025-07-16T15:23:22+08:00","updated_at":"2025-07-16T15:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604","variant_ids":[43302691635299]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF47","featured_media":{"alt":null,"id":25830130581603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c81c58da2ca880972291481f6106f0ec3c3f4430_c46b40a0-c034-4676-af1f-ca6fc1dd0414.webp?v=1752650604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302691799139,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197839577187,"product_id":7769510084707,"position":7,"created_at":"2025-07-16T15:23:21+08:00","updated_at":"2025-07-16T15:23:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603","variant_ids":[43302691799139]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF47","featured_media":{"alt":null,"id":25830129893475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776dda91e8f31215635907b90bbf7e6b3688271f_7f5ebbae-d739-4b59-a6fb-1809f347e0d6.webp?v=1752650603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302686916707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197837348963,"product_id":7769510084707,"position":3,"created_at":"2025-07-16T15:23:19+08:00","updated_at":"2025-07-16T15:23:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601","variant_ids":[43302686916707]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF47","featured_media":{"alt":null,"id":25830128844899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/349d4a1deb4d1c5a397470c72564d9e0e8fcb057_b75305e5-95a6-401b-82be-b8cf3cef576d.webp?v=1752650601"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(document).ready(function() {
var productImg = $product.images[0];
var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]);
var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate')
? [productImg, bumperImg]
: [bumperImg, productImg];
window.mergeProductImages(layers).then(function (mergedImg) {
$('.merged-img').attr('src', mergedImg);
});
});
};
var sellingStatusData
window.fetchSellingStatus().then(data => {
try {
sellingStatusData = data;
} catch (error) {
sellingStatusData = null
console.error('Unable to parse selling status', error)
}
$(document).ready(function() {
handleSellingStatus($defaultVariant.sku);
});
})
function handleSellingStatus(currentSku) {
if (!sellingStatusData) {
console.error('No selling status available!')
return
}
const sellingStatusElement = document.getElementById('selling-status')
const addToCartButton = document.getElementById('AddToCart-product-template')
const currentProductSku = currentSku.replace(/-(.*)$/, '-')
if ($variants) {
const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder]
const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku)
if (matchSellingStatusProduct.length > 0) {
const isProductPending = matchSellingStatusProduct[0].status === 'pending'
const matchDate = matchSellingStatusProduct[0].date
sellingStatus = isProductPending
? "缺貨中"
: "預購完成出貨日:" + matchDate
sellingStatusElement.textContent = sellingStatus
if (sellingStatus.includes("缺貨中")){
addToCartButton.disabled ='true';
addToCartButton.textContent = "缺貨中無法加入購物車"
} else {
addToCartButton.textContent = "加到購物車"
}
} else {
sellingStatusElement.textContent = ''
addToCartButton.textContent = "加到購物車"
};
};
};
document.addEventListener('DOMContentLoaded', function () {
var currentVariantSelect = document.getElementById('SingleOptionSelector-0')
currentVariantSelect.addEventListener('change', function() {
var currentSku = $('#current_sku').text()
var skuElement = document.getElementById('current-sku')
skuElement.textContent = currentSku
handleSellingStatus(currentSku)
});
});
// Override default values of shop.strings for each template.
// Alternate product templates can change values of
// add to cart button, sold out, and unavailable states here.
theme.productStrings = {
addToCart: "加到購物車",
soldOut: "售完",
unavailable: "停產"
}