$product = {"id":7408557785187,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典","handle":"iphone-12-mini-mod-nx-printable-pb80","description":null,"published_at":"2024-06-11T16:40:39+08:00","created_at":"2024-05-03T15:50:19+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":41886852972643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31472588947555,"product_id":7408557785187,"position":10,"created_at":"2024-05-03T15:50:43+08:00","updated_at":"2024-05-03T15:50:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643","variant_ids":[41886852972643]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23877506334819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83abb58988fbdb59cae8e25e2ba678495da3f48_c37914cd-b274-4324-ba5d-5aeb774b5a68.webp?v=1714722622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87590a07412c5370648c99a4b2cf8c505feb9ed9_605707ab-5286-47f1-9fb3-5c983a311cd1.webp?v=1714722624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2aca69a3f3c7da1fe3cf8b1b95f862a52d5e770_92620244-938d-4e59-a479-28bb1e8938de.webp?v=1714722627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735256f1b96134ca83d1be610d21fe40388cb6f0_1102b223-9da4-42c0-8f4c-281e17be0687.webp?v=1714722629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad2fade03b57b1c89e276682ace0a864d6e2b68_6a67760e-4d17-43de-96cb-17ebd0574c09.webp?v=1714722631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307a6a283cd365f0819a36d3b50645e3d8a2df62_a0f9fb4f-85f8-4a78-a362-86aba9e744f8.webp?v=1714722634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f462c7e1c918f51b3bcc12cfcd6d6b009d5efb_86abff14-7ce2-4b83-87fb-5c5150b173a2.webp?v=1714722636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6566302819672b6b50918cce66447df6344f32a4_b66045dc-3275-42f0-9857-1db25ad5b3c3.webp?v=1714722638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99903f4686d0cb0613b962c0f3ced83c77b94a_f8ed001b-7064-4be0-b580-3f29c6b718a8.webp?v=1714722640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4226c00bb95a3296198c096f6f0093fddeb2209e_5e42c9a7-1004-49a3-8017-8d4c95c82263.webp?v=1714722646"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83abb58988fbdb59cae8e25e2ba678495da3f48_c37914cd-b274-4324-ba5d-5aeb774b5a68.webp?v=1714722622","options":["color"],"media":[{"alt":null,"id":23877501747299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83abb58988fbdb59cae8e25e2ba678495da3f48_c37914cd-b274-4324-ba5d-5aeb774b5a68.webp?v=1714722622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83abb58988fbdb59cae8e25e2ba678495da3f48_c37914cd-b274-4324-ba5d-5aeb774b5a68.webp?v=1714722622","width":2000},{"alt":null,"id":23877502566499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87590a07412c5370648c99a4b2cf8c505feb9ed9_605707ab-5286-47f1-9fb3-5c983a311cd1.webp?v=1714722624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87590a07412c5370648c99a4b2cf8c505feb9ed9_605707ab-5286-47f1-9fb3-5c983a311cd1.webp?v=1714722624","width":2000},{"alt":null,"id":23877502959715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2aca69a3f3c7da1fe3cf8b1b95f862a52d5e770_92620244-938d-4e59-a479-28bb1e8938de.webp?v=1714722627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2aca69a3f3c7da1fe3cf8b1b95f862a52d5e770_92620244-938d-4e59-a479-28bb1e8938de.webp?v=1714722627","width":2000},{"alt":null,"id":23877503451235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735256f1b96134ca83d1be610d21fe40388cb6f0_1102b223-9da4-42c0-8f4c-281e17be0687.webp?v=1714722629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/735256f1b96134ca83d1be610d21fe40388cb6f0_1102b223-9da4-42c0-8f4c-281e17be0687.webp?v=1714722629","width":2000},{"alt":null,"id":23877503877219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad2fade03b57b1c89e276682ace0a864d6e2b68_6a67760e-4d17-43de-96cb-17ebd0574c09.webp?v=1714722631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad2fade03b57b1c89e276682ace0a864d6e2b68_6a67760e-4d17-43de-96cb-17ebd0574c09.webp?v=1714722631","width":2000},{"alt":null,"id":23877504368739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307a6a283cd365f0819a36d3b50645e3d8a2df62_a0f9fb4f-85f8-4a78-a362-86aba9e744f8.webp?v=1714722634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307a6a283cd365f0819a36d3b50645e3d8a2df62_a0f9fb4f-85f8-4a78-a362-86aba9e744f8.webp?v=1714722634","width":2000},{"alt":null,"id":23877504794723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f462c7e1c918f51b3bcc12cfcd6d6b009d5efb_86abff14-7ce2-4b83-87fb-5c5150b173a2.webp?v=1714722636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7f462c7e1c918f51b3bcc12cfcd6d6b009d5efb_86abff14-7ce2-4b83-87fb-5c5150b173a2.webp?v=1714722636","width":2000},{"alt":null,"id":23877505220707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6566302819672b6b50918cce66447df6344f32a4_b66045dc-3275-42f0-9857-1db25ad5b3c3.webp?v=1714722638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6566302819672b6b50918cce66447df6344f32a4_b66045dc-3275-42f0-9857-1db25ad5b3c3.webp?v=1714722638","width":2000},{"alt":null,"id":23877505777763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99903f4686d0cb0613b962c0f3ced83c77b94a_f8ed001b-7064-4be0-b580-3f29c6b718a8.webp?v=1714722640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99903f4686d0cb0613b962c0f3ced83c77b94a_f8ed001b-7064-4be0-b580-3f29c6b718a8.webp?v=1714722640","width":2000},{"alt":null,"id":23877506334819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643","width":2000},{"alt":null,"id":23877506924643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4226c00bb95a3296198c096f6f0093fddeb2209e_5e42c9a7-1004-49a3-8017-8d4c95c82263.webp?v=1714722646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4226c00bb95a3296198c096f6f0093fddeb2209e_5e42c9a7-1004-49a3-8017-8d4c95c82263.webp?v=1714722646","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886852972643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31472588947555,"product_id":7408557785187,"position":10,"created_at":"2024-05-03T15:50:43+08:00","updated_at":"2024-05-03T15:50:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643","variant_ids":[41886852972643]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23877506334819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886852972643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31472588947555,"product_id":7408557785187,"position":10,"created_at":"2024-05-03T15:50:43+08:00","updated_at":"2024-05-03T15:50:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643","variant_ids":[41886852972643]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23877506334819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbfdcdcbae1c1bd5b3d63fc726decd8554ca406_2da5af2c-d771-41b6-b45a-d86442120c44.webp?v=1714722643"}},"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: "停產" }