$product = {"id":7411230441571,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb79","description":null,"published_at":"2024-06-11T17:39:23+08:00","created_at":"2024-05-04T23:49:46+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":41896277868643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31479912235107,"product_id":7411230441571,"position":10,"created_at":"2024-05-04T23:50:12+08:00","updated_at":"2024-05-04T23:50:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812","variant_ids":[41896277868643]},"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-PB79","featured_media":{"alt":null,"id":23885162610787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cdbf6ebb479c9cbc632416f123a8d93fd4dc68_b621b4be-e220-453a-9c20-79d464b3e559.webp?v=1714837789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5337c10dbdef21bc46fef2ab91cd14a3e0c0e15d_68ce79ea-eeb1-430f-bdb6-faea90e80713.webp?v=1714837791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bd3205a077a342d5e2b1e04bbc23dd2e87f035_28cddd9b-4acd-4ded-8884-5d9535e84a0f.webp?v=1714837793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6aca789d9dac6d28bda47e02c402a2c72898982_e3d35346-5e0b-4bd5-b6e4-43e978bb640e.webp?v=1714837795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23875686c3024ddedaa0d88248ebed342cdf2080_abb448e7-35aa-4463-b41b-efd80c5fc04d.webp?v=1714837798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2353735e9d377c0b44eb83f9bbcf95ea974e590_af6487fe-0713-461f-b02f-ec694417e915.webp?v=1714837800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d820ecc9d72e30d3fd55bbc6466e3967ccadc9ab_a6bfb349-46f7-4a78-8f4a-408d8339ae5d.webp?v=1714837804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05262b140c45e884c6e780deb1d632aa8a06bad8_bcba8169-04ae-4c70-8ff1-a013f00b519b.webp?v=1714837807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd431422833dbb8201c6d71974a7f2fafbddbfae_8479f8be-c95c-4d54-8f16-e109a7b6299b.webp?v=1714837810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cdbf6ebb479c9cbc632416f123a8d93fd4dc68_b621b4be-e220-453a-9c20-79d464b3e559.webp?v=1714837789","options":["color"],"media":[{"alt":null,"id":23885157236835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cdbf6ebb479c9cbc632416f123a8d93fd4dc68_b621b4be-e220-453a-9c20-79d464b3e559.webp?v=1714837789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cdbf6ebb479c9cbc632416f123a8d93fd4dc68_b621b4be-e220-453a-9c20-79d464b3e559.webp?v=1714837789","width":2000},{"alt":null,"id":23885157826659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5337c10dbdef21bc46fef2ab91cd14a3e0c0e15d_68ce79ea-eeb1-430f-bdb6-faea90e80713.webp?v=1714837791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5337c10dbdef21bc46fef2ab91cd14a3e0c0e15d_68ce79ea-eeb1-430f-bdb6-faea90e80713.webp?v=1714837791","width":2000},{"alt":null,"id":23885158285411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bd3205a077a342d5e2b1e04bbc23dd2e87f035_28cddd9b-4acd-4ded-8884-5d9535e84a0f.webp?v=1714837793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bd3205a077a342d5e2b1e04bbc23dd2e87f035_28cddd9b-4acd-4ded-8884-5d9535e84a0f.webp?v=1714837793","width":2000},{"alt":null,"id":23885159039075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6aca789d9dac6d28bda47e02c402a2c72898982_e3d35346-5e0b-4bd5-b6e4-43e978bb640e.webp?v=1714837795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6aca789d9dac6d28bda47e02c402a2c72898982_e3d35346-5e0b-4bd5-b6e4-43e978bb640e.webp?v=1714837795","width":2000},{"alt":null,"id":23885159628899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23875686c3024ddedaa0d88248ebed342cdf2080_abb448e7-35aa-4463-b41b-efd80c5fc04d.webp?v=1714837798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23875686c3024ddedaa0d88248ebed342cdf2080_abb448e7-35aa-4463-b41b-efd80c5fc04d.webp?v=1714837798","width":2000},{"alt":null,"id":23885160087651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2353735e9d377c0b44eb83f9bbcf95ea974e590_af6487fe-0713-461f-b02f-ec694417e915.webp?v=1714837800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2353735e9d377c0b44eb83f9bbcf95ea974e590_af6487fe-0713-461f-b02f-ec694417e915.webp?v=1714837800","width":2000},{"alt":null,"id":23885161037923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d820ecc9d72e30d3fd55bbc6466e3967ccadc9ab_a6bfb349-46f7-4a78-8f4a-408d8339ae5d.webp?v=1714837804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d820ecc9d72e30d3fd55bbc6466e3967ccadc9ab_a6bfb349-46f7-4a78-8f4a-408d8339ae5d.webp?v=1714837804","width":2000},{"alt":null,"id":23885161627747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05262b140c45e884c6e780deb1d632aa8a06bad8_bcba8169-04ae-4c70-8ff1-a013f00b519b.webp?v=1714837807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05262b140c45e884c6e780deb1d632aa8a06bad8_bcba8169-04ae-4c70-8ff1-a013f00b519b.webp?v=1714837807","width":2000},{"alt":null,"id":23885162086499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd431422833dbb8201c6d71974a7f2fafbddbfae_8479f8be-c95c-4d54-8f16-e109a7b6299b.webp?v=1714837810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd431422833dbb8201c6d71974a7f2fafbddbfae_8479f8be-c95c-4d54-8f16-e109a7b6299b.webp?v=1714837810","width":2000},{"alt":null,"id":23885162610787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896277868643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31479912235107,"product_id":7411230441571,"position":10,"created_at":"2024-05-04T23:50:12+08:00","updated_at":"2024-05-04T23:50:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812","variant_ids":[41896277868643]},"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-PB79","featured_media":{"alt":null,"id":23885162610787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896277868643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31479912235107,"product_id":7411230441571,"position":10,"created_at":"2024-05-04T23:50:12+08:00","updated_at":"2024-05-04T23:50:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812","variant_ids":[41896277868643]},"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-PB79","featured_media":{"alt":null,"id":23885162610787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab982a45678428bb3f31c8e549d0a88ad04d3a9_a85a4834-e097-4997-a7a8-093889eb8511.webp?v=1714837812"}},"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: "停產" }