$product = {"id":7415928029283,"title":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - Care Bears - Cheer Bear","handle":"iphone-xs-mod-nx-printable-yb03","description":null,"published_at":"2024-06-11T16:48:09+08:00","created_at":"2024-05-06T12:26:29+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","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":41915615903843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490756477027,"product_id":7415928029283,"position":1,"created_at":"2024-05-06T12:26:32+08:00","updated_at":"2024-05-06T12:26:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","variant_ids":[41915615903843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - Care Bears - Cheer Bear - 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":"NPB0108424-YB03","featured_media":{"alt":null,"id":23896163319907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f4e9a49d5ac6eb8692d6d3bcb1284f32717203_89c59c1a-dbd1-42e0-b965-9340ef59dc46.webp?v=1714969594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50f58354f49c58862e43fd61f4594bd204b1f344_fd5993d4-786c-4e58-850e-4e861bc58e81.webp?v=1714969597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d295bb656d35c1abe0aa4b3f1e3c0b38b5a087f4_95616ec6-4dae-4c94-a16f-fd53564b2935.webp?v=1714969599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d2a7748e184b8eef30b541445bb4f1f0d63810_f4b5833e-623b-4611-9830-b3a0d1a45a4b.webp?v=1714969602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1056936be5ca3cb142d09b601253fee51650e9_9e5b1bd4-eb47-429e-9f89-f9491788a70a.webp?v=1714969605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d987c2bcbaa216e99fc22044ecb3dae973aefe_8c08c990-706b-4b5f-8f6f-b757548f377e.webp?v=1714969607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea63d289af10b877c582035dae6a4fd0a5187252_67e43604-e972-44ed-a595-3c712d72b9a7.webp?v=1714969609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38788b5cfa5c91de06dc8fb406c76cc5fc854724_b76d2671-ac50-479a-be7a-871497f64f63.webp?v=1714969613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740db80f2240275c0aefaee73fbb97fd0f0a9cfc_8582044c-38b1-483a-835d-d654735aaab8.webp?v=1714969615"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","options":["color"],"media":[{"alt":null,"id":23896163319907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","width":2000},{"alt":null,"id":23896163713123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f4e9a49d5ac6eb8692d6d3bcb1284f32717203_89c59c1a-dbd1-42e0-b965-9340ef59dc46.webp?v=1714969594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f4e9a49d5ac6eb8692d6d3bcb1284f32717203_89c59c1a-dbd1-42e0-b965-9340ef59dc46.webp?v=1714969594","width":2000},{"alt":null,"id":23896164434019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50f58354f49c58862e43fd61f4594bd204b1f344_fd5993d4-786c-4e58-850e-4e861bc58e81.webp?v=1714969597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50f58354f49c58862e43fd61f4594bd204b1f344_fd5993d4-786c-4e58-850e-4e861bc58e81.webp?v=1714969597","width":2000},{"alt":null,"id":23896165023843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d295bb656d35c1abe0aa4b3f1e3c0b38b5a087f4_95616ec6-4dae-4c94-a16f-fd53564b2935.webp?v=1714969599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d295bb656d35c1abe0aa4b3f1e3c0b38b5a087f4_95616ec6-4dae-4c94-a16f-fd53564b2935.webp?v=1714969599","width":2000},{"alt":null,"id":23896165384291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d2a7748e184b8eef30b541445bb4f1f0d63810_f4b5833e-623b-4611-9830-b3a0d1a45a4b.webp?v=1714969602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1d2a7748e184b8eef30b541445bb4f1f0d63810_f4b5833e-623b-4611-9830-b3a0d1a45a4b.webp?v=1714969602","width":2000},{"alt":null,"id":23896166137955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1056936be5ca3cb142d09b601253fee51650e9_9e5b1bd4-eb47-429e-9f89-f9491788a70a.webp?v=1714969605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1056936be5ca3cb142d09b601253fee51650e9_9e5b1bd4-eb47-429e-9f89-f9491788a70a.webp?v=1714969605","width":2000},{"alt":null,"id":23896166596707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d987c2bcbaa216e99fc22044ecb3dae973aefe_8c08c990-706b-4b5f-8f6f-b757548f377e.webp?v=1714969607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d987c2bcbaa216e99fc22044ecb3dae973aefe_8c08c990-706b-4b5f-8f6f-b757548f377e.webp?v=1714969607","width":2000},{"alt":null,"id":23896167055459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea63d289af10b877c582035dae6a4fd0a5187252_67e43604-e972-44ed-a595-3c712d72b9a7.webp?v=1714969609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea63d289af10b877c582035dae6a4fd0a5187252_67e43604-e972-44ed-a595-3c712d72b9a7.webp?v=1714969609","width":2000},{"alt":null,"id":23896168988771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38788b5cfa5c91de06dc8fb406c76cc5fc854724_b76d2671-ac50-479a-be7a-871497f64f63.webp?v=1714969613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38788b5cfa5c91de06dc8fb406c76cc5fc854724_b76d2671-ac50-479a-be7a-871497f64f63.webp?v=1714969613","width":2000},{"alt":null,"id":23896169513059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740db80f2240275c0aefaee73fbb97fd0f0a9cfc_8582044c-38b1-483a-835d-d654735aaab8.webp?v=1714969615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/740db80f2240275c0aefaee73fbb97fd0f0a9cfc_8582044c-38b1-483a-835d-d654735aaab8.webp?v=1714969615","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915615903843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490756477027,"product_id":7415928029283,"position":1,"created_at":"2024-05-06T12:26:32+08:00","updated_at":"2024-05-06T12:26:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","variant_ids":[41915615903843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - Care Bears - Cheer Bear - 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":"NPB0108424-YB03","featured_media":{"alt":null,"id":23896163319907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915615903843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490756477027,"product_id":7415928029283,"position":1,"created_at":"2024-05-06T12:26:32+08:00","updated_at":"2024-05-06T12:26:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592","variant_ids":[41915615903843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - Care Bears - Cheer Bear - 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":"NPB0108424-YB03","featured_media":{"alt":null,"id":23896163319907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8feaa27b04a8ef17bde55b2ea0de48b6b23c8ec_de8b47ca-9dc2-418b-86a7-e0af31753aed.webp?v=1714969592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }