$product = {"id":7408442835043,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格","handle":"iphone-12-mini-mod-nx-printable-pb53","description":null,"published_at":"2024-06-11T16:37:20+08:00","created_at":"2024-05-03T15:27:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"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":41885532651619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31472292790371,"product_id":7408442835043,"position":6,"created_at":"2024-05-03T15:27:36+08:00","updated_at":"2024-05-03T15:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256","variant_ids":[41885532651619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB53","featured_media":{"alt":null,"id":23877209129059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/909ee7568996316a5acbbf8c015baee16781e8bc_1aaf07a8-9f46-47f9-bfcb-72c84e8d4424.webp?v=1714721245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46c8aeeb972aa5b00b33fd2b235fb6fee8639e_a026442e-1950-4441-a430-2250acca5951.webp?v=1714721247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d1573806b5cc00267d3c557f22d82896ca714a_93df9c8f-7ee2-4b7d-bd47-a648f00f0d63.webp?v=1714721249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20264953095d486a2a16474a41b31d5f7da5f4e7_c6f6e75c-a930-4b3b-a67b-fa378d6f4311.webp?v=1714721251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc4634b48f00c2e1c0395d8a475361120364e0a_0b9afeb9-8517-4ffa-b9ec-603aeab40b13.webp?v=1714721254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff849f3263cafee727635e5e609805d71960c5eb_d6e90230-4a6a-4449-91aa-61e2127d5530.webp?v=1714721258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10db72ffa918e8c8507f1f3f4575656ec7d65de5_49784fcd-270a-4613-862c-a69afaef9075.webp?v=1714721261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d107d82d2c185e8593ede4ac28b32379dc9bde6e_9e2095e3-1770-442a-b81c-e72fcefd97ad.webp?v=1714721263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cd80f225997e187f4d89a71a75c641b31a0e392_c60b4865-e1f2-4068-bbfa-5fd34ed1c87a.webp?v=1714721265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51bcc1f8f30f424a6c86a5fa44f7ce3cf74f417_276a5ad0-5c30-40a6-b1aa-5108bf5a4e86.webp?v=1714721268"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/909ee7568996316a5acbbf8c015baee16781e8bc_1aaf07a8-9f46-47f9-bfcb-72c84e8d4424.webp?v=1714721245","options":["color"],"media":[{"alt":null,"id":23877207097443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/909ee7568996316a5acbbf8c015baee16781e8bc_1aaf07a8-9f46-47f9-bfcb-72c84e8d4424.webp?v=1714721245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/909ee7568996316a5acbbf8c015baee16781e8bc_1aaf07a8-9f46-47f9-bfcb-72c84e8d4424.webp?v=1714721245","width":2000},{"alt":null,"id":23877207425123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46c8aeeb972aa5b00b33fd2b235fb6fee8639e_a026442e-1950-4441-a430-2250acca5951.webp?v=1714721247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46c8aeeb972aa5b00b33fd2b235fb6fee8639e_a026442e-1950-4441-a430-2250acca5951.webp?v=1714721247","width":2000},{"alt":null,"id":23877207883875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d1573806b5cc00267d3c557f22d82896ca714a_93df9c8f-7ee2-4b7d-bd47-a648f00f0d63.webp?v=1714721249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d1573806b5cc00267d3c557f22d82896ca714a_93df9c8f-7ee2-4b7d-bd47-a648f00f0d63.webp?v=1714721249","width":2000},{"alt":null,"id":23877208375395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20264953095d486a2a16474a41b31d5f7da5f4e7_c6f6e75c-a930-4b3b-a67b-fa378d6f4311.webp?v=1714721251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20264953095d486a2a16474a41b31d5f7da5f4e7_c6f6e75c-a930-4b3b-a67b-fa378d6f4311.webp?v=1714721251","width":2000},{"alt":null,"id":23877208768611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc4634b48f00c2e1c0395d8a475361120364e0a_0b9afeb9-8517-4ffa-b9ec-603aeab40b13.webp?v=1714721254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc4634b48f00c2e1c0395d8a475361120364e0a_0b9afeb9-8517-4ffa-b9ec-603aeab40b13.webp?v=1714721254","width":2000},{"alt":null,"id":23877209129059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256","width":2000},{"alt":null,"id":23877209522275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff849f3263cafee727635e5e609805d71960c5eb_d6e90230-4a6a-4449-91aa-61e2127d5530.webp?v=1714721258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff849f3263cafee727635e5e609805d71960c5eb_d6e90230-4a6a-4449-91aa-61e2127d5530.webp?v=1714721258","width":2000},{"alt":null,"id":23877209981027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10db72ffa918e8c8507f1f3f4575656ec7d65de5_49784fcd-270a-4613-862c-a69afaef9075.webp?v=1714721261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10db72ffa918e8c8507f1f3f4575656ec7d65de5_49784fcd-270a-4613-862c-a69afaef9075.webp?v=1714721261","width":2000},{"alt":null,"id":23877210374243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d107d82d2c185e8593ede4ac28b32379dc9bde6e_9e2095e3-1770-442a-b81c-e72fcefd97ad.webp?v=1714721263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d107d82d2c185e8593ede4ac28b32379dc9bde6e_9e2095e3-1770-442a-b81c-e72fcefd97ad.webp?v=1714721263","width":2000},{"alt":null,"id":23877210734691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cd80f225997e187f4d89a71a75c641b31a0e392_c60b4865-e1f2-4068-bbfa-5fd34ed1c87a.webp?v=1714721265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cd80f225997e187f4d89a71a75c641b31a0e392_c60b4865-e1f2-4068-bbfa-5fd34ed1c87a.webp?v=1714721265","width":2000},{"alt":null,"id":23877211160675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51bcc1f8f30f424a6c86a5fa44f7ce3cf74f417_276a5ad0-5c30-40a6-b1aa-5108bf5a4e86.webp?v=1714721268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51bcc1f8f30f424a6c86a5fa44f7ce3cf74f417_276a5ad0-5c30-40a6-b1aa-5108bf5a4e86.webp?v=1714721268","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885532651619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31472292790371,"product_id":7408442835043,"position":6,"created_at":"2024-05-03T15:27:36+08:00","updated_at":"2024-05-03T15:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256","variant_ids":[41885532651619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB53","featured_media":{"alt":null,"id":23877209129059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885532651619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31472292790371,"product_id":7408442835043,"position":6,"created_at":"2024-05-03T15:27:36+08:00","updated_at":"2024-05-03T15:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256","variant_ids":[41885532651619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB53","featured_media":{"alt":null,"id":23877209129059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564333accd9543d9d8a0b56a5ee012663cecb811_afd8c8a8-94d6-45d4-ba00-f822930ac746.webp?v=1714721256"}},"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: "停產" }