$product = {"id":7411342213219,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb103","description":null,"published_at":"2024-06-11T17:42:21+08:00","created_at":"2024-05-05T00:11:02+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":41897674834019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31480185487459,"product_id":7411342213219,"position":7,"created_at":"2024-05-05T00:11:19+08:00","updated_at":"2024-05-05T00:11:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079","variant_ids":[41897674834019]},"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-PB103","featured_media":{"alt":null,"id":23885436518499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3bd4373d899c555338752a087bdd82702707223_169fdbdf-6a66-46db-830c-cac84ca2ce34.webp?v=1714839065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3eb2606ac9362dcfbf119e7ab1c418eb7585b8_c17ea115-320f-4ca9-a482-6678288a92ab.webp?v=1714839067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41731d3edd9c3a54bde209d169c974cfacbfdd6_429059d9-34a9-4ecc-9d6b-cdae98bc23cd.webp?v=1714839069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdcddf3246a8bf57a7197777a1516b55dc2ea859_a4ca02f0-6e65-4428-94f6-2fc598236322.webp?v=1714839071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c61cd17c1881a20b5252278df4e164c7c6af922a_24b1473a-948c-498c-88f2-b685717ace29.webp?v=1714839074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9dc203142eb3415b62a539d9368e7cd61646_ae4dc337-84bf-408b-a386-5abee45c797f.webp?v=1714839076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230405839f822c7e836539190152be0274df95c1_dff3415f-2c98-45e4-9b85-3bdcce127c29.webp?v=1714839081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644b085f58e8296808075f23dc4905ec13c9dd8e_4b4615fa-c1c6-4191-a17e-aeeb79a913e8.webp?v=1714839083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862aa9d981cbad7631622b6bf5d758a33ffcee9_8ec5f756-0298-4f5e-9ff0-690dd75d4a22.webp?v=1714839086"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3bd4373d899c555338752a087bdd82702707223_169fdbdf-6a66-46db-830c-cac84ca2ce34.webp?v=1714839065","options":["color"],"media":[{"alt":null,"id":23885433995363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3bd4373d899c555338752a087bdd82702707223_169fdbdf-6a66-46db-830c-cac84ca2ce34.webp?v=1714839065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3bd4373d899c555338752a087bdd82702707223_169fdbdf-6a66-46db-830c-cac84ca2ce34.webp?v=1714839065","width":2000},{"alt":null,"id":23885434421347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3eb2606ac9362dcfbf119e7ab1c418eb7585b8_c17ea115-320f-4ca9-a482-6678288a92ab.webp?v=1714839067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3eb2606ac9362dcfbf119e7ab1c418eb7585b8_c17ea115-320f-4ca9-a482-6678288a92ab.webp?v=1714839067","width":2000},{"alt":null,"id":23885434880099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41731d3edd9c3a54bde209d169c974cfacbfdd6_429059d9-34a9-4ecc-9d6b-cdae98bc23cd.webp?v=1714839069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41731d3edd9c3a54bde209d169c974cfacbfdd6_429059d9-34a9-4ecc-9d6b-cdae98bc23cd.webp?v=1714839069","width":2000},{"alt":null,"id":23885435240547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdcddf3246a8bf57a7197777a1516b55dc2ea859_a4ca02f0-6e65-4428-94f6-2fc598236322.webp?v=1714839071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdcddf3246a8bf57a7197777a1516b55dc2ea859_a4ca02f0-6e65-4428-94f6-2fc598236322.webp?v=1714839071","width":2000},{"alt":null,"id":23885435502691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c61cd17c1881a20b5252278df4e164c7c6af922a_24b1473a-948c-498c-88f2-b685717ace29.webp?v=1714839074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c61cd17c1881a20b5252278df4e164c7c6af922a_24b1473a-948c-498c-88f2-b685717ace29.webp?v=1714839074","width":2000},{"alt":null,"id":23885435797603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9dc203142eb3415b62a539d9368e7cd61646_ae4dc337-84bf-408b-a386-5abee45c797f.webp?v=1714839076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9dc203142eb3415b62a539d9368e7cd61646_ae4dc337-84bf-408b-a386-5abee45c797f.webp?v=1714839076","width":2000},{"alt":null,"id":23885436518499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079","width":2000},{"alt":null,"id":23885436944483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230405839f822c7e836539190152be0274df95c1_dff3415f-2c98-45e4-9b85-3bdcce127c29.webp?v=1714839081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230405839f822c7e836539190152be0274df95c1_dff3415f-2c98-45e4-9b85-3bdcce127c29.webp?v=1714839081","width":2000},{"alt":null,"id":23885437534307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644b085f58e8296808075f23dc4905ec13c9dd8e_4b4615fa-c1c6-4191-a17e-aeeb79a913e8.webp?v=1714839083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644b085f58e8296808075f23dc4905ec13c9dd8e_4b4615fa-c1c6-4191-a17e-aeeb79a913e8.webp?v=1714839083","width":2000},{"alt":null,"id":23885438025827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862aa9d981cbad7631622b6bf5d758a33ffcee9_8ec5f756-0298-4f5e-9ff0-690dd75d4a22.webp?v=1714839086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862aa9d981cbad7631622b6bf5d758a33ffcee9_8ec5f756-0298-4f5e-9ff0-690dd75d4a22.webp?v=1714839086","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897674834019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31480185487459,"product_id":7411342213219,"position":7,"created_at":"2024-05-05T00:11:19+08:00","updated_at":"2024-05-05T00:11:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079","variant_ids":[41897674834019]},"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-PB103","featured_media":{"alt":null,"id":23885436518499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897674834019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31480185487459,"product_id":7411342213219,"position":7,"created_at":"2024-05-05T00:11:19+08:00","updated_at":"2024-05-05T00:11:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079","variant_ids":[41897674834019]},"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-PB103","featured_media":{"alt":null,"id":23885436518499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617c2afd37739a22a823deb00da1d76735d82311_8b84a8ab-3443-452e-91c6-19117789594e.webp?v=1714839079"}},"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: "停產" }