$product = {"id":7411216482403,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb52","description":null,"published_at":"2024-06-11T17:39:01+08:00","created_at":"2024-05-04T23:47:10+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":41896101281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872290915,"product_id":7411216482403,"position":4,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640","variant_ids":[41896101281891]},"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-PB52","featured_media":{"alt":null,"id":23885122764899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ccaa104f78860940cb2df99531b2d46b434c5e_da433fac-103c-4631-9db0-f893723e9e67.webp?v=1714837633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c46ed4028a1db510567df88a7ea93d8be9be162_074f1a18-0cd2-4a22-9371-fcf5ffa332f7.webp?v=1714837635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d250372ea8862f15641a95b23b525f4034192539_680b7366-5f7d-4f91-90de-1950f7452ab2.webp?v=1714837638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440a9ec7c313f5508a6932740fba896b0f207a3b_5904031e-6f4a-4e11-b362-24915c90934b.webp?v=1714837642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9a51e2e819933e8827a59c288c78467c032e09f_c4084a14-d979-4bed-b928-ac5c7ce0758a.webp?v=1714837645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41363588030c4cd8141222c3f4955b155845daca_5381fc5c-1ae5-4359-a9c9-ec0fa19f40d3.webp?v=1714837647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb4b67950e104f30c8775448e5e015e97b7b7df_29ff9bcd-ccc1-40ce-b30f-03a4e2bd6ce6.webp?v=1714837649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579a001a88d1f0e0eca071ff644f78903a836ad5_db53f4f3-d08d-4fc6-98c4-888df9d4e236.webp?v=1714837651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91299c98dbc9b14889f7be605dc7f9a1f4dd96db_28f84c74-7334-472a-8a57-f9061adbc800.webp?v=1714837653"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ccaa104f78860940cb2df99531b2d46b434c5e_da433fac-103c-4631-9db0-f893723e9e67.webp?v=1714837633","options":["color"],"media":[{"alt":null,"id":23885121028195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ccaa104f78860940cb2df99531b2d46b434c5e_da433fac-103c-4631-9db0-f893723e9e67.webp?v=1714837633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ccaa104f78860940cb2df99531b2d46b434c5e_da433fac-103c-4631-9db0-f893723e9e67.webp?v=1714837633","width":2000},{"alt":null,"id":23885121716323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c46ed4028a1db510567df88a7ea93d8be9be162_074f1a18-0cd2-4a22-9371-fcf5ffa332f7.webp?v=1714837635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c46ed4028a1db510567df88a7ea93d8be9be162_074f1a18-0cd2-4a22-9371-fcf5ffa332f7.webp?v=1714837635","width":2000},{"alt":null,"id":23885122207843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d250372ea8862f15641a95b23b525f4034192539_680b7366-5f7d-4f91-90de-1950f7452ab2.webp?v=1714837638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d250372ea8862f15641a95b23b525f4034192539_680b7366-5f7d-4f91-90de-1950f7452ab2.webp?v=1714837638","width":2000},{"alt":null,"id":23885122764899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640","width":2000},{"alt":null,"id":23885123190883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440a9ec7c313f5508a6932740fba896b0f207a3b_5904031e-6f4a-4e11-b362-24915c90934b.webp?v=1714837642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440a9ec7c313f5508a6932740fba896b0f207a3b_5904031e-6f4a-4e11-b362-24915c90934b.webp?v=1714837642","width":2000},{"alt":null,"id":23885123813475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9a51e2e819933e8827a59c288c78467c032e09f_c4084a14-d979-4bed-b928-ac5c7ce0758a.webp?v=1714837645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9a51e2e819933e8827a59c288c78467c032e09f_c4084a14-d979-4bed-b928-ac5c7ce0758a.webp?v=1714837645","width":2000},{"alt":null,"id":23885124337763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41363588030c4cd8141222c3f4955b155845daca_5381fc5c-1ae5-4359-a9c9-ec0fa19f40d3.webp?v=1714837647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41363588030c4cd8141222c3f4955b155845daca_5381fc5c-1ae5-4359-a9c9-ec0fa19f40d3.webp?v=1714837647","width":2000},{"alt":null,"id":23885124894819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb4b67950e104f30c8775448e5e015e97b7b7df_29ff9bcd-ccc1-40ce-b30f-03a4e2bd6ce6.webp?v=1714837649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb4b67950e104f30c8775448e5e015e97b7b7df_29ff9bcd-ccc1-40ce-b30f-03a4e2bd6ce6.webp?v=1714837649","width":2000},{"alt":null,"id":23885125386339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579a001a88d1f0e0eca071ff644f78903a836ad5_db53f4f3-d08d-4fc6-98c4-888df9d4e236.webp?v=1714837651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579a001a88d1f0e0eca071ff644f78903a836ad5_db53f4f3-d08d-4fc6-98c4-888df9d4e236.webp?v=1714837651","width":2000},{"alt":null,"id":23885125877859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91299c98dbc9b14889f7be605dc7f9a1f4dd96db_28f84c74-7334-472a-8a57-f9061adbc800.webp?v=1714837653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91299c98dbc9b14889f7be605dc7f9a1f4dd96db_28f84c74-7334-472a-8a57-f9061adbc800.webp?v=1714837653","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896101281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872290915,"product_id":7411216482403,"position":4,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640","variant_ids":[41896101281891]},"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-PB52","featured_media":{"alt":null,"id":23885122764899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896101281891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872290915,"product_id":7411216482403,"position":4,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640","variant_ids":[41896101281891]},"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-PB52","featured_media":{"alt":null,"id":23885122764899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e686837ba26bab69580964c7d0797972baa2653a_81fccf28-8e61-470d-bc30-4bcfe87c17cd.webp?v=1714837640"}},"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: "停產" }