$product = {"id":7769913720931,"title":"iPhone 12 mini Mod NX ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-12-mini-mod-nx-printable-xf49","description":null,"published_at":"2025-04-16T13:34:34+08:00","created_at":"2025-04-15T22:02:58+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":43304566390883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196507623523,"product_id":7769913720931,"position":5,"created_at":"2025-07-16T14:44:57+08:00","updated_at":"2025-07-16T14:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299","variant_ids":[43304566390883]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829392547939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17_73833680-7355-414b-adaf-62095f49f58d.webp?v=1744725784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c506debf6a701f81ba7b01b4ba3c754219a9805_d3b8e8e4-6e89-4da1-87a2-0f2f363f9562.webp?v=1752648297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed2def7bf00695fbf52aa2d6d7431187842bfeb_906521aa-bff8-40c6-8c11-f238efbd7782.webp?v=1752648298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5810d23fb240c77d9a9fde4a49c18f6aa5acf08c_9f2b6930-ee2e-404d-b08a-3ef878c2963b.webp?v=1752648299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1aa696403e12aac022ecace57d1cb898ad9b6d_7664c291-13c3-4f1c-8184-7093e0805699.webp?v=1752648300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe72e4f77d3ef67e23fb7f3a1c7b665031b5bc4c_6113e05f-d5f7-4e4b-a52b-f488b1f21013.webp?v=1752648301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd57cb9ae4eeaed86c4a94ccec421cef5854e0_176c4f3b-1362-4655-aa9d-b8ffacbc3948.webp?v=1752648301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daace77b60ed4c0bc5a62aa89dc50d3e3ef8c593_e423204f-451a-4835-b616-997732810acf.webp?v=1752648302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adcb83b3fdda5191b9b7c01e20ad9ebce0881ff_65ed9253-28b6-4457-ab58-c49b13b4181a.webp?v=1752648302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d2e36e86b822b6341555598c064e69ece9e30f_0aa9f6e4-49a3-4ea7-9334-327c5eb8ac0f.webp?v=1752648303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854fed2ec8f6980cc8d97d3dbdfbbbac61788c3c_cde5f860-87c4-4700-90f0-c20cb7adb77a.webp?v=1752648304"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17_73833680-7355-414b-adaf-62095f49f58d.webp?v=1744725784","options":["color"],"media":[{"alt":null,"id":25496496537699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17_73833680-7355-414b-adaf-62095f49f58d.webp?v=1744725784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17_73833680-7355-414b-adaf-62095f49f58d.webp?v=1744725784","width":2000},{"alt":null,"id":25829391925347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c506debf6a701f81ba7b01b4ba3c754219a9805_d3b8e8e4-6e89-4da1-87a2-0f2f363f9562.webp?v=1752648297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c506debf6a701f81ba7b01b4ba3c754219a9805_d3b8e8e4-6e89-4da1-87a2-0f2f363f9562.webp?v=1752648297","width":2000},{"alt":null,"id":25829392220259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed2def7bf00695fbf52aa2d6d7431187842bfeb_906521aa-bff8-40c6-8c11-f238efbd7782.webp?v=1752648298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed2def7bf00695fbf52aa2d6d7431187842bfeb_906521aa-bff8-40c6-8c11-f238efbd7782.webp?v=1752648298","width":2000},{"alt":null,"id":25829392384099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5810d23fb240c77d9a9fde4a49c18f6aa5acf08c_9f2b6930-ee2e-404d-b08a-3ef878c2963b.webp?v=1752648299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5810d23fb240c77d9a9fde4a49c18f6aa5acf08c_9f2b6930-ee2e-404d-b08a-3ef878c2963b.webp?v=1752648299","width":2000},{"alt":null,"id":25829392547939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299","width":2000},{"alt":null,"id":25829392810083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1aa696403e12aac022ecace57d1cb898ad9b6d_7664c291-13c3-4f1c-8184-7093e0805699.webp?v=1752648300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1aa696403e12aac022ecace57d1cb898ad9b6d_7664c291-13c3-4f1c-8184-7093e0805699.webp?v=1752648300","width":2000},{"alt":null,"id":25829393170531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe72e4f77d3ef67e23fb7f3a1c7b665031b5bc4c_6113e05f-d5f7-4e4b-a52b-f488b1f21013.webp?v=1752648301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe72e4f77d3ef67e23fb7f3a1c7b665031b5bc4c_6113e05f-d5f7-4e4b-a52b-f488b1f21013.webp?v=1752648301","width":2000},{"alt":null,"id":25829393629283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd57cb9ae4eeaed86c4a94ccec421cef5854e0_176c4f3b-1362-4655-aa9d-b8ffacbc3948.webp?v=1752648301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd57cb9ae4eeaed86c4a94ccec421cef5854e0_176c4f3b-1362-4655-aa9d-b8ffacbc3948.webp?v=1752648301","width":2000},{"alt":null,"id":25829393956963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daace77b60ed4c0bc5a62aa89dc50d3e3ef8c593_e423204f-451a-4835-b616-997732810acf.webp?v=1752648302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daace77b60ed4c0bc5a62aa89dc50d3e3ef8c593_e423204f-451a-4835-b616-997732810acf.webp?v=1752648302","width":2000},{"alt":null,"id":25829394284643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adcb83b3fdda5191b9b7c01e20ad9ebce0881ff_65ed9253-28b6-4457-ab58-c49b13b4181a.webp?v=1752648302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adcb83b3fdda5191b9b7c01e20ad9ebce0881ff_65ed9253-28b6-4457-ab58-c49b13b4181a.webp?v=1752648302","width":2000},{"alt":null,"id":25829394612323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d2e36e86b822b6341555598c064e69ece9e30f_0aa9f6e4-49a3-4ea7-9334-327c5eb8ac0f.webp?v=1752648303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d2e36e86b822b6341555598c064e69ece9e30f_0aa9f6e4-49a3-4ea7-9334-327c5eb8ac0f.webp?v=1752648303","width":2000},{"alt":null,"id":25829394841699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854fed2ec8f6980cc8d97d3dbdfbbbac61788c3c_cde5f860-87c4-4700-90f0-c20cb7adb77a.webp?v=1752648304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854fed2ec8f6980cc8d97d3dbdfbbbac61788c3c_cde5f860-87c4-4700-90f0-c20cb7adb77a.webp?v=1752648304","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304566390883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196507623523,"product_id":7769913720931,"position":5,"created_at":"2025-07-16T14:44:57+08:00","updated_at":"2025-07-16T14:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299","variant_ids":[43304566390883]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829392547939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304566390883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196507623523,"product_id":7769913720931,"position":5,"created_at":"2025-07-16T14:44:57+08:00","updated_at":"2025-07-16T14:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299","variant_ids":[43304566390883]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829392547939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc6374a23005962cc85cad70e47ce5fa0ef9e62_68863efa-d4cd-4124-b5cd-9c677cee57c2.webp?v=1752648299"}},"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: "停產" }