$product = {"id":7411218088035,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc13","description":null,"published_at":"2024-06-11T17:39:04+08:00","created_at":"2024-05-04T23:47:32+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":41896122876003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479876190307,"product_id":7411218088035,"position":2,"created_at":"2024-05-04T23:47:36+08:00","updated_at":"2024-05-04T23:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656","variant_ids":[41896122876003]},"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-PC13","featured_media":{"alt":null,"id":23885126664291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa950e6e7543d881f96f2f78c0ca9b7f96615ca_0bc44121-1036-4cf8-b303-f5d0d0707db3.webp?v=1714837654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0154979bf38fc0724f2d2b703a9f5dcb68a3fa2c_60426d56-b9a7-4b65-b0a0-322ca73378e4.webp?v=1714837659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f06ad88720fd63ec078f91caf9698ff4a3cdf6_d79626d8-dfb7-49b0-ad39-85e7e7ddb5c1.webp?v=1714837661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108f7cf38246668d174a9bbc9d08df3f0350d1ff_f5bcacfc-e91e-40e4-81c2-704230b052f5.webp?v=1714837663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39facaa54f7b67a843e80a85b9a7b85488d3633f_33f7bdd5-338b-4f1a-b1ac-48d283a9c179.webp?v=1714837666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2f0f53a2729d45d3db52bc5c5108676ccbff3_ca7addc3-c6a9-4421-8702-3838c84ade2f.webp?v=1714837668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0448a184dd87f0964d26ad5be091d0ec36259fd1_1557c84d-ce73-4e04-af2b-26c177b66f2b.webp?v=1714837670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77615226a39b1967672716e19608a18be9ae1b40_1e795632-f9f5-474e-83b1-5ae1e13b730c.webp?v=1714837672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1452a5f5faf903b0381c2c73f30ef31e8a8345_448c7902-c2af-4981-bc5c-2a2e1a6d6e79.webp?v=1714837675"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa950e6e7543d881f96f2f78c0ca9b7f96615ca_0bc44121-1036-4cf8-b303-f5d0d0707db3.webp?v=1714837654","options":["color"],"media":[{"alt":null,"id":23885126074467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa950e6e7543d881f96f2f78c0ca9b7f96615ca_0bc44121-1036-4cf8-b303-f5d0d0707db3.webp?v=1714837654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa950e6e7543d881f96f2f78c0ca9b7f96615ca_0bc44121-1036-4cf8-b303-f5d0d0707db3.webp?v=1714837654","width":2000},{"alt":null,"id":23885126664291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656","width":2000},{"alt":null,"id":23885127155811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0154979bf38fc0724f2d2b703a9f5dcb68a3fa2c_60426d56-b9a7-4b65-b0a0-322ca73378e4.webp?v=1714837659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0154979bf38fc0724f2d2b703a9f5dcb68a3fa2c_60426d56-b9a7-4b65-b0a0-322ca73378e4.webp?v=1714837659","width":2000},{"alt":null,"id":23885127680099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f06ad88720fd63ec078f91caf9698ff4a3cdf6_d79626d8-dfb7-49b0-ad39-85e7e7ddb5c1.webp?v=1714837661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f06ad88720fd63ec078f91caf9698ff4a3cdf6_d79626d8-dfb7-49b0-ad39-85e7e7ddb5c1.webp?v=1714837661","width":2000},{"alt":null,"id":23885128237155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108f7cf38246668d174a9bbc9d08df3f0350d1ff_f5bcacfc-e91e-40e4-81c2-704230b052f5.webp?v=1714837663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108f7cf38246668d174a9bbc9d08df3f0350d1ff_f5bcacfc-e91e-40e4-81c2-704230b052f5.webp?v=1714837663","width":2000},{"alt":null,"id":23885128695907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39facaa54f7b67a843e80a85b9a7b85488d3633f_33f7bdd5-338b-4f1a-b1ac-48d283a9c179.webp?v=1714837666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39facaa54f7b67a843e80a85b9a7b85488d3633f_33f7bdd5-338b-4f1a-b1ac-48d283a9c179.webp?v=1714837666","width":2000},{"alt":null,"id":23885129220195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2f0f53a2729d45d3db52bc5c5108676ccbff3_ca7addc3-c6a9-4421-8702-3838c84ade2f.webp?v=1714837668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2f0f53a2729d45d3db52bc5c5108676ccbff3_ca7addc3-c6a9-4421-8702-3838c84ade2f.webp?v=1714837668","width":2000},{"alt":null,"id":23885129580643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0448a184dd87f0964d26ad5be091d0ec36259fd1_1557c84d-ce73-4e04-af2b-26c177b66f2b.webp?v=1714837670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0448a184dd87f0964d26ad5be091d0ec36259fd1_1557c84d-ce73-4e04-af2b-26c177b66f2b.webp?v=1714837670","width":2000},{"alt":null,"id":23885130236003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77615226a39b1967672716e19608a18be9ae1b40_1e795632-f9f5-474e-83b1-5ae1e13b730c.webp?v=1714837672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77615226a39b1967672716e19608a18be9ae1b40_1e795632-f9f5-474e-83b1-5ae1e13b730c.webp?v=1714837672","width":2000},{"alt":null,"id":23885130727523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1452a5f5faf903b0381c2c73f30ef31e8a8345_448c7902-c2af-4981-bc5c-2a2e1a6d6e79.webp?v=1714837675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d1452a5f5faf903b0381c2c73f30ef31e8a8345_448c7902-c2af-4981-bc5c-2a2e1a6d6e79.webp?v=1714837675","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896122876003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479876190307,"product_id":7411218088035,"position":2,"created_at":"2024-05-04T23:47:36+08:00","updated_at":"2024-05-04T23:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656","variant_ids":[41896122876003]},"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-PC13","featured_media":{"alt":null,"id":23885126664291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896122876003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479876190307,"product_id":7411218088035,"position":2,"created_at":"2024-05-04T23:47:36+08:00","updated_at":"2024-05-04T23:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656","variant_ids":[41896122876003]},"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-PC13","featured_media":{"alt":null,"id":23885126664291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3d89c6ef4d2501574aaf3c809c468e373c356_ead79a89-be60-44ed-a045-1df17a7d7da9.webp?v=1714837656"}},"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: "停產" }