$product = {"id":7411303678051,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb61","description":null,"published_at":"2024-06-11T17:41:18+08:00","created_at":"2024-05-05T00:03: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":41897193832547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093376611,"product_id":7411303678051,"position":4,"created_at":"2024-05-05T00:03:57+08:00","updated_at":"2024-05-05T00:03:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637","variant_ids":[41897193832547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23885344178275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae0c17686f2ff09ac14b03d8c5c83f04fa361e9_86ce69a1-7bbd-4c15-b5d1-95685fbeb1b0.webp?v=1714838629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c773f067db89f1dbc9ed654cd10061f0eea342_420da36c-45eb-43ce-82b1-07b8c17362cb.webp?v=1714838632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9e64cf311e1c82fca426fde9627b2bae7f3a4b_c6c0ad9d-96df-4429-a559-95d755eb1676.webp?v=1714838634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6bc81fa16d8fad865e1f9662c8f22e8f8762cd_5f22f48f-d938-4842-96cb-a86b5f9e559b.webp?v=1714838639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a88ff22f6486e98284f6c773e077d589608e0c5_d0dff93f-0e68-4f00-afd5-d34b7f77a422.webp?v=1714838642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d7ca72c9b32f54c29bc17f7e88aad8025a21e6_239b0ec8-dd00-4b72-9f2d-0baf2c52ee76.webp?v=1714838644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9646355111e5021120545a291ea66df8db844f0_def1d1f7-18c9-4122-a3da-011d7e4e5331.webp?v=1714838647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6cb6761d16b067dd503d9edbd4fbeb78d8fd52_c87de802-754f-45b8-beab-8f5f9793d381.webp?v=1714838649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f383e70314f5059a21cecb8b5a9a8cee8bc9246d_d2491a01-9920-4fb0-a3ae-8efbbfaf8fc0.webp?v=1714838651"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae0c17686f2ff09ac14b03d8c5c83f04fa361e9_86ce69a1-7bbd-4c15-b5d1-95685fbeb1b0.webp?v=1714838629","options":["color"],"media":[{"alt":null,"id":23885342408803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae0c17686f2ff09ac14b03d8c5c83f04fa361e9_86ce69a1-7bbd-4c15-b5d1-95685fbeb1b0.webp?v=1714838629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae0c17686f2ff09ac14b03d8c5c83f04fa361e9_86ce69a1-7bbd-4c15-b5d1-95685fbeb1b0.webp?v=1714838629","width":2000},{"alt":null,"id":23885343031395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c773f067db89f1dbc9ed654cd10061f0eea342_420da36c-45eb-43ce-82b1-07b8c17362cb.webp?v=1714838632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c773f067db89f1dbc9ed654cd10061f0eea342_420da36c-45eb-43ce-82b1-07b8c17362cb.webp?v=1714838632","width":2000},{"alt":null,"id":23885343555683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9e64cf311e1c82fca426fde9627b2bae7f3a4b_c6c0ad9d-96df-4429-a559-95d755eb1676.webp?v=1714838634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9e64cf311e1c82fca426fde9627b2bae7f3a4b_c6c0ad9d-96df-4429-a559-95d755eb1676.webp?v=1714838634","width":2000},{"alt":null,"id":23885344178275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637","width":2000},{"alt":null,"id":23885344735331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6bc81fa16d8fad865e1f9662c8f22e8f8762cd_5f22f48f-d938-4842-96cb-a86b5f9e559b.webp?v=1714838639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6bc81fa16d8fad865e1f9662c8f22e8f8762cd_5f22f48f-d938-4842-96cb-a86b5f9e559b.webp?v=1714838639","width":2000},{"alt":null,"id":23885345128547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a88ff22f6486e98284f6c773e077d589608e0c5_d0dff93f-0e68-4f00-afd5-d34b7f77a422.webp?v=1714838642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a88ff22f6486e98284f6c773e077d589608e0c5_d0dff93f-0e68-4f00-afd5-d34b7f77a422.webp?v=1714838642","width":2000},{"alt":null,"id":23885345554531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d7ca72c9b32f54c29bc17f7e88aad8025a21e6_239b0ec8-dd00-4b72-9f2d-0baf2c52ee76.webp?v=1714838644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d7ca72c9b32f54c29bc17f7e88aad8025a21e6_239b0ec8-dd00-4b72-9f2d-0baf2c52ee76.webp?v=1714838644","width":2000},{"alt":null,"id":23885346144355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9646355111e5021120545a291ea66df8db844f0_def1d1f7-18c9-4122-a3da-011d7e4e5331.webp?v=1714838647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9646355111e5021120545a291ea66df8db844f0_def1d1f7-18c9-4122-a3da-011d7e4e5331.webp?v=1714838647","width":2000},{"alt":null,"id":23885346570339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6cb6761d16b067dd503d9edbd4fbeb78d8fd52_c87de802-754f-45b8-beab-8f5f9793d381.webp?v=1714838649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6cb6761d16b067dd503d9edbd4fbeb78d8fd52_c87de802-754f-45b8-beab-8f5f9793d381.webp?v=1714838649","width":2000},{"alt":null,"id":23885347127395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f383e70314f5059a21cecb8b5a9a8cee8bc9246d_d2491a01-9920-4fb0-a3ae-8efbbfaf8fc0.webp?v=1714838651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f383e70314f5059a21cecb8b5a9a8cee8bc9246d_d2491a01-9920-4fb0-a3ae-8efbbfaf8fc0.webp?v=1714838651","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897193832547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093376611,"product_id":7411303678051,"position":4,"created_at":"2024-05-05T00:03:57+08:00","updated_at":"2024-05-05T00:03:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637","variant_ids":[41897193832547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23885344178275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897193832547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093376611,"product_id":7411303678051,"position":4,"created_at":"2024-05-05T00:03:57+08:00","updated_at":"2024-05-05T00:03:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637","variant_ids":[41897193832547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23885344178275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ecee6c5645bb1a56118b83c5aaf5cc87394101_67ce6f3c-7719-4b86-91a3-ebc7fe7f924c.webp?v=1714838637"}},"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: "停產" }