$product = {"id":7415094968419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb69","description":null,"published_at":"2024-06-11T17:57:50+08:00","created_at":"2024-05-05T20:21:49+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":41911815110755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31488149717091,"product_id":7415094968419,"position":9,"created_at":"2024-05-05T20:22:12+08:00","updated_at":"2024-05-05T20:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732","variant_ids":[41911815110755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23893494366307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d01a096875eaae959b2846b5171b38035f565_8cb0e166-5eb9-48ea-bb54-a3fb3814125a.webp?v=1714911711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ac5f80b87df6ea98b581bbdb382ae7c53b0fd6_858eeaa1-7d5c-4e4b-bd27-c9e65fa70de5.webp?v=1714911714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e93f8dd2b421ea0e3f5946bd9c1b8d07de7c0e3_c01abd18-7644-4aff-b0b0-00c7de63bd6a.webp?v=1714911716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f68e1e5caa44eb6ae8095cf11c3823abeab18cd_20cf3baf-3b1a-4632-9c94-fc49b83fcda2.webp?v=1714911719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906b84eebd47f05a6a6438a70a0c556bdb981375_ac23b846-4148-4fe3-824d-109e68e887a0.webp?v=1714911721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9118d6ecab800903b0592b8d283528614651c4_e16f1757-f716-42c4-acb2-99a4bb751098.webp?v=1714911724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7fc2d30a3b351a48b336a912a01f39d246282a_a7025d36-5ae2-48de-824e-bf3cc584e95f.webp?v=1714911726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865798e9385313cc400a0d5b03787fba7311e3f4_f4c65bd5-07b9-4a6c-99ce-e367d6141876.webp?v=1714911729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853e5794df44c6067187f541e0f6f0ced60b2d8c_337898c6-97bc-4a40-8367-2772f37d4f1d.webp?v=1714911734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f375c5dab943731ea7ccad0eda788cba79a91f_2063b998-3e53-4c07-9cc1-7f9e902da4e9.webp?v=1714911736"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d01a096875eaae959b2846b5171b38035f565_8cb0e166-5eb9-48ea-bb54-a3fb3814125a.webp?v=1714911711","options":["color"],"media":[{"alt":null,"id":23893489188963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d01a096875eaae959b2846b5171b38035f565_8cb0e166-5eb9-48ea-bb54-a3fb3814125a.webp?v=1714911711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37d01a096875eaae959b2846b5171b38035f565_8cb0e166-5eb9-48ea-bb54-a3fb3814125a.webp?v=1714911711","width":2000},{"alt":null,"id":23893490040931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ac5f80b87df6ea98b581bbdb382ae7c53b0fd6_858eeaa1-7d5c-4e4b-bd27-c9e65fa70de5.webp?v=1714911714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ac5f80b87df6ea98b581bbdb382ae7c53b0fd6_858eeaa1-7d5c-4e4b-bd27-c9e65fa70de5.webp?v=1714911714","width":2000},{"alt":null,"id":23893490597987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e93f8dd2b421ea0e3f5946bd9c1b8d07de7c0e3_c01abd18-7644-4aff-b0b0-00c7de63bd6a.webp?v=1714911716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e93f8dd2b421ea0e3f5946bd9c1b8d07de7c0e3_c01abd18-7644-4aff-b0b0-00c7de63bd6a.webp?v=1714911716","width":2000},{"alt":null,"id":23893491515491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f68e1e5caa44eb6ae8095cf11c3823abeab18cd_20cf3baf-3b1a-4632-9c94-fc49b83fcda2.webp?v=1714911719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f68e1e5caa44eb6ae8095cf11c3823abeab18cd_20cf3baf-3b1a-4632-9c94-fc49b83fcda2.webp?v=1714911719","width":2000},{"alt":null,"id":23893492039779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906b84eebd47f05a6a6438a70a0c556bdb981375_ac23b846-4148-4fe3-824d-109e68e887a0.webp?v=1714911721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906b84eebd47f05a6a6438a70a0c556bdb981375_ac23b846-4148-4fe3-824d-109e68e887a0.webp?v=1714911721","width":2000},{"alt":null,"id":23893492498531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9118d6ecab800903b0592b8d283528614651c4_e16f1757-f716-42c4-acb2-99a4bb751098.webp?v=1714911724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9118d6ecab800903b0592b8d283528614651c4_e16f1757-f716-42c4-acb2-99a4bb751098.webp?v=1714911724","width":2000},{"alt":null,"id":23893492990051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7fc2d30a3b351a48b336a912a01f39d246282a_a7025d36-5ae2-48de-824e-bf3cc584e95f.webp?v=1714911726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7fc2d30a3b351a48b336a912a01f39d246282a_a7025d36-5ae2-48de-824e-bf3cc584e95f.webp?v=1714911726","width":2000},{"alt":null,"id":23893493809251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865798e9385313cc400a0d5b03787fba7311e3f4_f4c65bd5-07b9-4a6c-99ce-e367d6141876.webp?v=1714911729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865798e9385313cc400a0d5b03787fba7311e3f4_f4c65bd5-07b9-4a6c-99ce-e367d6141876.webp?v=1714911729","width":2000},{"alt":null,"id":23893494366307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732","width":2000},{"alt":null,"id":23893495087203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853e5794df44c6067187f541e0f6f0ced60b2d8c_337898c6-97bc-4a40-8367-2772f37d4f1d.webp?v=1714911734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853e5794df44c6067187f541e0f6f0ced60b2d8c_337898c6-97bc-4a40-8367-2772f37d4f1d.webp?v=1714911734","width":2000},{"alt":null,"id":23893495840867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f375c5dab943731ea7ccad0eda788cba79a91f_2063b998-3e53-4c07-9cc1-7f9e902da4e9.webp?v=1714911736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f375c5dab943731ea7ccad0eda788cba79a91f_2063b998-3e53-4c07-9cc1-7f9e902da4e9.webp?v=1714911736","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911815110755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31488149717091,"product_id":7415094968419,"position":9,"created_at":"2024-05-05T20:22:12+08:00","updated_at":"2024-05-05T20:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732","variant_ids":[41911815110755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23893494366307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911815110755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31488149717091,"product_id":7415094968419,"position":9,"created_at":"2024-05-05T20:22:12+08:00","updated_at":"2024-05-05T20:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732","variant_ids":[41911815110755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23893494366307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba0530ded05e96aeeb3adeb1068bec64a9e2bb3_02a46eca-627a-4f07-9da7-84f31454cfe0.webp?v=1714911732"}},"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: "停產" }