$product = {"id":7411308724323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc06","description":null,"published_at":"2024-06-11T17:41:27+08:00","created_at":"2024-05-05T00:04:47+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":41897255927907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106221667,"product_id":7411308724323,"position":4,"created_at":"2024-05-05T00:04:56+08:00","updated_at":"2024-05-05T00:04:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696","variant_ids":[41897255927907]},"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-PC06","featured_media":{"alt":null,"id":23885357023331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d705893e7a4dd21a90f80d324c3335294fa9517_6f48004a-60f4-4db1-b58b-b14d4ba3058b.webp?v=1714838689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c0be21c97125ebed217696e8a4f24c143a7203_ee06f114-d498-4a39-bd3d-f191d769283a.webp?v=1714838692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815bf3cb646437eb6917313503f71dad1e5c68b0_bfd481a4-15ab-4a95-8973-847aa9ec4628.webp?v=1714838694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181449ac9215ec2896569cf0f928b40a3c5d188b_14d7495e-9c88-41ea-b972-07e6c5c3ac19.webp?v=1714838699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0343f25c0ff238ef036b95b6bee2fa0d8450aaf_7e8338d3-34dd-4dbb-9131-bff161ae7fb9.webp?v=1714838702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b9a3b3af168ddbdd89a9f8811ec35d4cd77999_4ec6c540-0267-4bd0-9d85-46be4cca9219.webp?v=1714838704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7f68eb4497405455ba10cf93aa8d0b48fbe9f3_4e3ed416-bfd1-4a3f-b3dc-eb8b27c508d2.webp?v=1714838706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083bfb372d735a77af65e8b5fd1a24764f1127f2_983112a8-0122-41a2-98ed-10826e68991a.webp?v=1714838709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba5e880788d40ab12de689ef556f5f78bb64adf_fece2f43-643c-490c-a625-ab6f0dfb9ce7.webp?v=1714838711"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d705893e7a4dd21a90f80d324c3335294fa9517_6f48004a-60f4-4db1-b58b-b14d4ba3058b.webp?v=1714838689","options":["color"],"media":[{"alt":null,"id":23885355647075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d705893e7a4dd21a90f80d324c3335294fa9517_6f48004a-60f4-4db1-b58b-b14d4ba3058b.webp?v=1714838689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d705893e7a4dd21a90f80d324c3335294fa9517_6f48004a-60f4-4db1-b58b-b14d4ba3058b.webp?v=1714838689","width":2000},{"alt":null,"id":23885356204131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c0be21c97125ebed217696e8a4f24c143a7203_ee06f114-d498-4a39-bd3d-f191d769283a.webp?v=1714838692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c0be21c97125ebed217696e8a4f24c143a7203_ee06f114-d498-4a39-bd3d-f191d769283a.webp?v=1714838692","width":2000},{"alt":null,"id":23885356597347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815bf3cb646437eb6917313503f71dad1e5c68b0_bfd481a4-15ab-4a95-8973-847aa9ec4628.webp?v=1714838694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815bf3cb646437eb6917313503f71dad1e5c68b0_bfd481a4-15ab-4a95-8973-847aa9ec4628.webp?v=1714838694","width":2000},{"alt":null,"id":23885357023331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696","width":2000},{"alt":null,"id":23885357645923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181449ac9215ec2896569cf0f928b40a3c5d188b_14d7495e-9c88-41ea-b972-07e6c5c3ac19.webp?v=1714838699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181449ac9215ec2896569cf0f928b40a3c5d188b_14d7495e-9c88-41ea-b972-07e6c5c3ac19.webp?v=1714838699","width":2000},{"alt":null,"id":23885358071907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0343f25c0ff238ef036b95b6bee2fa0d8450aaf_7e8338d3-34dd-4dbb-9131-bff161ae7fb9.webp?v=1714838702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0343f25c0ff238ef036b95b6bee2fa0d8450aaf_7e8338d3-34dd-4dbb-9131-bff161ae7fb9.webp?v=1714838702","width":2000},{"alt":null,"id":23885358628963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b9a3b3af168ddbdd89a9f8811ec35d4cd77999_4ec6c540-0267-4bd0-9d85-46be4cca9219.webp?v=1714838704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b9a3b3af168ddbdd89a9f8811ec35d4cd77999_4ec6c540-0267-4bd0-9d85-46be4cca9219.webp?v=1714838704","width":2000},{"alt":null,"id":23885359120483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7f68eb4497405455ba10cf93aa8d0b48fbe9f3_4e3ed416-bfd1-4a3f-b3dc-eb8b27c508d2.webp?v=1714838706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7f68eb4497405455ba10cf93aa8d0b48fbe9f3_4e3ed416-bfd1-4a3f-b3dc-eb8b27c508d2.webp?v=1714838706","width":2000},{"alt":null,"id":23885359775843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083bfb372d735a77af65e8b5fd1a24764f1127f2_983112a8-0122-41a2-98ed-10826e68991a.webp?v=1714838709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083bfb372d735a77af65e8b5fd1a24764f1127f2_983112a8-0122-41a2-98ed-10826e68991a.webp?v=1714838709","width":2000},{"alt":null,"id":23885360103523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba5e880788d40ab12de689ef556f5f78bb64adf_fece2f43-643c-490c-a625-ab6f0dfb9ce7.webp?v=1714838711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba5e880788d40ab12de689ef556f5f78bb64adf_fece2f43-643c-490c-a625-ab6f0dfb9ce7.webp?v=1714838711","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897255927907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106221667,"product_id":7411308724323,"position":4,"created_at":"2024-05-05T00:04:56+08:00","updated_at":"2024-05-05T00:04:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696","variant_ids":[41897255927907]},"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-PC06","featured_media":{"alt":null,"id":23885357023331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897255927907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106221667,"product_id":7411308724323,"position":4,"created_at":"2024-05-05T00:04:56+08:00","updated_at":"2024-05-05T00:04:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696","variant_ids":[41897255927907]},"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-PC06","featured_media":{"alt":null,"id":23885357023331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8cd462fcaf41c5362facd15d23b1331f0b8069_6ac1aa79-7990-4db8-aa67-de1b945ad469.webp?v=1714838696"}},"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: "停產" }