$product = {"id":7769966903395,"title":"iPhone 12 mini Mod NX ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-12-mini-mod-nx-printable-xf51","description":null,"published_at":"2025-04-16T13:11:27+08:00","created_at":"2025-04-15T22:41:02+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 12 Mini","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":43304829648995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197095645283,"product_id":7769966903395,"position":7,"created_at":"2025-07-16T14:58:27+08:00","updated_at":"2025-07-16T14:58:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109","variant_ids":[43304829648995]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF51","featured_media":{"alt":null,"id":25829712461923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051_9e7d1a5f-d419-420f-82ea-4271a09740bb.webp?v=1744728068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735da6a33b2168246ce24cd3dd1846c154ba4906_6d4088ab-a1ec-47af-bd27-25ac44a47e13.webp?v=1752649106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923845e66723fbfdda228a475b4145425567e991_811da071-743f-40e7-b2d3-a56013b81331.webp?v=1752649107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864eed91152b97b742a008d81e5670f800cb5402_45d28933-b6bd-4e3c-9a42-2fd9b5180590.webp?v=1752649107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15e4b0cbde0beaef9170e009c3650723d2af847_923d85a8-30cf-42bb-994a-89f772eca3c9.webp?v=1752649108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534358320dd86bda2a03ee5a36523b84108b31a2_9c237781-e2b0-47cb-a794-99fb76a32496.webp?v=1752649109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bee65d0722bbbde64cb47656019abfa21a5631_4bbdf117-20e5-465b-ab28-7225275decd0.webp?v=1752649110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d0681eae3af889866c1d0666ca75f4a22900b3_71d10c74-e20e-43b8-9976-1f440790fc44.webp?v=1752649110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f39cf97fdb502b24d749979ae8a889bf11330c_373c200d-969b-4996-979d-bced1467a5aa.webp?v=1752649111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48871e30d465973f3596fdd809843576ff0ea36f_19392151-48ac-4a87-85c2-b7c50085e675.webp?v=1752649111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c5529dffc23068ea6dd3425bfbf800bcd0f6_4146d386-46f5-42a6-b407-55ff7d01bf0f.webp?v=1752649112"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051_9e7d1a5f-d419-420f-82ea-4271a09740bb.webp?v=1744728068","options":["color"],"media":[{"alt":null,"id":25496618336355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051_9e7d1a5f-d419-420f-82ea-4271a09740bb.webp?v=1744728068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051_9e7d1a5f-d419-420f-82ea-4271a09740bb.webp?v=1744728068","width":2000},{"alt":null,"id":25829711708259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735da6a33b2168246ce24cd3dd1846c154ba4906_6d4088ab-a1ec-47af-bd27-25ac44a47e13.webp?v=1752649106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735da6a33b2168246ce24cd3dd1846c154ba4906_6d4088ab-a1ec-47af-bd27-25ac44a47e13.webp?v=1752649106","width":2000},{"alt":null,"id":25829711937635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923845e66723fbfdda228a475b4145425567e991_811da071-743f-40e7-b2d3-a56013b81331.webp?v=1752649107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923845e66723fbfdda228a475b4145425567e991_811da071-743f-40e7-b2d3-a56013b81331.webp?v=1752649107","width":2000},{"alt":null,"id":25829712068707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864eed91152b97b742a008d81e5670f800cb5402_45d28933-b6bd-4e3c-9a42-2fd9b5180590.webp?v=1752649107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864eed91152b97b742a008d81e5670f800cb5402_45d28933-b6bd-4e3c-9a42-2fd9b5180590.webp?v=1752649107","width":2000},{"alt":null,"id":25829712167011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15e4b0cbde0beaef9170e009c3650723d2af847_923d85a8-30cf-42bb-994a-89f772eca3c9.webp?v=1752649108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15e4b0cbde0beaef9170e009c3650723d2af847_923d85a8-30cf-42bb-994a-89f772eca3c9.webp?v=1752649108","width":2000},{"alt":null,"id":25829712330851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534358320dd86bda2a03ee5a36523b84108b31a2_9c237781-e2b0-47cb-a794-99fb76a32496.webp?v=1752649109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534358320dd86bda2a03ee5a36523b84108b31a2_9c237781-e2b0-47cb-a794-99fb76a32496.webp?v=1752649109","width":2000},{"alt":null,"id":25829712461923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109","width":2000},{"alt":null,"id":25829712658531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bee65d0722bbbde64cb47656019abfa21a5631_4bbdf117-20e5-465b-ab28-7225275decd0.webp?v=1752649110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bee65d0722bbbde64cb47656019abfa21a5631_4bbdf117-20e5-465b-ab28-7225275decd0.webp?v=1752649110","width":2000},{"alt":null,"id":25829712887907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d0681eae3af889866c1d0666ca75f4a22900b3_71d10c74-e20e-43b8-9976-1f440790fc44.webp?v=1752649110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d0681eae3af889866c1d0666ca75f4a22900b3_71d10c74-e20e-43b8-9976-1f440790fc44.webp?v=1752649110","width":2000},{"alt":null,"id":25829713117283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f39cf97fdb502b24d749979ae8a889bf11330c_373c200d-969b-4996-979d-bced1467a5aa.webp?v=1752649111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f39cf97fdb502b24d749979ae8a889bf11330c_373c200d-969b-4996-979d-bced1467a5aa.webp?v=1752649111","width":2000},{"alt":null,"id":25829713444963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48871e30d465973f3596fdd809843576ff0ea36f_19392151-48ac-4a87-85c2-b7c50085e675.webp?v=1752649111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48871e30d465973f3596fdd809843576ff0ea36f_19392151-48ac-4a87-85c2-b7c50085e675.webp?v=1752649111","width":2000},{"alt":null,"id":25829713805411,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c5529dffc23068ea6dd3425bfbf800bcd0f6_4146d386-46f5-42a6-b407-55ff7d01bf0f.webp?v=1752649112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00c5529dffc23068ea6dd3425bfbf800bcd0f6_4146d386-46f5-42a6-b407-55ff7d01bf0f.webp?v=1752649112","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304829648995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197095645283,"product_id":7769966903395,"position":7,"created_at":"2025-07-16T14:58:27+08:00","updated_at":"2025-07-16T14:58:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109","variant_ids":[43304829648995]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF51","featured_media":{"alt":null,"id":25829712461923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304829648995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197095645283,"product_id":7769966903395,"position":7,"created_at":"2025-07-16T14:58:27+08:00","updated_at":"2025-07-16T14:58:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109","variant_ids":[43304829648995]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF51","featured_media":{"alt":null,"id":25829712461923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f784d6562eb85ae260e32358aca7a16a48c95a_86e4c27f-e080-4a1e-a76c-e65bb071eb16.webp?v=1752649109"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }