$product = {"id":7415951523939,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 抱一個","handle":"iphone-xs-max-mod-nx-printable-yb01","description":null,"published_at":"2024-06-11T16:48:45+08:00","created_at":"2024-05-06T12:30:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41915859664995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820702307,"product_id":7415951523939,"position":7,"created_at":"2024-05-06T12:31:01+08:00","updated_at":"2024-05-06T12:31:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861","variant_ids":[41915859664995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YB01","featured_media":{"alt":null,"id":23896227512419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609c366f680004bcb7dc8819db89234b1b35752d_43e3bc31-9aca-47c0-8262-8204597d8386.webp?v=1714969846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8e0b3045c127f10c40bda9879959561ee98148_9d78fe36-c1a0-4cd4-a9af-97c189e8a9ca.webp?v=1714969849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fbbdfc690ee946fb6abaf39d6fa79d3fbbd0ea_9ab7a95f-9dc2-4f16-ba8c-32b2a39aebd6.webp?v=1714969851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78616f42d0044c2e982a5ccf18796ba4ee4ca984_3ed6518b-828e-45ca-8b03-7bf0ff8c86c3.webp?v=1714969854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f781382a9326a588c8a2305488364c8d61592749_1581f924-94c7-440e-b7e7-829e54ae4540.webp?v=1714969856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ade93d339f7c7b81e0d4569db4ef8ed8dcac12a_c8c941f1-59d2-4f2f-801d-85f566d8bdb0.webp?v=1714969858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25632d0a1397b3a137cb4e57080bd64cc8a072d_efeeed60-ae38-4ed8-ba26-6599ff0ae97c.webp?v=1714969864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/912263a6ebd5250b6d6ca28950b58fbb14ee86af_a01a3575-361d-4fca-b958-b34aed1e1181.webp?v=1714969866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd3ba1c3158b7656d1b3235a55d3e0bb49b3f4a_cbd30988-31cb-460f-b6c6-69e58bd4a742.webp?v=1714969869"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609c366f680004bcb7dc8819db89234b1b35752d_43e3bc31-9aca-47c0-8262-8204597d8386.webp?v=1714969846","options":["color"],"media":[{"alt":null,"id":23896223744099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609c366f680004bcb7dc8819db89234b1b35752d_43e3bc31-9aca-47c0-8262-8204597d8386.webp?v=1714969846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609c366f680004bcb7dc8819db89234b1b35752d_43e3bc31-9aca-47c0-8262-8204597d8386.webp?v=1714969846","width":2000},{"alt":null,"id":23896224170083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8e0b3045c127f10c40bda9879959561ee98148_9d78fe36-c1a0-4cd4-a9af-97c189e8a9ca.webp?v=1714969849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8e0b3045c127f10c40bda9879959561ee98148_9d78fe36-c1a0-4cd4-a9af-97c189e8a9ca.webp?v=1714969849","width":2000},{"alt":null,"id":23896224825443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fbbdfc690ee946fb6abaf39d6fa79d3fbbd0ea_9ab7a95f-9dc2-4f16-ba8c-32b2a39aebd6.webp?v=1714969851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fbbdfc690ee946fb6abaf39d6fa79d3fbbd0ea_9ab7a95f-9dc2-4f16-ba8c-32b2a39aebd6.webp?v=1714969851","width":2000},{"alt":null,"id":23896225316963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78616f42d0044c2e982a5ccf18796ba4ee4ca984_3ed6518b-828e-45ca-8b03-7bf0ff8c86c3.webp?v=1714969854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78616f42d0044c2e982a5ccf18796ba4ee4ca984_3ed6518b-828e-45ca-8b03-7bf0ff8c86c3.webp?v=1714969854","width":2000},{"alt":null,"id":23896225775715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f781382a9326a588c8a2305488364c8d61592749_1581f924-94c7-440e-b7e7-829e54ae4540.webp?v=1714969856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f781382a9326a588c8a2305488364c8d61592749_1581f924-94c7-440e-b7e7-829e54ae4540.webp?v=1714969856","width":2000},{"alt":null,"id":23896226627683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ade93d339f7c7b81e0d4569db4ef8ed8dcac12a_c8c941f1-59d2-4f2f-801d-85f566d8bdb0.webp?v=1714969858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ade93d339f7c7b81e0d4569db4ef8ed8dcac12a_c8c941f1-59d2-4f2f-801d-85f566d8bdb0.webp?v=1714969858","width":2000},{"alt":null,"id":23896227512419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861","width":2000},{"alt":null,"id":23896228069475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25632d0a1397b3a137cb4e57080bd64cc8a072d_efeeed60-ae38-4ed8-ba26-6599ff0ae97c.webp?v=1714969864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25632d0a1397b3a137cb4e57080bd64cc8a072d_efeeed60-ae38-4ed8-ba26-6599ff0ae97c.webp?v=1714969864","width":2000},{"alt":null,"id":23896228593763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/912263a6ebd5250b6d6ca28950b58fbb14ee86af_a01a3575-361d-4fca-b958-b34aed1e1181.webp?v=1714969866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/912263a6ebd5250b6d6ca28950b58fbb14ee86af_a01a3575-361d-4fca-b958-b34aed1e1181.webp?v=1714969866","width":2000},{"alt":null,"id":23896229249123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd3ba1c3158b7656d1b3235a55d3e0bb49b3f4a_cbd30988-31cb-460f-b6c6-69e58bd4a742.webp?v=1714969869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd3ba1c3158b7656d1b3235a55d3e0bb49b3f4a_cbd30988-31cb-460f-b6c6-69e58bd4a742.webp?v=1714969869","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915859664995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820702307,"product_id":7415951523939,"position":7,"created_at":"2024-05-06T12:31:01+08:00","updated_at":"2024-05-06T12:31:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861","variant_ids":[41915859664995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YB01","featured_media":{"alt":null,"id":23896227512419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915859664995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490820702307,"product_id":7415951523939,"position":7,"created_at":"2024-05-06T12:31:01+08:00","updated_at":"2024-05-06T12:31:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861","variant_ids":[41915859664995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YB01","featured_media":{"alt":null,"id":23896227512419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a375207222262d928a3c08827565276a0985a2_3d9ea9b6-5a78-48ce-addb-578932fec71b.webp?v=1714969861"}},"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: "停產" }