$product = {"id":7408391356515,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機","handle":"iphone-12-pro-max-mod-nx-printable-pb73","description":null,"published_at":"2024-06-11T16:35:57+08:00","created_at":"2024-05-03T15:17:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41884958326883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31472142680163,"product_id":7408391356515,"position":8,"created_at":"2024-05-03T15:17:38+08:00","updated_at":"2024-05-03T15:17:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658","variant_ids":[41884958326883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB73","featured_media":{"alt":null,"id":23877058297955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfce9a98b7f6d50d2d716a02fea85ae77f20bb0a_ecad4c24-f08a-4db4-8ace-a52a57d7905e.webp?v=1714720641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8ee3e660b762b5fd61cd1d3ec41cb789265c5_ccd84afd-2436-4f35-a7aa-17473f56e3c1.webp?v=1714720643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b715a5a629a293e011c7b118ddeba66145d540_b3a0be0e-3941-4a5d-8133-7e2823b14940.webp?v=1714720646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666ecf41844a869d8be2fc586189e0ca9228768d_7deecf34-72a0-40a4-b6c7-792d08ec3a2e.webp?v=1714720648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefb74f7aae3958058407b097d8efa9cb0ed7029_04b57e4f-5efc-4976-8f5e-b88b5a7027e4.webp?v=1714720651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c6300f8728fee7ce1219d1b7d60fb0f62b6a28_3002abc4-349b-462a-b740-6bb0876f97cf.webp?v=1714720653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/513f6624d2241d7225eeccf4c2a122d8201ce4df_3d142d90-7511-4c3d-8a20-21ce6fa7bc62.webp?v=1714720655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951de0dabd3100ceaa38f67e33a133e5039d7a08_2e7b098a-0239-43d8-a2bc-a77660012070.webp?v=1714720660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d4ee86bb4b4c68c7a884f2ac3f83594285a6a4_8c85ba60-44b6-4605-9462-1775b419c0fd.webp?v=1714720663"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfce9a98b7f6d50d2d716a02fea85ae77f20bb0a_ecad4c24-f08a-4db4-8ace-a52a57d7905e.webp?v=1714720641","options":["color"],"media":[{"alt":null,"id":23877054464099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfce9a98b7f6d50d2d716a02fea85ae77f20bb0a_ecad4c24-f08a-4db4-8ace-a52a57d7905e.webp?v=1714720641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfce9a98b7f6d50d2d716a02fea85ae77f20bb0a_ecad4c24-f08a-4db4-8ace-a52a57d7905e.webp?v=1714720641","width":2000},{"alt":null,"id":23877055021155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8ee3e660b762b5fd61cd1d3ec41cb789265c5_ccd84afd-2436-4f35-a7aa-17473f56e3c1.webp?v=1714720643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8ee3e660b762b5fd61cd1d3ec41cb789265c5_ccd84afd-2436-4f35-a7aa-17473f56e3c1.webp?v=1714720643","width":2000},{"alt":null,"id":23877055479907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b715a5a629a293e011c7b118ddeba66145d540_b3a0be0e-3941-4a5d-8133-7e2823b14940.webp?v=1714720646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02b715a5a629a293e011c7b118ddeba66145d540_b3a0be0e-3941-4a5d-8133-7e2823b14940.webp?v=1714720646","width":2000},{"alt":null,"id":23877055938659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666ecf41844a869d8be2fc586189e0ca9228768d_7deecf34-72a0-40a4-b6c7-792d08ec3a2e.webp?v=1714720648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666ecf41844a869d8be2fc586189e0ca9228768d_7deecf34-72a0-40a4-b6c7-792d08ec3a2e.webp?v=1714720648","width":2000},{"alt":null,"id":23877056430179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefb74f7aae3958058407b097d8efa9cb0ed7029_04b57e4f-5efc-4976-8f5e-b88b5a7027e4.webp?v=1714720651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cefb74f7aae3958058407b097d8efa9cb0ed7029_04b57e4f-5efc-4976-8f5e-b88b5a7027e4.webp?v=1714720651","width":2000},{"alt":null,"id":23877056954467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c6300f8728fee7ce1219d1b7d60fb0f62b6a28_3002abc4-349b-462a-b740-6bb0876f97cf.webp?v=1714720653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c6300f8728fee7ce1219d1b7d60fb0f62b6a28_3002abc4-349b-462a-b740-6bb0876f97cf.webp?v=1714720653","width":2000},{"alt":null,"id":23877057904739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/513f6624d2241d7225eeccf4c2a122d8201ce4df_3d142d90-7511-4c3d-8a20-21ce6fa7bc62.webp?v=1714720655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/513f6624d2241d7225eeccf4c2a122d8201ce4df_3d142d90-7511-4c3d-8a20-21ce6fa7bc62.webp?v=1714720655","width":2000},{"alt":null,"id":23877058297955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658","width":2000},{"alt":null,"id":23877058789475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951de0dabd3100ceaa38f67e33a133e5039d7a08_2e7b098a-0239-43d8-a2bc-a77660012070.webp?v=1714720660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951de0dabd3100ceaa38f67e33a133e5039d7a08_2e7b098a-0239-43d8-a2bc-a77660012070.webp?v=1714720660","width":2000},{"alt":null,"id":23877059280995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d4ee86bb4b4c68c7a884f2ac3f83594285a6a4_8c85ba60-44b6-4605-9462-1775b419c0fd.webp?v=1714720663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d4ee86bb4b4c68c7a884f2ac3f83594285a6a4_8c85ba60-44b6-4605-9462-1775b419c0fd.webp?v=1714720663","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884958326883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31472142680163,"product_id":7408391356515,"position":8,"created_at":"2024-05-03T15:17:38+08:00","updated_at":"2024-05-03T15:17:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658","variant_ids":[41884958326883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB73","featured_media":{"alt":null,"id":23877058297955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884958326883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31472142680163,"product_id":7408391356515,"position":8,"created_at":"2024-05-03T15:17:38+08:00","updated_at":"2024-05-03T15:17:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658","variant_ids":[41884958326883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB73","featured_media":{"alt":null,"id":23877058297955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accfb06bcf1ee1ff33b7a81c64b2f343f6223e95_a4ae721e-b2d6-4b4e-89e3-afe4bd1636f0.webp?v=1714720658"}},"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: "停產" }