$product = {"id":7414938173539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb34","description":null,"published_at":"2024-06-11T17:53:35+08:00","created_at":"2024-05-05T19:52:20+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 12 mini","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":41910131949667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31487726846051,"product_id":7414938173539,"position":1,"created_at":"2024-05-05T19:52:22+08:00","updated_at":"2024-05-05T19:52:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","variant_ids":[41910131949667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0118424-PB34","featured_media":{"alt":null,"id":23893070708835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02898dadf6ca0ca9a6585fb4cd6ac685b798ce7_65aed19b-6fe0-42a8-a753-ee93654beca9.webp?v=1714909945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584ba6e1cf5dc31cd0e861c216b33e19307c2fb5_3645d47c-185c-4541-becd-958e02590fd0.webp?v=1714909947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446683b270f74b31e340421e40d298f597934143_89b5d981-0932-4f29-81b4-6bddff171fac.webp?v=1714909949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0e8b40c075b300d8613e5b6d7345855b6788b6_dfdd582b-0079-4209-96fb-3a3ad8f840e0.webp?v=1714909951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69a9f7b30156c3530385f7c293eb1b812ddf131_b8fa9743-2f9d-4799-b4cd-62f9c237ad0e.webp?v=1714909954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05a77859a6743c2907f6277501b87537228945_54adbdc6-777a-46ae-8bc4-7cd1223efc62.webp?v=1714909956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19f622a874eb522f5e55c81390b26d9e9b6c3a3e_c4de77c5-b5cf-4715-87ae-3812ba41aaa3.webp?v=1714909958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925db01076803cc2a2209d680089c0bdb417231b_2c2a74eb-4911-4625-b6f0-170f891b9233.webp?v=1714909960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639333aa5dbedd47dc0f48c362e11925fe2a1c92_054f01f8-5b7b-4329-bd3f-806c7b7003d4.webp?v=1714909963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b346223d2cfe0298271999f70d2e591eed114e8_27a2fab2-53a8-4696-b43c-3bd875d0d9a5.webp?v=1714909965"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","options":["color"],"media":[{"alt":null,"id":23893070708835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","width":2000},{"alt":null,"id":23893071200355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02898dadf6ca0ca9a6585fb4cd6ac685b798ce7_65aed19b-6fe0-42a8-a753-ee93654beca9.webp?v=1714909945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02898dadf6ca0ca9a6585fb4cd6ac685b798ce7_65aed19b-6fe0-42a8-a753-ee93654beca9.webp?v=1714909945","width":2000},{"alt":null,"id":23893071724643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584ba6e1cf5dc31cd0e861c216b33e19307c2fb5_3645d47c-185c-4541-becd-958e02590fd0.webp?v=1714909947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584ba6e1cf5dc31cd0e861c216b33e19307c2fb5_3645d47c-185c-4541-becd-958e02590fd0.webp?v=1714909947","width":2000},{"alt":null,"id":23893072445539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446683b270f74b31e340421e40d298f597934143_89b5d981-0932-4f29-81b4-6bddff171fac.webp?v=1714909949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446683b270f74b31e340421e40d298f597934143_89b5d981-0932-4f29-81b4-6bddff171fac.webp?v=1714909949","width":2000},{"alt":null,"id":23893072871523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0e8b40c075b300d8613e5b6d7345855b6788b6_dfdd582b-0079-4209-96fb-3a3ad8f840e0.webp?v=1714909951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0e8b40c075b300d8613e5b6d7345855b6788b6_dfdd582b-0079-4209-96fb-3a3ad8f840e0.webp?v=1714909951","width":2000},{"alt":null,"id":23893073494115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69a9f7b30156c3530385f7c293eb1b812ddf131_b8fa9743-2f9d-4799-b4cd-62f9c237ad0e.webp?v=1714909954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69a9f7b30156c3530385f7c293eb1b812ddf131_b8fa9743-2f9d-4799-b4cd-62f9c237ad0e.webp?v=1714909954","width":2000},{"alt":null,"id":23893074182243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05a77859a6743c2907f6277501b87537228945_54adbdc6-777a-46ae-8bc4-7cd1223efc62.webp?v=1714909956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05a77859a6743c2907f6277501b87537228945_54adbdc6-777a-46ae-8bc4-7cd1223efc62.webp?v=1714909956","width":2000},{"alt":null,"id":23893074608227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19f622a874eb522f5e55c81390b26d9e9b6c3a3e_c4de77c5-b5cf-4715-87ae-3812ba41aaa3.webp?v=1714909958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19f622a874eb522f5e55c81390b26d9e9b6c3a3e_c4de77c5-b5cf-4715-87ae-3812ba41aaa3.webp?v=1714909958","width":2000},{"alt":null,"id":23893075099747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925db01076803cc2a2209d680089c0bdb417231b_2c2a74eb-4911-4625-b6f0-170f891b9233.webp?v=1714909960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925db01076803cc2a2209d680089c0bdb417231b_2c2a74eb-4911-4625-b6f0-170f891b9233.webp?v=1714909960","width":2000},{"alt":null,"id":23893075558499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639333aa5dbedd47dc0f48c362e11925fe2a1c92_054f01f8-5b7b-4329-bd3f-806c7b7003d4.webp?v=1714909963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639333aa5dbedd47dc0f48c362e11925fe2a1c92_054f01f8-5b7b-4329-bd3f-806c7b7003d4.webp?v=1714909963","width":2000},{"alt":null,"id":23893076082787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b346223d2cfe0298271999f70d2e591eed114e8_27a2fab2-53a8-4696-b43c-3bd875d0d9a5.webp?v=1714909965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b346223d2cfe0298271999f70d2e591eed114e8_27a2fab2-53a8-4696-b43c-3bd875d0d9a5.webp?v=1714909965","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910131949667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31487726846051,"product_id":7414938173539,"position":1,"created_at":"2024-05-05T19:52:22+08:00","updated_at":"2024-05-05T19:52:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","variant_ids":[41910131949667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0118424-PB34","featured_media":{"alt":null,"id":23893070708835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910131949667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31487726846051,"product_id":7414938173539,"position":1,"created_at":"2024-05-05T19:52:22+08:00","updated_at":"2024-05-05T19:52:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942","variant_ids":[41910131949667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0118424-PB34","featured_media":{"alt":null,"id":23893070708835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d23ab54a2b253350f0f7d1ff252dc8b1b67f1f8_6b15fc9c-cb06-409f-bd4c-d16b919214ae.webp?v=1714909942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }