$product = {"id":7408566763619,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-潮流系列","handle":"iphone-12-mini-mod-nx-printable-pb43","description":null,"published_at":"2024-06-11T16:40:54+08:00","created_at":"2024-05-03T15:52:29+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":41886938988643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472612081763,"product_id":7408566763619,"position":10,"created_at":"2024-05-03T15:52:54+08:00","updated_at":"2024-05-03T15:52:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774","variant_ids":[41886938988643]},"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-PB43","featured_media":{"alt":null,"id":23877529731171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6d7ea2e767f2cf233b813745009e0439d36111_1fea111e-2b25-4c0f-bcca-a10d4064d9e4.webp?v=1714722751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64d286e9e21936f8c9f3ac79cd90c3c99db5c_0bf80edf-3d7d-4d11-8e94-c305415f401e.webp?v=1714722754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4b3089f41e0061d79a8b22980ef6f1c49a32ea_6f57e56e-92f8-45c2-be8e-3bba0738df2c.webp?v=1714722757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467b9432dd05c92891d2a8c90345721bd19882a0_49451152-83c5-4da5-bbba-352addcb82ab.webp?v=1714722759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27bb8eda740f4a94a2ed1449e38141c52ba3d6b0_8d40d22a-ec6b-49b3-998d-cf0ba8551163.webp?v=1714722762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778d17c9119e466fb858ef1f23d98ce91d8d0317_b9f9aef9-0ccc-4622-bd4f-e4294a1b5500.webp?v=1714722764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677755b93799e39dc419db42564f1b7bade1922c_2a9810df-a38d-4784-9911-4c5872140bb0.webp?v=1714722767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2a78a1703d6a6418abbf442a15188044c0fb1d_f5bba339-b504-48e7-a5b9-122a125d8809.webp?v=1714722769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db66cdd480e90ec5c36d6bb6845dadaa98766ee_6564f800-5e8d-44cc-abb9-d7f4389d8569.webp?v=1714722772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec638edef83732650d91d40a51b6a46cb6469cfe_b1046160-aab6-4add-9647-616ca521282e.webp?v=1714722777"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6d7ea2e767f2cf233b813745009e0439d36111_1fea111e-2b25-4c0f-bcca-a10d4064d9e4.webp?v=1714722751","options":["color"],"media":[{"alt":null,"id":23877524095075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6d7ea2e767f2cf233b813745009e0439d36111_1fea111e-2b25-4c0f-bcca-a10d4064d9e4.webp?v=1714722751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6d7ea2e767f2cf233b813745009e0439d36111_1fea111e-2b25-4c0f-bcca-a10d4064d9e4.webp?v=1714722751","width":2000},{"alt":null,"id":23877524914275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64d286e9e21936f8c9f3ac79cd90c3c99db5c_0bf80edf-3d7d-4d11-8e94-c305415f401e.webp?v=1714722754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64d286e9e21936f8c9f3ac79cd90c3c99db5c_0bf80edf-3d7d-4d11-8e94-c305415f401e.webp?v=1714722754","width":2000},{"alt":null,"id":23877525602403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4b3089f41e0061d79a8b22980ef6f1c49a32ea_6f57e56e-92f8-45c2-be8e-3bba0738df2c.webp?v=1714722757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4b3089f41e0061d79a8b22980ef6f1c49a32ea_6f57e56e-92f8-45c2-be8e-3bba0738df2c.webp?v=1714722757","width":2000},{"alt":null,"id":23877526552675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467b9432dd05c92891d2a8c90345721bd19882a0_49451152-83c5-4da5-bbba-352addcb82ab.webp?v=1714722759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467b9432dd05c92891d2a8c90345721bd19882a0_49451152-83c5-4da5-bbba-352addcb82ab.webp?v=1714722759","width":2000},{"alt":null,"id":23877527076963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27bb8eda740f4a94a2ed1449e38141c52ba3d6b0_8d40d22a-ec6b-49b3-998d-cf0ba8551163.webp?v=1714722762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27bb8eda740f4a94a2ed1449e38141c52ba3d6b0_8d40d22a-ec6b-49b3-998d-cf0ba8551163.webp?v=1714722762","width":2000},{"alt":null,"id":23877527732323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778d17c9119e466fb858ef1f23d98ce91d8d0317_b9f9aef9-0ccc-4622-bd4f-e4294a1b5500.webp?v=1714722764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778d17c9119e466fb858ef1f23d98ce91d8d0317_b9f9aef9-0ccc-4622-bd4f-e4294a1b5500.webp?v=1714722764","width":2000},{"alt":null,"id":23877528289379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677755b93799e39dc419db42564f1b7bade1922c_2a9810df-a38d-4784-9911-4c5872140bb0.webp?v=1714722767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677755b93799e39dc419db42564f1b7bade1922c_2a9810df-a38d-4784-9911-4c5872140bb0.webp?v=1714722767","width":2000},{"alt":null,"id":23877528846435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2a78a1703d6a6418abbf442a15188044c0fb1d_f5bba339-b504-48e7-a5b9-122a125d8809.webp?v=1714722769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2a78a1703d6a6418abbf442a15188044c0fb1d_f5bba339-b504-48e7-a5b9-122a125d8809.webp?v=1714722769","width":2000},{"alt":null,"id":23877529206883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db66cdd480e90ec5c36d6bb6845dadaa98766ee_6564f800-5e8d-44cc-abb9-d7f4389d8569.webp?v=1714722772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db66cdd480e90ec5c36d6bb6845dadaa98766ee_6564f800-5e8d-44cc-abb9-d7f4389d8569.webp?v=1714722772","width":2000},{"alt":null,"id":23877529731171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774","width":2000},{"alt":null,"id":23877529927779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec638edef83732650d91d40a51b6a46cb6469cfe_b1046160-aab6-4add-9647-616ca521282e.webp?v=1714722777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec638edef83732650d91d40a51b6a46cb6469cfe_b1046160-aab6-4add-9647-616ca521282e.webp?v=1714722777","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886938988643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472612081763,"product_id":7408566763619,"position":10,"created_at":"2024-05-03T15:52:54+08:00","updated_at":"2024-05-03T15:52:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774","variant_ids":[41886938988643]},"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-PB43","featured_media":{"alt":null,"id":23877529731171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886938988643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472612081763,"product_id":7408566763619,"position":10,"created_at":"2024-05-03T15:52:54+08:00","updated_at":"2024-05-03T15:52:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774","variant_ids":[41886938988643]},"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-PB43","featured_media":{"alt":null,"id":23877529731171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3777c2f4229c6dad54d13ccac7c0344737d080d_5b347d54-84ed-4d91-b5a1-85476dc2b2dd.webp?v=1714722774"}},"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: "停產" }