$product = {"id":7769805226083,"title":"iPhone 14 Plus Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛","handle":"iphone-14-plus-mod-nx-printable-xf56","description":null,"published_at":"2025-04-16T14:19:28+08:00","created_at":"2025-04-15T20:43:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 14 Plus","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43304016117859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34196898644067,"product_id":7769805226083,"position":10,"created_at":"2025-07-16T14:53:45+08:00","updated_at":"2025-07-16T14:53:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827","variant_ids":[43304016117859]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF56","featured_media":{"alt":null,"id":25829604819043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549839f74f1102349c96ca3580dc659eddb4a186_a1742904-29c1-4379-97b7-3480cb07d754.webp?v=1744720997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e3f43719bf78f45b9fb6d4168a4d826b50db10.webp?v=1752648822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f617543a0225e14f94c28d68a57c1788aaa441.webp?v=1752648823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3978d567801de4a4a8d0d2b6beda665e9f0f81bb.webp?v=1752648823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73df2b84df5bc84520ba02556381109eed2329b4.webp?v=1752648824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1e8003c37f5ce8c6c7e6128b18f2238c834626.webp?v=1752648824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a894de0f8f45e8e875440866d92ec8d9ee55ebcd.webp?v=1752648825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143bf123a38f4d093c93b9f22d67a766997bb091.webp?v=1752648826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac80234ceb36aa5a4d15633124d86633f1d7937.webp?v=1752648826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a470a7b172fcd89fc56172e5dd9496b51d1a16.webp?v=1752648827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05deb62800f806d85f871d99229da984f3c154a4.webp?v=1752648829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0076a08c569f52cc7aa008c5e3020c000c70f162.webp?v=1752648829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4dc410d9a4972dedb8031422913323e8a27f7b0.webp?v=1752648830"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549839f74f1102349c96ca3580dc659eddb4a186_a1742904-29c1-4379-97b7-3480cb07d754.webp?v=1744720997","options":["color"],"media":[{"alt":null,"id":25496297209955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549839f74f1102349c96ca3580dc659eddb4a186_a1742904-29c1-4379-97b7-3480cb07d754.webp?v=1744720997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549839f74f1102349c96ca3580dc659eddb4a186_a1742904-29c1-4379-97b7-3480cb07d754.webp?v=1744720997","width":2000},{"alt":null,"id":25829602426979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e3f43719bf78f45b9fb6d4168a4d826b50db10.webp?v=1752648822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e3f43719bf78f45b9fb6d4168a4d826b50db10.webp?v=1752648822","width":2000},{"alt":null,"id":25829602558051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f617543a0225e14f94c28d68a57c1788aaa441.webp?v=1752648823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f617543a0225e14f94c28d68a57c1788aaa441.webp?v=1752648823","width":2000},{"alt":null,"id":25829602754659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3978d567801de4a4a8d0d2b6beda665e9f0f81bb.webp?v=1752648823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3978d567801de4a4a8d0d2b6beda665e9f0f81bb.webp?v=1752648823","width":2000},{"alt":null,"id":25829602984035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73df2b84df5bc84520ba02556381109eed2329b4.webp?v=1752648824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73df2b84df5bc84520ba02556381109eed2329b4.webp?v=1752648824","width":2000},{"alt":null,"id":25829603213411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1e8003c37f5ce8c6c7e6128b18f2238c834626.webp?v=1752648824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1e8003c37f5ce8c6c7e6128b18f2238c834626.webp?v=1752648824","width":2000},{"alt":null,"id":25829603475555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a894de0f8f45e8e875440866d92ec8d9ee55ebcd.webp?v=1752648825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a894de0f8f45e8e875440866d92ec8d9ee55ebcd.webp?v=1752648825","width":2000},{"alt":null,"id":25829603803235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143bf123a38f4d093c93b9f22d67a766997bb091.webp?v=1752648826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143bf123a38f4d093c93b9f22d67a766997bb091.webp?v=1752648826","width":2000},{"alt":null,"id":25829604425827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac80234ceb36aa5a4d15633124d86633f1d7937.webp?v=1752648826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac80234ceb36aa5a4d15633124d86633f1d7937.webp?v=1752648826","width":2000},{"alt":null,"id":25829604819043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827","width":2000},{"alt":null,"id":25829605408867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a470a7b172fcd89fc56172e5dd9496b51d1a16.webp?v=1752648827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a470a7b172fcd89fc56172e5dd9496b51d1a16.webp?v=1752648827","width":2000},{"alt":null,"id":25829605638243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05deb62800f806d85f871d99229da984f3c154a4.webp?v=1752648829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05deb62800f806d85f871d99229da984f3c154a4.webp?v=1752648829","width":2000},{"alt":null,"id":25829605900387,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0076a08c569f52cc7aa008c5e3020c000c70f162.webp?v=1752648829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0076a08c569f52cc7aa008c5e3020c000c70f162.webp?v=1752648829","width":2000},{"alt":null,"id":25829606162531,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4dc410d9a4972dedb8031422913323e8a27f7b0.webp?v=1752648830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4dc410d9a4972dedb8031422913323e8a27f7b0.webp?v=1752648830","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304016117859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34196898644067,"product_id":7769805226083,"position":10,"created_at":"2025-07-16T14:53:45+08:00","updated_at":"2025-07-16T14:53:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827","variant_ids":[43304016117859]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF56","featured_media":{"alt":null,"id":25829604819043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304016117859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34196898644067,"product_id":7769805226083,"position":10,"created_at":"2025-07-16T14:53:45+08:00","updated_at":"2025-07-16T14:53:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827","variant_ids":[43304016117859]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF56","featured_media":{"alt":null,"id":25829604819043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b4fc43d9e14c2d78faa4214c1a41d587ceb757.webp?v=1752648827"}},"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: "停產" }