$product = {"id":7415061184611,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - X戰機-線條白","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb16","description":null,"published_at":"2024-06-11T17:56:55+08:00","created_at":"2024-05-05T20:15:22+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":41911455121507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31488051413091,"product_id":7415061184611,"position":5,"created_at":"2024-05-05T20:15:34+08:00","updated_at":"2024-05-05T20:15:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334","variant_ids":[41911455121507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23893395865699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23058f67d256f5e3ce9c1e6684672fb2936854ab_a21e5a99-3cb0-460f-baab-29648b66468e.webp?v=1714911324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c43801327d4f825f0ed69eb8bebeb2ed4c67aeb0_46204440-660d-4f19-8122-29397a0c6181.webp?v=1714911327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7acdc8f9df71a1632d48bfae96ac823d10ca41_e3c118b3-62ed-4574-ba9a-e1b730c91a73.webp?v=1714911329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3416de750375f9acf8ab189ff90378502b29eff9_e8b9cbe5-d1db-4d7f-bc7a-01196b42f72b.webp?v=1714911332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec87bb70aeac220b7c5a3fe5fe3de22f6a66fc_1bfa976a-b900-4849-bc49-f8439e11a033.webp?v=1714911336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f7ace617617792c86ea7f4aea95a5957d4a3e_182ab32e-e18d-47d5-9d96-4d2f22d0e5c7.webp?v=1714911339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d50e43b39b65fff9c85891505e50ffabcf7f5f_e37219b9-e708-499e-a4aa-7f1fffc93e00.webp?v=1714911341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6fbc800215cea0ce68604eca301f0eb20a110b1_53551c3f-d63f-475f-825f-facf68275bac.webp?v=1714911343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37e13bb71754df77e0b640899c0394b90841ca2_6ee57da1-ae06-453b-ab32-47ba223cd517.webp?v=1714911346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682770613c5539e76d2c1926c05c782c75294406_1ad246c0-3650-42b3-9c5f-7e05fecbc2ca.webp?v=1714911348"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23058f67d256f5e3ce9c1e6684672fb2936854ab_a21e5a99-3cb0-460f-baab-29648b66468e.webp?v=1714911324","options":["color"],"media":[{"alt":null,"id":23893393801315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23058f67d256f5e3ce9c1e6684672fb2936854ab_a21e5a99-3cb0-460f-baab-29648b66468e.webp?v=1714911324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23058f67d256f5e3ce9c1e6684672fb2936854ab_a21e5a99-3cb0-460f-baab-29648b66468e.webp?v=1714911324","width":2000},{"alt":null,"id":23893394194531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c43801327d4f825f0ed69eb8bebeb2ed4c67aeb0_46204440-660d-4f19-8122-29397a0c6181.webp?v=1714911327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c43801327d4f825f0ed69eb8bebeb2ed4c67aeb0_46204440-660d-4f19-8122-29397a0c6181.webp?v=1714911327","width":2000},{"alt":null,"id":23893394849891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7acdc8f9df71a1632d48bfae96ac823d10ca41_e3c118b3-62ed-4574-ba9a-e1b730c91a73.webp?v=1714911329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7acdc8f9df71a1632d48bfae96ac823d10ca41_e3c118b3-62ed-4574-ba9a-e1b730c91a73.webp?v=1714911329","width":2000},{"alt":null,"id":23893395406947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3416de750375f9acf8ab189ff90378502b29eff9_e8b9cbe5-d1db-4d7f-bc7a-01196b42f72b.webp?v=1714911332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3416de750375f9acf8ab189ff90378502b29eff9_e8b9cbe5-d1db-4d7f-bc7a-01196b42f72b.webp?v=1714911332","width":2000},{"alt":null,"id":23893395865699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334","width":2000},{"alt":null,"id":23893396553827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec87bb70aeac220b7c5a3fe5fe3de22f6a66fc_1bfa976a-b900-4849-bc49-f8439e11a033.webp?v=1714911336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dec87bb70aeac220b7c5a3fe5fe3de22f6a66fc_1bfa976a-b900-4849-bc49-f8439e11a033.webp?v=1714911336","width":2000},{"alt":null,"id":23893397012579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f7ace617617792c86ea7f4aea95a5957d4a3e_182ab32e-e18d-47d5-9d96-4d2f22d0e5c7.webp?v=1714911339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f7ace617617792c86ea7f4aea95a5957d4a3e_182ab32e-e18d-47d5-9d96-4d2f22d0e5c7.webp?v=1714911339","width":2000},{"alt":null,"id":23893397504099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d50e43b39b65fff9c85891505e50ffabcf7f5f_e37219b9-e708-499e-a4aa-7f1fffc93e00.webp?v=1714911341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d50e43b39b65fff9c85891505e50ffabcf7f5f_e37219b9-e708-499e-a4aa-7f1fffc93e00.webp?v=1714911341","width":2000},{"alt":null,"id":23893398126691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6fbc800215cea0ce68604eca301f0eb20a110b1_53551c3f-d63f-475f-825f-facf68275bac.webp?v=1714911343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6fbc800215cea0ce68604eca301f0eb20a110b1_53551c3f-d63f-475f-825f-facf68275bac.webp?v=1714911343","width":2000},{"alt":null,"id":23893399142499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37e13bb71754df77e0b640899c0394b90841ca2_6ee57da1-ae06-453b-ab32-47ba223cd517.webp?v=1714911346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37e13bb71754df77e0b640899c0394b90841ca2_6ee57da1-ae06-453b-ab32-47ba223cd517.webp?v=1714911346","width":2000},{"alt":null,"id":23893399535715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682770613c5539e76d2c1926c05c782c75294406_1ad246c0-3650-42b3-9c5f-7e05fecbc2ca.webp?v=1714911348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682770613c5539e76d2c1926c05c782c75294406_1ad246c0-3650-42b3-9c5f-7e05fecbc2ca.webp?v=1714911348","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911455121507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31488051413091,"product_id":7415061184611,"position":5,"created_at":"2024-05-05T20:15:34+08:00","updated_at":"2024-05-05T20:15:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334","variant_ids":[41911455121507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23893395865699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911455121507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31488051413091,"product_id":7415061184611,"position":5,"created_at":"2024-05-05T20:15:34+08:00","updated_at":"2024-05-05T20:15:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334","variant_ids":[41911455121507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23893395865699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8d2debbdfc10d05621e387f6980799ec7d7989_3c29e7dd-5b19-443f-8879-cc0fc61a3490.webp?v=1714911334"}},"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: "停產" }