$product = {"id":7411293847651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 死星-潮流系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb43","description":null,"published_at":"2024-06-11T17:41:03+08:00","created_at":"2024-05-05T00:01:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897071837283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069390435,"product_id":7411293847651,"position":9,"created_at":"2024-05-05T00:02:07+08:00","updated_at":"2024-05-05T00:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527","variant_ids":[41897071837283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 死星-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB43","featured_media":{"alt":null,"id":23885320093795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2134f28ac008d6a16990eb2ed2bf8536114d4e2_b4f79c2b-0995-4bb6-ac06-58c93bd43198.webp?v=1714838505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f43e086cbbf27afcec8bdd6533bcd03f63c0f7a_fb6f7159-6c62-47fb-9d3c-6b4eb1a32845.webp?v=1714838507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbb87309a9799eaa94c2cc4a4141f8a8dc8b647_fe4c82ba-3b89-40cf-bce3-8162c92c5fbf.webp?v=1714838510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1ddb2eef2f7890cbf9c2c9a27b29bcad46a1f7_8fc384b8-c040-4db1-974c-77434afb8d24.webp?v=1714838512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693def5edd9ede4f544fa94f844c147910f56156_13d3b141-5f8b-4f9b-877b-b6733825991f.webp?v=1714838516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64d9f205a7fa4e233b7e93e439c64da5b8460c_77094e22-f893-4cc1-b61c-525f2a36cd55.webp?v=1714838519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa4b00eb55677fe3f5e6beb4bd2de8fe543c4a3_525b9164-1890-40f2-8ed4-dc05ef029d7f.webp?v=1714838522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776f42d0bc7ee37617dec7e8f83b118afa110751_a3c01ecd-1edb-451e-8a4c-112d4e568b87.webp?v=1714838524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d489bcaedf2a802ff73c71f95c8c06c3fffb51bd_cbdec6e8-a943-4dbd-8152-bf99523e273b.webp?v=1714838530"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2134f28ac008d6a16990eb2ed2bf8536114d4e2_b4f79c2b-0995-4bb6-ac06-58c93bd43198.webp?v=1714838505","options":["color"],"media":[{"alt":null,"id":23885315244131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2134f28ac008d6a16990eb2ed2bf8536114d4e2_b4f79c2b-0995-4bb6-ac06-58c93bd43198.webp?v=1714838505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2134f28ac008d6a16990eb2ed2bf8536114d4e2_b4f79c2b-0995-4bb6-ac06-58c93bd43198.webp?v=1714838505","width":2000},{"alt":null,"id":23885315866723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f43e086cbbf27afcec8bdd6533bcd03f63c0f7a_fb6f7159-6c62-47fb-9d3c-6b4eb1a32845.webp?v=1714838507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f43e086cbbf27afcec8bdd6533bcd03f63c0f7a_fb6f7159-6c62-47fb-9d3c-6b4eb1a32845.webp?v=1714838507","width":2000},{"alt":null,"id":23885316391011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbb87309a9799eaa94c2cc4a4141f8a8dc8b647_fe4c82ba-3b89-40cf-bce3-8162c92c5fbf.webp?v=1714838510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbb87309a9799eaa94c2cc4a4141f8a8dc8b647_fe4c82ba-3b89-40cf-bce3-8162c92c5fbf.webp?v=1714838510","width":2000},{"alt":null,"id":23885317111907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1ddb2eef2f7890cbf9c2c9a27b29bcad46a1f7_8fc384b8-c040-4db1-974c-77434afb8d24.webp?v=1714838512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1ddb2eef2f7890cbf9c2c9a27b29bcad46a1f7_8fc384b8-c040-4db1-974c-77434afb8d24.webp?v=1714838512","width":2000},{"alt":null,"id":23885317898339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693def5edd9ede4f544fa94f844c147910f56156_13d3b141-5f8b-4f9b-877b-b6733825991f.webp?v=1714838516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693def5edd9ede4f544fa94f844c147910f56156_13d3b141-5f8b-4f9b-877b-b6733825991f.webp?v=1714838516","width":2000},{"alt":null,"id":23885318389859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64d9f205a7fa4e233b7e93e439c64da5b8460c_77094e22-f893-4cc1-b61c-525f2a36cd55.webp?v=1714838519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64d9f205a7fa4e233b7e93e439c64da5b8460c_77094e22-f893-4cc1-b61c-525f2a36cd55.webp?v=1714838519","width":2000},{"alt":null,"id":23885319012451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa4b00eb55677fe3f5e6beb4bd2de8fe543c4a3_525b9164-1890-40f2-8ed4-dc05ef029d7f.webp?v=1714838522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa4b00eb55677fe3f5e6beb4bd2de8fe543c4a3_525b9164-1890-40f2-8ed4-dc05ef029d7f.webp?v=1714838522","width":2000},{"alt":null,"id":23885319536739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776f42d0bc7ee37617dec7e8f83b118afa110751_a3c01ecd-1edb-451e-8a4c-112d4e568b87.webp?v=1714838524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776f42d0bc7ee37617dec7e8f83b118afa110751_a3c01ecd-1edb-451e-8a4c-112d4e568b87.webp?v=1714838524","width":2000},{"alt":null,"id":23885320093795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527","width":2000},{"alt":null,"id":23885320650851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d489bcaedf2a802ff73c71f95c8c06c3fffb51bd_cbdec6e8-a943-4dbd-8152-bf99523e273b.webp?v=1714838530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d489bcaedf2a802ff73c71f95c8c06c3fffb51bd_cbdec6e8-a943-4dbd-8152-bf99523e273b.webp?v=1714838530","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897071837283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069390435,"product_id":7411293847651,"position":9,"created_at":"2024-05-05T00:02:07+08:00","updated_at":"2024-05-05T00:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527","variant_ids":[41897071837283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 死星-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB43","featured_media":{"alt":null,"id":23885320093795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897071837283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069390435,"product_id":7411293847651,"position":9,"created_at":"2024-05-05T00:02:07+08:00","updated_at":"2024-05-05T00:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527","variant_ids":[41897071837283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 死星-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB43","featured_media":{"alt":null,"id":23885320093795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d8844140a1ca51cf1d71858ad485c511c558e6_0ccd8b0e-cdef-479e-8eae-ad1929b7309e.webp?v=1714838527"}},"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: "停產" }