$product = {"id":7411394052195,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb01","description":null,"published_at":"2024-06-11T17:43:46+08:00","created_at":"2024-05-05T00:21:19+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":41898332815459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480318001251,"product_id":7411394052195,"position":5,"created_at":"2024-05-05T00:21:31+08:00","updated_at":"2024-05-05T00:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691","variant_ids":[41898332815459]},"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-PB01","featured_media":{"alt":null,"id":23885569589347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6cbb24f7629b5f87f1768b3b53d7cd54d3d402_c633f1a5-19e9-4401-9b4b-135b0e52959b.webp?v=1714839682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973523416ad609cf7d2afa3f6216136121ab198_94983635-4553-4995-bb44-0a2732bcf85b.webp?v=1714839684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32c847aaf535c74a26874b409db916eeddd08a5_f3c3620e-600c-4d70-899f-e7f2de564df0.webp?v=1714839687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90b8bb82363455604e759fd8bccbba6c3b7f9a3_65f85c65-431f-4c90-89be-030b5d3c267a.webp?v=1714839689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d6d53e3e4cd644d10f00894492a249c929962_c65e1086-defe-4b64-9c84-2a597b24d356.webp?v=1714839694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed686ce6a158b1f7b0d497794c312004951bfefe_42f38bb4-3c06-415c-97cb-dfa29c447447.webp?v=1714839696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0574b0bb629bc37c400b2817d8c58e620dea4e6_41f97e3a-913b-4a62-b170-927dd6a9f7d8.webp?v=1714839698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d7c16b702feeb1416bd746a3404c2df66381dc_d846c437-ffbb-49ca-95b9-8a8b58cd56a7.webp?v=1714839700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1d37fb4ee0383a72fc7683a53bab3501e5e0a5_82cbf39c-4910-430f-933d-de7f391ff9ed.webp?v=1714839703"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6cbb24f7629b5f87f1768b3b53d7cd54d3d402_c633f1a5-19e9-4401-9b4b-135b0e52959b.webp?v=1714839682","options":["color"],"media":[{"alt":null,"id":23885567426659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6cbb24f7629b5f87f1768b3b53d7cd54d3d402_c633f1a5-19e9-4401-9b4b-135b0e52959b.webp?v=1714839682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6cbb24f7629b5f87f1768b3b53d7cd54d3d402_c633f1a5-19e9-4401-9b4b-135b0e52959b.webp?v=1714839682","width":2000},{"alt":null,"id":23885568016483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973523416ad609cf7d2afa3f6216136121ab198_94983635-4553-4995-bb44-0a2732bcf85b.webp?v=1714839684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973523416ad609cf7d2afa3f6216136121ab198_94983635-4553-4995-bb44-0a2732bcf85b.webp?v=1714839684","width":2000},{"alt":null,"id":23885568508003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32c847aaf535c74a26874b409db916eeddd08a5_f3c3620e-600c-4d70-899f-e7f2de564df0.webp?v=1714839687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32c847aaf535c74a26874b409db916eeddd08a5_f3c3620e-600c-4d70-899f-e7f2de564df0.webp?v=1714839687","width":2000},{"alt":null,"id":23885569196131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90b8bb82363455604e759fd8bccbba6c3b7f9a3_65f85c65-431f-4c90-89be-030b5d3c267a.webp?v=1714839689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90b8bb82363455604e759fd8bccbba6c3b7f9a3_65f85c65-431f-4c90-89be-030b5d3c267a.webp?v=1714839689","width":2000},{"alt":null,"id":23885569589347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691","width":2000},{"alt":null,"id":23885570146403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d6d53e3e4cd644d10f00894492a249c929962_c65e1086-defe-4b64-9c84-2a597b24d356.webp?v=1714839694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d6d53e3e4cd644d10f00894492a249c929962_c65e1086-defe-4b64-9c84-2a597b24d356.webp?v=1714839694","width":2000},{"alt":null,"id":23885570637923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed686ce6a158b1f7b0d497794c312004951bfefe_42f38bb4-3c06-415c-97cb-dfa29c447447.webp?v=1714839696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed686ce6a158b1f7b0d497794c312004951bfefe_42f38bb4-3c06-415c-97cb-dfa29c447447.webp?v=1714839696","width":2000},{"alt":null,"id":23885571162211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0574b0bb629bc37c400b2817d8c58e620dea4e6_41f97e3a-913b-4a62-b170-927dd6a9f7d8.webp?v=1714839698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0574b0bb629bc37c400b2817d8c58e620dea4e6_41f97e3a-913b-4a62-b170-927dd6a9f7d8.webp?v=1714839698","width":2000},{"alt":null,"id":23885571588195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d7c16b702feeb1416bd746a3404c2df66381dc_d846c437-ffbb-49ca-95b9-8a8b58cd56a7.webp?v=1714839700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d7c16b702feeb1416bd746a3404c2df66381dc_d846c437-ffbb-49ca-95b9-8a8b58cd56a7.webp?v=1714839700","width":2000},{"alt":null,"id":23885572243555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1d37fb4ee0383a72fc7683a53bab3501e5e0a5_82cbf39c-4910-430f-933d-de7f391ff9ed.webp?v=1714839703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff1d37fb4ee0383a72fc7683a53bab3501e5e0a5_82cbf39c-4910-430f-933d-de7f391ff9ed.webp?v=1714839703","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898332815459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480318001251,"product_id":7411394052195,"position":5,"created_at":"2024-05-05T00:21:31+08:00","updated_at":"2024-05-05T00:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691","variant_ids":[41898332815459]},"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-PB01","featured_media":{"alt":null,"id":23885569589347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898332815459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480318001251,"product_id":7411394052195,"position":5,"created_at":"2024-05-05T00:21:31+08:00","updated_at":"2024-05-05T00:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691","variant_ids":[41898332815459]},"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-PB01","featured_media":{"alt":null,"id":23885569589347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1005b33e6659bd68385275dbd0ba838fb687f420_62492b4c-b5eb-4d42-9d9f-6ea3521af205.webp?v=1714839691"}},"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: "停產" }