$product = {"id":7411328811107,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb50","description":null,"published_at":"2024-06-11T17:41:58+08:00","created_at":"2024-05-05T00:08:36+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":41897510666339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31480153178211,"product_id":7411328811107,"position":3,"created_at":"2024-05-05T00:08:43+08:00","updated_at":"2024-05-05T00:08:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923","variant_ids":[41897510666339]},"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-PB50","featured_media":{"alt":null,"id":23885404110947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18a26628c30a03217e0ff95860b4d7c04225b07_4322daee-edbb-44ad-abe5-bee2533c683d.webp?v=1714838918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a2ecae33181d3a7192bb1dafe81d488d4c7559_b47b3772-a8a1-4eba-99d6-925b3c2b767b.webp?v=1714838921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f0346388ebd3b8c45188f2120bd50db4329abb_88eab49c-709c-4263-bae4-1bec822a0d9e.webp?v=1714838926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e420f2d16a634a1791221e5848de76fc66594a71_2e468e77-8609-4f90-9aa3-54d95b205d60.webp?v=1714838928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2437170d55a293586555628bd2dad836b7223f_7b2e1ffc-3de5-4260-9352-04c00cce5d82.webp?v=1714838931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e360147aa5f8328394252c32e795a48efa88b1c_586bb5eb-c958-447b-b13c-6ec870432abe.webp?v=1714838933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e07e8311de724e8f001fcced621bfb7be87f4b44_011a70a1-6007-417c-84f7-b24da5df122e.webp?v=1714838936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27b3e3cec3d2948111a5440f965197578baf73_1bb192d6-609c-4ad5-9b33-6bec6dc78ae7.webp?v=1714838938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ed72fca564865e11ebc6c76f43ec81ffe6e0e9_443c0159-dc09-4d14-b127-22eb42f1a703.webp?v=1714838941"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18a26628c30a03217e0ff95860b4d7c04225b07_4322daee-edbb-44ad-abe5-bee2533c683d.webp?v=1714838918","options":["color"],"media":[{"alt":null,"id":23885403193443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18a26628c30a03217e0ff95860b4d7c04225b07_4322daee-edbb-44ad-abe5-bee2533c683d.webp?v=1714838918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18a26628c30a03217e0ff95860b4d7c04225b07_4322daee-edbb-44ad-abe5-bee2533c683d.webp?v=1714838918","width":2000},{"alt":null,"id":23885403619427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a2ecae33181d3a7192bb1dafe81d488d4c7559_b47b3772-a8a1-4eba-99d6-925b3c2b767b.webp?v=1714838921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a2ecae33181d3a7192bb1dafe81d488d4c7559_b47b3772-a8a1-4eba-99d6-925b3c2b767b.webp?v=1714838921","width":2000},{"alt":null,"id":23885404110947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923","width":2000},{"alt":null,"id":23885404635235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f0346388ebd3b8c45188f2120bd50db4329abb_88eab49c-709c-4263-bae4-1bec822a0d9e.webp?v=1714838926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f0346388ebd3b8c45188f2120bd50db4329abb_88eab49c-709c-4263-bae4-1bec822a0d9e.webp?v=1714838926","width":2000},{"alt":null,"id":23885405192291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e420f2d16a634a1791221e5848de76fc66594a71_2e468e77-8609-4f90-9aa3-54d95b205d60.webp?v=1714838928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e420f2d16a634a1791221e5848de76fc66594a71_2e468e77-8609-4f90-9aa3-54d95b205d60.webp?v=1714838928","width":2000},{"alt":null,"id":23885405552739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2437170d55a293586555628bd2dad836b7223f_7b2e1ffc-3de5-4260-9352-04c00cce5d82.webp?v=1714838931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2437170d55a293586555628bd2dad836b7223f_7b2e1ffc-3de5-4260-9352-04c00cce5d82.webp?v=1714838931","width":2000},{"alt":null,"id":23885406011491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e360147aa5f8328394252c32e795a48efa88b1c_586bb5eb-c958-447b-b13c-6ec870432abe.webp?v=1714838933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e360147aa5f8328394252c32e795a48efa88b1c_586bb5eb-c958-447b-b13c-6ec870432abe.webp?v=1714838933","width":2000},{"alt":null,"id":23885406535779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e07e8311de724e8f001fcced621bfb7be87f4b44_011a70a1-6007-417c-84f7-b24da5df122e.webp?v=1714838936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e07e8311de724e8f001fcced621bfb7be87f4b44_011a70a1-6007-417c-84f7-b24da5df122e.webp?v=1714838936","width":2000},{"alt":null,"id":23885407027299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27b3e3cec3d2948111a5440f965197578baf73_1bb192d6-609c-4ad5-9b33-6bec6dc78ae7.webp?v=1714838938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27b3e3cec3d2948111a5440f965197578baf73_1bb192d6-609c-4ad5-9b33-6bec6dc78ae7.webp?v=1714838938","width":2000},{"alt":null,"id":23885407584355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ed72fca564865e11ebc6c76f43ec81ffe6e0e9_443c0159-dc09-4d14-b127-22eb42f1a703.webp?v=1714838941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ed72fca564865e11ebc6c76f43ec81ffe6e0e9_443c0159-dc09-4d14-b127-22eb42f1a703.webp?v=1714838941","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897510666339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31480153178211,"product_id":7411328811107,"position":3,"created_at":"2024-05-05T00:08:43+08:00","updated_at":"2024-05-05T00:08:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923","variant_ids":[41897510666339]},"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-PB50","featured_media":{"alt":null,"id":23885404110947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897510666339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31480153178211,"product_id":7411328811107,"position":3,"created_at":"2024-05-05T00:08:43+08:00","updated_at":"2024-05-05T00:08:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923","variant_ids":[41897510666339]},"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-PB50","featured_media":{"alt":null,"id":23885404110947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6297a45f3720de74ba94cb47d1eb857df7c4112_634a44bc-060d-4bc3-acbd-a2a0b9bc4c12.webp?v=1714838923"}},"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: "停產" }