$product = {"id":7411237060707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb38","description":null,"published_at":"2024-06-11T17:39:33+08:00","created_at":"2024-05-04T23:51: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":41896358445155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31479927046243,"product_id":7411237060707,"position":7,"created_at":"2024-05-04T23:51:23+08:00","updated_at":"2024-05-04T23:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883","variant_ids":[41896358445155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23885177487459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea033a4f7d6c6f48637d34c4781c0120b7e890a_5037fe6d-0d54-4ae7-8e9c-9a00ae699735.webp?v=1714837869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b98e327b583007d53fe93dae1da5c08fa5e6b9_220e4e8e-ab2c-4363-a05c-8d5b22d71f1b.webp?v=1714837872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0decbbe24ec657d231415b7cca9d16a0b5f125_7851c5c9-8423-49d5-a955-78c2702f01ce.webp?v=1714837874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bacb5b7bf24c6cd86cc77167f6faa1d593e22dc3_e114a865-c734-4d48-bc17-d105a644de6d.webp?v=1714837876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f07cad931bae1411e24b098f5566776815e74a7_31250e70-90e9-4984-853b-23609783cfe9.webp?v=1714837878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32a61e01d8d5dc1f7107adf133bc667b1c1e8d6_689129e4-51fb-4ff1-b898-56e2d4a4ede7.webp?v=1714837881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92df3741969fcf971a0c12f7c8dd0d1ba26346c9_82a2d89a-50da-45bc-9f4d-d7892e373a30.webp?v=1714837885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc253d8ecffd9908c6448f663ce2972bce61aab0_e91e1dd4-ffa7-476a-93db-cc1fdce3f08c.webp?v=1714837888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d8e24ab012e40fde78ff256cc3c3ad7e90ae1c_a2f9b857-33db-4b6a-b1ab-0ebf8a57d301.webp?v=1714837890"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea033a4f7d6c6f48637d34c4781c0120b7e890a_5037fe6d-0d54-4ae7-8e9c-9a00ae699735.webp?v=1714837869","options":["color"],"media":[{"alt":null,"id":23885174374499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea033a4f7d6c6f48637d34c4781c0120b7e890a_5037fe6d-0d54-4ae7-8e9c-9a00ae699735.webp?v=1714837869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea033a4f7d6c6f48637d34c4781c0120b7e890a_5037fe6d-0d54-4ae7-8e9c-9a00ae699735.webp?v=1714837869","width":2000},{"alt":null,"id":23885174734947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b98e327b583007d53fe93dae1da5c08fa5e6b9_220e4e8e-ab2c-4363-a05c-8d5b22d71f1b.webp?v=1714837872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b98e327b583007d53fe93dae1da5c08fa5e6b9_220e4e8e-ab2c-4363-a05c-8d5b22d71f1b.webp?v=1714837872","width":2000},{"alt":null,"id":23885175390307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0decbbe24ec657d231415b7cca9d16a0b5f125_7851c5c9-8423-49d5-a955-78c2702f01ce.webp?v=1714837874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0decbbe24ec657d231415b7cca9d16a0b5f125_7851c5c9-8423-49d5-a955-78c2702f01ce.webp?v=1714837874","width":2000},{"alt":null,"id":23885175816291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bacb5b7bf24c6cd86cc77167f6faa1d593e22dc3_e114a865-c734-4d48-bc17-d105a644de6d.webp?v=1714837876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bacb5b7bf24c6cd86cc77167f6faa1d593e22dc3_e114a865-c734-4d48-bc17-d105a644de6d.webp?v=1714837876","width":2000},{"alt":null,"id":23885176307811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f07cad931bae1411e24b098f5566776815e74a7_31250e70-90e9-4984-853b-23609783cfe9.webp?v=1714837878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f07cad931bae1411e24b098f5566776815e74a7_31250e70-90e9-4984-853b-23609783cfe9.webp?v=1714837878","width":2000},{"alt":null,"id":23885176766563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32a61e01d8d5dc1f7107adf133bc667b1c1e8d6_689129e4-51fb-4ff1-b898-56e2d4a4ede7.webp?v=1714837881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32a61e01d8d5dc1f7107adf133bc667b1c1e8d6_689129e4-51fb-4ff1-b898-56e2d4a4ede7.webp?v=1714837881","width":2000},{"alt":null,"id":23885177487459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883","width":2000},{"alt":null,"id":23885177913443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92df3741969fcf971a0c12f7c8dd0d1ba26346c9_82a2d89a-50da-45bc-9f4d-d7892e373a30.webp?v=1714837885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92df3741969fcf971a0c12f7c8dd0d1ba26346c9_82a2d89a-50da-45bc-9f4d-d7892e373a30.webp?v=1714837885","width":2000},{"alt":null,"id":23885178536035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc253d8ecffd9908c6448f663ce2972bce61aab0_e91e1dd4-ffa7-476a-93db-cc1fdce3f08c.webp?v=1714837888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc253d8ecffd9908c6448f663ce2972bce61aab0_e91e1dd4-ffa7-476a-93db-cc1fdce3f08c.webp?v=1714837888","width":2000},{"alt":null,"id":23885179027555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d8e24ab012e40fde78ff256cc3c3ad7e90ae1c_a2f9b857-33db-4b6a-b1ab-0ebf8a57d301.webp?v=1714837890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d8e24ab012e40fde78ff256cc3c3ad7e90ae1c_a2f9b857-33db-4b6a-b1ab-0ebf8a57d301.webp?v=1714837890","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896358445155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31479927046243,"product_id":7411237060707,"position":7,"created_at":"2024-05-04T23:51:23+08:00","updated_at":"2024-05-04T23:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883","variant_ids":[41896358445155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23885177487459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896358445155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31479927046243,"product_id":7411237060707,"position":7,"created_at":"2024-05-04T23:51:23+08:00","updated_at":"2024-05-04T23:51:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883","variant_ids":[41896358445155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23885177487459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8b2cc96e198bd67ce54c7c70bdc25c4b424db1_77e8cd52-ee08-4b4b-992e-ff4d2f1d2097.webp?v=1714837883"}},"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: "停產" }