$product = {"id":7411400015971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb54","description":null,"published_at":"2024-06-11T17:43:56+08:00","created_at":"2024-05-05T00:22:28+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":41898406248547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31480331141219,"product_id":7411400015971,"position":1,"created_at":"2024-05-05T00:22:30+08:00","updated_at":"2024-05-05T00:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","variant_ids":[41898406248547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23885582729315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27542bdcc2eb8fad5518fb58d84f145b4d01a967_0456a5f3-2742-41e6-8602-e75c04361dad.webp?v=1714839752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1282c7752dbfd5e5a4a84e09f7fc9076743de4_0509d3a0-6cae-40d4-a452-33fe382a155e.webp?v=1714839754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36ed5a7ff59b0ab01e344897a914a2291a7d2e8b_9de9fc86-6196-4461-8b76-58f2bdb73da7.webp?v=1714839757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc173121570c8be91fefa4009e5813f3ad81d73_3548affe-da56-4506-9e79-319961823424.webp?v=1714839759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d8660d7c761a2427cc73484ad6f0aa4349ad87_44ecbdf0-cfa2-482f-aa5b-7cfdfb0653bd.webp?v=1714839761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96fddf85d74af098467413e65a1c8860efe9e61_b3ca5981-4ca5-4eb2-ab46-0db4aad685ad.webp?v=1714839763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/057aee6df71864ca22f81bba0d7c23d495c95f16_06fc8b53-a472-49b8-88a9-7b8161068ee6.webp?v=1714839766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9092c4c8c0ef3ff5ba92f31b98eac9d36a363f64_6498e8fe-8b56-403e-bf43-ec90cbc0036a.webp?v=1714839768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea73ef53ab1e1979fc95624b71a5d2a6d691cd2f_b8706fd7-17d0-426f-b3e3-dd7e44a77ac8.webp?v=1714839770"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","options":["color"],"media":[{"alt":null,"id":23885582729315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","width":2000},{"alt":null,"id":23885583253603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27542bdcc2eb8fad5518fb58d84f145b4d01a967_0456a5f3-2742-41e6-8602-e75c04361dad.webp?v=1714839752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27542bdcc2eb8fad5518fb58d84f145b4d01a967_0456a5f3-2742-41e6-8602-e75c04361dad.webp?v=1714839752","width":2000},{"alt":null,"id":23885583679587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1282c7752dbfd5e5a4a84e09f7fc9076743de4_0509d3a0-6cae-40d4-a452-33fe382a155e.webp?v=1714839754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1282c7752dbfd5e5a4a84e09f7fc9076743de4_0509d3a0-6cae-40d4-a452-33fe382a155e.webp?v=1714839754","width":2000},{"alt":null,"id":23885584007267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36ed5a7ff59b0ab01e344897a914a2291a7d2e8b_9de9fc86-6196-4461-8b76-58f2bdb73da7.webp?v=1714839757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36ed5a7ff59b0ab01e344897a914a2291a7d2e8b_9de9fc86-6196-4461-8b76-58f2bdb73da7.webp?v=1714839757","width":2000},{"alt":null,"id":23885584695395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc173121570c8be91fefa4009e5813f3ad81d73_3548affe-da56-4506-9e79-319961823424.webp?v=1714839759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc173121570c8be91fefa4009e5813f3ad81d73_3548affe-da56-4506-9e79-319961823424.webp?v=1714839759","width":2000},{"alt":null,"id":23885585154147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d8660d7c761a2427cc73484ad6f0aa4349ad87_44ecbdf0-cfa2-482f-aa5b-7cfdfb0653bd.webp?v=1714839761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d8660d7c761a2427cc73484ad6f0aa4349ad87_44ecbdf0-cfa2-482f-aa5b-7cfdfb0653bd.webp?v=1714839761","width":2000},{"alt":null,"id":23885585743971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96fddf85d74af098467413e65a1c8860efe9e61_b3ca5981-4ca5-4eb2-ab46-0db4aad685ad.webp?v=1714839763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96fddf85d74af098467413e65a1c8860efe9e61_b3ca5981-4ca5-4eb2-ab46-0db4aad685ad.webp?v=1714839763","width":2000},{"alt":null,"id":23885586137187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/057aee6df71864ca22f81bba0d7c23d495c95f16_06fc8b53-a472-49b8-88a9-7b8161068ee6.webp?v=1714839766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/057aee6df71864ca22f81bba0d7c23d495c95f16_06fc8b53-a472-49b8-88a9-7b8161068ee6.webp?v=1714839766","width":2000},{"alt":null,"id":23885586661475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9092c4c8c0ef3ff5ba92f31b98eac9d36a363f64_6498e8fe-8b56-403e-bf43-ec90cbc0036a.webp?v=1714839768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9092c4c8c0ef3ff5ba92f31b98eac9d36a363f64_6498e8fe-8b56-403e-bf43-ec90cbc0036a.webp?v=1714839768","width":2000},{"alt":null,"id":23885587284067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea73ef53ab1e1979fc95624b71a5d2a6d691cd2f_b8706fd7-17d0-426f-b3e3-dd7e44a77ac8.webp?v=1714839770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea73ef53ab1e1979fc95624b71a5d2a6d691cd2f_b8706fd7-17d0-426f-b3e3-dd7e44a77ac8.webp?v=1714839770","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898406248547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31480331141219,"product_id":7411400015971,"position":1,"created_at":"2024-05-05T00:22:30+08:00","updated_at":"2024-05-05T00:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","variant_ids":[41898406248547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23885582729315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898406248547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31480331141219,"product_id":7411400015971,"position":1,"created_at":"2024-05-05T00:22:30+08:00","updated_at":"2024-05-05T00:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750","variant_ids":[41898406248547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23885582729315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a716f7123963029b515ce95b558d67f762b5163_82080509-f906-4173-a999-54f8e3953e61.webp?v=1714839750"}},"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: "停產" }