$product = {"id":7651262464099,"title":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場","handle":"iphone-14-pro-jellytint-magsafe-yr06","description":null,"published_at":"2024-09-27T11:14:21+08:00","created_at":"2024-09-26T14:41:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint MagSafe專區-哆啦A夢","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-doraemon","device-iPhone 14 Pro","merge","reseller-doraemon"],"price":148000,"price_min":148000,"price_max":148000,"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":42830144077923,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527399011,"product_id":7651262464099,"position":8,"created_at":"2026-06-24T16:07:07+08:00","updated_at":"2026-06-24T16:07:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429","variant_ids":[42830144077923]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-YR06","featured_media":{"alt":null,"id":27593657647203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42830144110691,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012620H-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527726691,"product_id":7651262464099,"position":9,"created_at":"2026-06-24T16:07:08+08:00","updated_at":"2026-06-24T16:07:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430","variant_ids":[42830144110691]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620H-YR06","featured_media":{"alt":null,"id":27593657778275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44286985240675,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012620J-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084526776419,"product_id":7651262464099,"position":6,"created_at":"2026-06-24T16:07:04+08:00","updated_at":"2026-06-24T16:07:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426","variant_ids":[44286985240675]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620J-YR06","featured_media":{"alt":null,"id":27593657024611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44286985371747,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012620I-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527104099,"product_id":7651262464099,"position":7,"created_at":"2026-06-24T16:07:06+08:00","updated_at":"2026-06-24T16:07:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428","variant_ids":[44286985371747]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620I-YR06","featured_media":{"alt":null,"id":27593657352291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4b27fddebcbd470f89399941868b7895e8bfe6.webp?v=1727332867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865.webp?v=1782265635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b.webp?v=1782265636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4.webp?v=1782265639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee.webp?v=1782265640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4b27fddebcbd470f89399941868b7895e8bfe6.webp?v=1727332867","options":["color"],"media":[{"alt":null,"id":24738905948259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4b27fddebcbd470f89399941868b7895e8bfe6.webp?v=1727332867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4b27fddebcbd470f89399941868b7895e8bfe6.webp?v=1727332867","width":2000},{"alt":null,"id":27587183181923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865.webp?v=1782265635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865.webp?v=1782265635","width":2000},{"alt":null,"id":27587183673443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b.webp?v=1782265636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b.webp?v=1782265636","width":2000},{"alt":null,"id":27587184820323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4.webp?v=1782265639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4.webp?v=1782265639","width":2000},{"alt":null,"id":27587185803363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee.webp?v=1782265640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee.webp?v=1782265640","width":2000},{"alt":null,"id":27593657024611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426","width":2000},{"alt":null,"id":27593657352291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428","width":2000},{"alt":null,"id":27593657647203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429","width":2000},{"alt":null,"id":27593657778275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":42830144077923,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527399011,"product_id":7651262464099,"position":8,"created_at":"2026-06-24T16:07:07+08:00","updated_at":"2026-06-24T16:07:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429","variant_ids":[42830144077923]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-YR06","featured_media":{"alt":null,"id":27593657647203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42830144110691,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012620H-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527726691,"product_id":7651262464099,"position":9,"created_at":"2026-06-24T16:07:08+08:00","updated_at":"2026-06-24T16:07:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430","variant_ids":[42830144110691]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620H-YR06","featured_media":{"alt":null,"id":27593657778275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431cbd3a869c68e23a66b5c3d295f7ce4b1412ee_db14fd19-ec41-4caf-bc3d-a0e0bb26a4f1.webp?v=1782288430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44286985240675,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012620J-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084526776419,"product_id":7651262464099,"position":6,"created_at":"2026-06-24T16:07:04+08:00","updated_at":"2026-06-24T16:07:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426","variant_ids":[44286985240675]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620J-YR06","featured_media":{"alt":null,"id":27593657024611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/427961eb964a19b71b7464a51d5374cf4489b865_b195a7a1-dc4f-4436-9061-8b768366916b.webp?v=1782288426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44286985371747,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012620I-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527104099,"product_id":7651262464099,"position":7,"created_at":"2026-06-24T16:07:06+08:00","updated_at":"2026-06-24T16:07:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428","variant_ids":[44286985371747]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620I-YR06","featured_media":{"alt":null,"id":27593657352291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a30222c03f57ad7b305da20944b8ec77ac195b_2d6533fa-425f-4914-a4b1-db663b4422d7.webp?v=1782288428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":42830144077923,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-YR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36084527399011,"product_id":7651262464099,"position":8,"created_at":"2026-06-24T16:07:07+08:00","updated_at":"2026-06-24T16:07:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429","variant_ids":[42830144077923]},"available":true,"name":"iPhone 14 Pro Clear (MagSafe 兼容) Doraemon 哆啦A夢 記憶麵包登場 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-YR06","featured_media":{"alt":null,"id":27593657647203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7f985da1436deb4cd88cf17147fd0c160581b4_cecabd9f-f58f-46ab-baf5-c93e8d71f6a6.webp?v=1782288429"}},"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: "停產" }