$product = {"id":7769636896867,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-12-pro-max-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:15:31+08:00","created_at":"2025-04-15T18:45:46+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 Pro Max","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":43303278903395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197344125027,"product_id":7769636896867,"position":11,"created_at":"2025-07-16T15:04:02+08:00","updated_at":"2025-07-16T15:04:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444","variant_ids":[43303278903395]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF48","featured_media":{"alt":null,"id":25829847400547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cbfa2c34ce0518c1dc1525a897026243c13f70_8d6a875a-fddb-4efa-887e-2527c3cac0d3.webp?v=1744713953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f998f4fbe3765e3df70acb2d5d340ae34dbeec7_486e72ee-258c-4fa1-996f-b6ddd84d56a9.webp?v=1752649439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64549cd68601193679e63aa2c1193cdb50e79329_3895ccbb-ac63-4ec5-8fd7-d9427bada2ab.webp?v=1752649440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb36b5f2ae93441073738af39b01215122b034_5866b1f2-dde5-4c5a-b27f-8c4771964f6b.webp?v=1752649440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f7021ec5a03ccea69d1e3a53b5ab96278626e_14170e09-6f76-4058-be9d-aea16acfe2ff.webp?v=1752649441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a7e038be5efd3f55fd69e32b941b36c5a89b3e_b1da7673-d9b9-45e9-b8a3-ed87665e1cd9.webp?v=1752649441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1651c7d949da35898ea0a23e23c7ce97d94e9647_a63a6708-f5ad-45d8-8f58-305c8e7dc293.webp?v=1752649442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ff259d05f499285b100c1f278571d73632e0cf_6ef821bc-f8c1-45d0-a07e-1983ead6f8ca.webp?v=1752649442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5cd45c723ade3fdc929e7d2d8a8023e034c7cc_be8061ef-6765-46fc-b36c-f91cd789abbc.webp?v=1752649443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da223f0b33855c8348a720fb96c74cd4ed06be8e_6abb60ae-7df2-482c-b76e-e148f5021a21.webp?v=1752649443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cbfa2c34ce0518c1dc1525a897026243c13f70_8d6a875a-fddb-4efa-887e-2527c3cac0d3.webp?v=1744713953","options":["color"],"media":[{"alt":null,"id":25496025038947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cbfa2c34ce0518c1dc1525a897026243c13f70_8d6a875a-fddb-4efa-887e-2527c3cac0d3.webp?v=1744713953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cbfa2c34ce0518c1dc1525a897026243c13f70_8d6a875a-fddb-4efa-887e-2527c3cac0d3.webp?v=1744713953","width":2000},{"alt":null,"id":25829844353123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f998f4fbe3765e3df70acb2d5d340ae34dbeec7_486e72ee-258c-4fa1-996f-b6ddd84d56a9.webp?v=1752649439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f998f4fbe3765e3df70acb2d5d340ae34dbeec7_486e72ee-258c-4fa1-996f-b6ddd84d56a9.webp?v=1752649439","width":2000},{"alt":null,"id":25829844549731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64549cd68601193679e63aa2c1193cdb50e79329_3895ccbb-ac63-4ec5-8fd7-d9427bada2ab.webp?v=1752649440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64549cd68601193679e63aa2c1193cdb50e79329_3895ccbb-ac63-4ec5-8fd7-d9427bada2ab.webp?v=1752649440","width":2000},{"alt":null,"id":25829844713571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb36b5f2ae93441073738af39b01215122b034_5866b1f2-dde5-4c5a-b27f-8c4771964f6b.webp?v=1752649440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cb36b5f2ae93441073738af39b01215122b034_5866b1f2-dde5-4c5a-b27f-8c4771964f6b.webp?v=1752649440","width":2000},{"alt":null,"id":25829845336163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f7021ec5a03ccea69d1e3a53b5ab96278626e_14170e09-6f76-4058-be9d-aea16acfe2ff.webp?v=1752649441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f7021ec5a03ccea69d1e3a53b5ab96278626e_14170e09-6f76-4058-be9d-aea16acfe2ff.webp?v=1752649441","width":2000},{"alt":null,"id":25829845827683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a7e038be5efd3f55fd69e32b941b36c5a89b3e_b1da7673-d9b9-45e9-b8a3-ed87665e1cd9.webp?v=1752649441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a7e038be5efd3f55fd69e32b941b36c5a89b3e_b1da7673-d9b9-45e9-b8a3-ed87665e1cd9.webp?v=1752649441","width":2000},{"alt":null,"id":25829846089827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1651c7d949da35898ea0a23e23c7ce97d94e9647_a63a6708-f5ad-45d8-8f58-305c8e7dc293.webp?v=1752649442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1651c7d949da35898ea0a23e23c7ce97d94e9647_a63a6708-f5ad-45d8-8f58-305c8e7dc293.webp?v=1752649442","width":2000},{"alt":null,"id":25829846351971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ff259d05f499285b100c1f278571d73632e0cf_6ef821bc-f8c1-45d0-a07e-1983ead6f8ca.webp?v=1752649442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ff259d05f499285b100c1f278571d73632e0cf_6ef821bc-f8c1-45d0-a07e-1983ead6f8ca.webp?v=1752649442","width":2000},{"alt":null,"id":25829846712419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5cd45c723ade3fdc929e7d2d8a8023e034c7cc_be8061ef-6765-46fc-b36c-f91cd789abbc.webp?v=1752649443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5cd45c723ade3fdc929e7d2d8a8023e034c7cc_be8061ef-6765-46fc-b36c-f91cd789abbc.webp?v=1752649443","width":2000},{"alt":null,"id":25829847203939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da223f0b33855c8348a720fb96c74cd4ed06be8e_6abb60ae-7df2-482c-b76e-e148f5021a21.webp?v=1752649443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da223f0b33855c8348a720fb96c74cd4ed06be8e_6abb60ae-7df2-482c-b76e-e148f5021a21.webp?v=1752649443","width":2000},{"alt":null,"id":25829847400547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303278903395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197344125027,"product_id":7769636896867,"position":11,"created_at":"2025-07-16T15:04:02+08:00","updated_at":"2025-07-16T15:04:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444","variant_ids":[43303278903395]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF48","featured_media":{"alt":null,"id":25829847400547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303278903395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197344125027,"product_id":7769636896867,"position":11,"created_at":"2025-07-16T15:04:02+08:00","updated_at":"2025-07-16T15:04:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444","variant_ids":[43303278903395]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF48","featured_media":{"alt":null,"id":25829847400547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01661e2b6023703a90dfe161cf5143c6d7ae306a_80543c52-5d49-4db0-af41-aec409781c4d.webp?v=1752649444"}},"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: "停產" }