$product = {"id":7769410207843,"title":"iPhone 12 mini Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-12-mini-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:39:20+08:00","created_at":"2025-04-15T15:39:19+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":43302197067875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":33723714502755,"product_id":7769410207843,"position":1,"created_at":"2025-04-15T15:39:24+08:00","updated_at":"2025-04-15T15:39:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","variant_ids":[43302197067875]},"available":true,"name":"iPhone 12 mini 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":"NPB0118424-XF48","featured_media":{"alt":null,"id":25495330521187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73ff50650b3b50e146d8977e9011b9fddc6d429f_ddaaf69e-9568-4a5a-820b-d9f258c9f38f.webp?v=1752649034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8b2e715dbd3611d0f1baa66da4f1d8064c589_a0afc790-0422-4922-a70f-6cecf5392d11.webp?v=1752649035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ee0551031994bb3fde647f6b3cf12ec328f2ff_318c346c-957b-4a66-949e-804ff9a3d64d.webp?v=1752649035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655cb049d8a2f3163f54508a6a34407980bdb967_6a631067-6625-404f-9505-0cdcdb049aaf.webp?v=1752649036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987faab0a12184910a8a4703e8b831d4e9ae300d_13d9de78-97dc-432f-a086-3484fa2dc2f3.webp?v=1752649036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9504cccf2cf497de02879a2bfb4b97eda14d9d_8dbb0e64-eb7c-4204-9796-c3e0692cba88.webp?v=1752649037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010dfd7c240221a1161afa375ef29876f8273768_d169a553-f7d9-4393-8581-2d2922c775ca.webp?v=1752649037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968605c60aeada5624956d1f73255e30afebeda_dd2ec841-3b86-453f-894c-4bc83e8d9152.webp?v=1752649038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6048da7ddd9b87c15ed99f37b8458b80a9868a_c68a5955-2fc7-4931-b9ad-f3c4ca14c09d.webp?v=1752649039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac89d07bce289afd1c152f064ad4b3d0255425c_b41cedcf-5089-4d5e-8d88-cf1d2707b8da.webp?v=1752649040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c200c83913c5c8d0412d8609a87bb7b2fb8e46_c4f62071-585d-4d68-b9d0-271301160475.webp?v=1752649040"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","options":["color"],"media":[{"alt":null,"id":25495330521187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","width":2000},{"alt":null,"id":25829680906339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73ff50650b3b50e146d8977e9011b9fddc6d429f_ddaaf69e-9568-4a5a-820b-d9f258c9f38f.webp?v=1752649034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73ff50650b3b50e146d8977e9011b9fddc6d429f_ddaaf69e-9568-4a5a-820b-d9f258c9f38f.webp?v=1752649034","width":2000},{"alt":null,"id":25829681660003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8b2e715dbd3611d0f1baa66da4f1d8064c589_a0afc790-0422-4922-a70f-6cecf5392d11.webp?v=1752649035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8b2e715dbd3611d0f1baa66da4f1d8064c589_a0afc790-0422-4922-a70f-6cecf5392d11.webp?v=1752649035","width":2000},{"alt":null,"id":25829681758307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ee0551031994bb3fde647f6b3cf12ec328f2ff_318c346c-957b-4a66-949e-804ff9a3d64d.webp?v=1752649035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ee0551031994bb3fde647f6b3cf12ec328f2ff_318c346c-957b-4a66-949e-804ff9a3d64d.webp?v=1752649035","width":2000},{"alt":null,"id":25829681889379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655cb049d8a2f3163f54508a6a34407980bdb967_6a631067-6625-404f-9505-0cdcdb049aaf.webp?v=1752649036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655cb049d8a2f3163f54508a6a34407980bdb967_6a631067-6625-404f-9505-0cdcdb049aaf.webp?v=1752649036","width":2000},{"alt":null,"id":25829682053219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987faab0a12184910a8a4703e8b831d4e9ae300d_13d9de78-97dc-432f-a086-3484fa2dc2f3.webp?v=1752649036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987faab0a12184910a8a4703e8b831d4e9ae300d_13d9de78-97dc-432f-a086-3484fa2dc2f3.webp?v=1752649036","width":2000},{"alt":null,"id":25829682315363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9504cccf2cf497de02879a2bfb4b97eda14d9d_8dbb0e64-eb7c-4204-9796-c3e0692cba88.webp?v=1752649037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9504cccf2cf497de02879a2bfb4b97eda14d9d_8dbb0e64-eb7c-4204-9796-c3e0692cba88.webp?v=1752649037","width":2000},{"alt":null,"id":25829682479203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010dfd7c240221a1161afa375ef29876f8273768_d169a553-f7d9-4393-8581-2d2922c775ca.webp?v=1752649037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010dfd7c240221a1161afa375ef29876f8273768_d169a553-f7d9-4393-8581-2d2922c775ca.webp?v=1752649037","width":2000},{"alt":null,"id":25829682675811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968605c60aeada5624956d1f73255e30afebeda_dd2ec841-3b86-453f-894c-4bc83e8d9152.webp?v=1752649038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968605c60aeada5624956d1f73255e30afebeda_dd2ec841-3b86-453f-894c-4bc83e8d9152.webp?v=1752649038","width":2000},{"alt":null,"id":25829682905187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6048da7ddd9b87c15ed99f37b8458b80a9868a_c68a5955-2fc7-4931-b9ad-f3c4ca14c09d.webp?v=1752649039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6048da7ddd9b87c15ed99f37b8458b80a9868a_c68a5955-2fc7-4931-b9ad-f3c4ca14c09d.webp?v=1752649039","width":2000},{"alt":null,"id":25829683232867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac89d07bce289afd1c152f064ad4b3d0255425c_b41cedcf-5089-4d5e-8d88-cf1d2707b8da.webp?v=1752649040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac89d07bce289afd1c152f064ad4b3d0255425c_b41cedcf-5089-4d5e-8d88-cf1d2707b8da.webp?v=1752649040","width":2000},{"alt":null,"id":25829683462243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c200c83913c5c8d0412d8609a87bb7b2fb8e46_c4f62071-585d-4d68-b9d0-271301160475.webp?v=1752649040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c200c83913c5c8d0412d8609a87bb7b2fb8e46_c4f62071-585d-4d68-b9d0-271301160475.webp?v=1752649040","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302197067875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":33723714502755,"product_id":7769410207843,"position":1,"created_at":"2025-04-15T15:39:24+08:00","updated_at":"2025-04-15T15:39:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","variant_ids":[43302197067875]},"available":true,"name":"iPhone 12 mini 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":"NPB0118424-XF48","featured_media":{"alt":null,"id":25495330521187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302197067875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":33723714502755,"product_id":7769410207843,"position":1,"created_at":"2025-04-15T15:39:24+08:00","updated_at":"2025-04-15T15:39:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766","variant_ids":[43302197067875]},"available":true,"name":"iPhone 12 mini 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":"NPB0118424-XF48","featured_media":{"alt":null,"id":25495330521187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/064f89bb565fb957e994ce4848dea57fb4471480.webp?v=1744702766"}},"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: "停產" }