$product = {"id":7411227263075,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb34","description":null,"published_at":"2024-06-11T17:39:18+08:00","created_at":"2024-05-04T23:49:07+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":41896236384355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479896834147,"product_id":7411227263075,"position":2,"created_at":"2024-05-04T23:49:11+08:00","updated_at":"2024-05-04T23:49:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751","variant_ids":[41896236384355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23885147832419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fce3cafa595fa7ac8b5f28a6fed142a9e6321a_0beed779-2e1a-475a-9164-5d66e4c6a545.webp?v=1714837749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dd81a7dea6d5095d7b67dafea497738cf10537_e59e4816-d881-48b4-9cea-626ef19d0a0d.webp?v=1714837753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488507f5b5ca878976b6e943d788d53619888d04_09aa1807-a4e1-4e26-b36d-a9529dbfb467.webp?v=1714837756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8be2652be39c0dd8e9afc3e8826e8c4fcba9019_90e4eabe-567a-4652-8343-19551174eab3.webp?v=1714837758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a5cf175d9dcacec0137aad6e4f39e0cb3a80fc8_9e9f9bb6-cd51-4140-b6b6-b3309ada835f.webp?v=1714837760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa3bdc3927c549679630d34ba1508641ccfaed_eae92f5f-f282-4dc6-9a97-ae1a45f322d7.webp?v=1714837762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d862c4f5bd6c3f05e4a98835141c2ff4e9ef4_88bb677a-28ed-4da7-8181-45423fb1d0dd.webp?v=1714837764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc39f4691445155728eed9969563a37e8601727_2cde0d33-1567-45fc-a165-afc48108ca49.webp?v=1714837767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422771b70f77f55eac89c2b147b9e49f5385ed4a_1b80f49d-c77a-422c-b21a-78d0a21b7cfe.webp?v=1714837769"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fce3cafa595fa7ac8b5f28a6fed142a9e6321a_0beed779-2e1a-475a-9164-5d66e4c6a545.webp?v=1714837749","options":["color"],"media":[{"alt":null,"id":23885147308131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fce3cafa595fa7ac8b5f28a6fed142a9e6321a_0beed779-2e1a-475a-9164-5d66e4c6a545.webp?v=1714837749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fce3cafa595fa7ac8b5f28a6fed142a9e6321a_0beed779-2e1a-475a-9164-5d66e4c6a545.webp?v=1714837749","width":2000},{"alt":null,"id":23885147832419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751","width":2000},{"alt":null,"id":23885148389475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dd81a7dea6d5095d7b67dafea497738cf10537_e59e4816-d881-48b4-9cea-626ef19d0a0d.webp?v=1714837753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dd81a7dea6d5095d7b67dafea497738cf10537_e59e4816-d881-48b4-9cea-626ef19d0a0d.webp?v=1714837753","width":2000},{"alt":null,"id":23885148979299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488507f5b5ca878976b6e943d788d53619888d04_09aa1807-a4e1-4e26-b36d-a9529dbfb467.webp?v=1714837756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488507f5b5ca878976b6e943d788d53619888d04_09aa1807-a4e1-4e26-b36d-a9529dbfb467.webp?v=1714837756","width":2000},{"alt":null,"id":23885149438051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8be2652be39c0dd8e9afc3e8826e8c4fcba9019_90e4eabe-567a-4652-8343-19551174eab3.webp?v=1714837758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8be2652be39c0dd8e9afc3e8826e8c4fcba9019_90e4eabe-567a-4652-8343-19551174eab3.webp?v=1714837758","width":2000},{"alt":null,"id":23885149995107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a5cf175d9dcacec0137aad6e4f39e0cb3a80fc8_9e9f9bb6-cd51-4140-b6b6-b3309ada835f.webp?v=1714837760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a5cf175d9dcacec0137aad6e4f39e0cb3a80fc8_9e9f9bb6-cd51-4140-b6b6-b3309ada835f.webp?v=1714837760","width":2000},{"alt":null,"id":23885150486627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa3bdc3927c549679630d34ba1508641ccfaed_eae92f5f-f282-4dc6-9a97-ae1a45f322d7.webp?v=1714837762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa3bdc3927c549679630d34ba1508641ccfaed_eae92f5f-f282-4dc6-9a97-ae1a45f322d7.webp?v=1714837762","width":2000},{"alt":null,"id":23885151141987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d862c4f5bd6c3f05e4a98835141c2ff4e9ef4_88bb677a-28ed-4da7-8181-45423fb1d0dd.webp?v=1714837764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d862c4f5bd6c3f05e4a98835141c2ff4e9ef4_88bb677a-28ed-4da7-8181-45423fb1d0dd.webp?v=1714837764","width":2000},{"alt":null,"id":23885151633507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc39f4691445155728eed9969563a37e8601727_2cde0d33-1567-45fc-a165-afc48108ca49.webp?v=1714837767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc39f4691445155728eed9969563a37e8601727_2cde0d33-1567-45fc-a165-afc48108ca49.webp?v=1714837767","width":2000},{"alt":null,"id":23885152288867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422771b70f77f55eac89c2b147b9e49f5385ed4a_1b80f49d-c77a-422c-b21a-78d0a21b7cfe.webp?v=1714837769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422771b70f77f55eac89c2b147b9e49f5385ed4a_1b80f49d-c77a-422c-b21a-78d0a21b7cfe.webp?v=1714837769","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896236384355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479896834147,"product_id":7411227263075,"position":2,"created_at":"2024-05-04T23:49:11+08:00","updated_at":"2024-05-04T23:49:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751","variant_ids":[41896236384355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23885147832419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896236384355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479896834147,"product_id":7411227263075,"position":2,"created_at":"2024-05-04T23:49:11+08:00","updated_at":"2024-05-04T23:49:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751","variant_ids":[41896236384355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23885147832419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d8a296bd60c0349a5250133c3026637c0c5802_f3b1bed3-85d8-439f-b1f0-feea6646239c.webp?v=1714837751"}},"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: "停產" }