$product = {"id":7411395952739,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc02","description":null,"published_at":"2024-06-11T17:43:49+08:00","created_at":"2024-05-05T00:21:41+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":41898350641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480323244131,"product_id":7411395952739,"position":6,"created_at":"2024-05-05T00:21:55+08:00","updated_at":"2024-05-05T00:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716","variant_ids":[41898350641251]},"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-PC02","featured_media":{"alt":null,"id":23885574799459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591e2d564587b4b2a3a8e9397d31ffa3017f15ab_ee8f90e9-5a4d-4cca-accc-58effac8af1b.webp?v=1714839703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bed5bc923bfd0ec99ed96db5eb0f23e197246fc_09e0c95b-833e-43b1-af8d-f56bafd0cee2.webp?v=1714839706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2c46376b94d56f3ce6184f84d340f59107ca1d_0048831e-54e8-4db0-a7e9-0917bd245aec.webp?v=1714839708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f9c944e481646cf71897dab247cf51661eca3f_8358f3f8-d805-44d1-8744-a1e965a3fda6.webp?v=1714839711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a65a92d4e2106b49171adbfd7beb468aba22b1_1dad2b19-83b8-490d-8d69-49d20839be99.webp?v=1714839713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc8b4479bbcab4b30e223c55f66d11f57a8d623_58a09a22-0cb7-4211-8075-8180780f4bf8.webp?v=1714839718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28f9bdf5f931c5b7d304ece4d8707a0f28f5713_de69c4af-b480-45f6-862b-2d25939fa7e1.webp?v=1714839720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07c913de29f1f0ce9abc03efd6c8d21ad93a5511_069b4b0c-a399-4478-8321-10deb86434db.webp?v=1714839722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed35b3841b74579c5c16aa48655efbf2806fe718_2a2573b2-3431-47e3-ab07-bd4bebba2ee7.webp?v=1714839725"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591e2d564587b4b2a3a8e9397d31ffa3017f15ab_ee8f90e9-5a4d-4cca-accc-58effac8af1b.webp?v=1714839703","options":["color"],"media":[{"alt":null,"id":23885572309091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591e2d564587b4b2a3a8e9397d31ffa3017f15ab_ee8f90e9-5a4d-4cca-accc-58effac8af1b.webp?v=1714839703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591e2d564587b4b2a3a8e9397d31ffa3017f15ab_ee8f90e9-5a4d-4cca-accc-58effac8af1b.webp?v=1714839703","width":2000},{"alt":null,"id":23885572735075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bed5bc923bfd0ec99ed96db5eb0f23e197246fc_09e0c95b-833e-43b1-af8d-f56bafd0cee2.webp?v=1714839706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bed5bc923bfd0ec99ed96db5eb0f23e197246fc_09e0c95b-833e-43b1-af8d-f56bafd0cee2.webp?v=1714839706","width":2000},{"alt":null,"id":23885573292131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2c46376b94d56f3ce6184f84d340f59107ca1d_0048831e-54e8-4db0-a7e9-0917bd245aec.webp?v=1714839708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2c46376b94d56f3ce6184f84d340f59107ca1d_0048831e-54e8-4db0-a7e9-0917bd245aec.webp?v=1714839708","width":2000},{"alt":null,"id":23885573750883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f9c944e481646cf71897dab247cf51661eca3f_8358f3f8-d805-44d1-8744-a1e965a3fda6.webp?v=1714839711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f9c944e481646cf71897dab247cf51661eca3f_8358f3f8-d805-44d1-8744-a1e965a3fda6.webp?v=1714839711","width":2000},{"alt":null,"id":23885574307939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a65a92d4e2106b49171adbfd7beb468aba22b1_1dad2b19-83b8-490d-8d69-49d20839be99.webp?v=1714839713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a65a92d4e2106b49171adbfd7beb468aba22b1_1dad2b19-83b8-490d-8d69-49d20839be99.webp?v=1714839713","width":2000},{"alt":null,"id":23885574799459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716","width":2000},{"alt":null,"id":23885575585891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc8b4479bbcab4b30e223c55f66d11f57a8d623_58a09a22-0cb7-4211-8075-8180780f4bf8.webp?v=1714839718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc8b4479bbcab4b30e223c55f66d11f57a8d623_58a09a22-0cb7-4211-8075-8180780f4bf8.webp?v=1714839718","width":2000},{"alt":null,"id":23885576667235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28f9bdf5f931c5b7d304ece4d8707a0f28f5713_de69c4af-b480-45f6-862b-2d25939fa7e1.webp?v=1714839720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28f9bdf5f931c5b7d304ece4d8707a0f28f5713_de69c4af-b480-45f6-862b-2d25939fa7e1.webp?v=1714839720","width":2000},{"alt":null,"id":23885577191523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07c913de29f1f0ce9abc03efd6c8d21ad93a5511_069b4b0c-a399-4478-8321-10deb86434db.webp?v=1714839722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07c913de29f1f0ce9abc03efd6c8d21ad93a5511_069b4b0c-a399-4478-8321-10deb86434db.webp?v=1714839722","width":2000},{"alt":null,"id":23885577650275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed35b3841b74579c5c16aa48655efbf2806fe718_2a2573b2-3431-47e3-ab07-bd4bebba2ee7.webp?v=1714839725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed35b3841b74579c5c16aa48655efbf2806fe718_2a2573b2-3431-47e3-ab07-bd4bebba2ee7.webp?v=1714839725","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898350641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480323244131,"product_id":7411395952739,"position":6,"created_at":"2024-05-05T00:21:55+08:00","updated_at":"2024-05-05T00:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716","variant_ids":[41898350641251]},"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-PC02","featured_media":{"alt":null,"id":23885574799459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898350641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480323244131,"product_id":7411395952739,"position":6,"created_at":"2024-05-05T00:21:55+08:00","updated_at":"2024-05-05T00:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716","variant_ids":[41898350641251]},"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-PC02","featured_media":{"alt":null,"id":23885574799459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b65232c469288ccc9fdde7fdf9776c1d3e734a_820ca33c-919b-4fdc-a3f5-036ee4833999.webp?v=1714839716"}},"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: "停產" }