$product = {"id":7414032728163,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - C3PO-經典","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb24","description":null,"published_at":"2024-06-11T17:48:16+08:00","created_at":"2024-05-05T14:04:57+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 13 Pro Max","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":41903554297955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510535779,"product_id":7414032728163,"position":7,"created_at":"2024-05-05T14:05:13+08:00","updated_at":"2024-05-05T14:05:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113","variant_ids":[41903554297955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 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":"MPB0123224-PB24","featured_media":{"alt":null,"id":23889804689507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903554887779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31484511289443,"product_id":7414032728163,"position":8,"created_at":"2024-05-05T14:05:15+08:00","updated_at":"2024-05-05T14:05:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116","variant_ids":[41903554887779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 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":"MPB01232J5-PB24","featured_media":{"alt":null,"id":23889805213795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e93409fbd6a4d9bff2e2caddfb7c8fc22d02_f7f772cd-6818-4800-9a87-b58321e77100.webp?v=1714889099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e1e54705eb6624f4749a762688efdadb2337ba_600227a1-2c38-4c5d-80ab-c795a75ff58d.webp?v=1714889101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63871d16a6f4828cd6ed45af6b2c499a1b8935f_d21543f2-d657-4262-b21d-9bd3b80f3991.webp?v=1714889104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d204200cf2ff1b9ce31a31c0528caa722eace9_79265b0c-73d9-4da8-8ba7-ac9a1cfb8f22.webp?v=1714889106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec3396f668cbe3377720ce488298b137dda31ec3_ed71639a-2f78-479e-8c03-7d325de91714.webp?v=1714889109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ee4608c52227916a2b2c7773cc04910034af_4b73934a-0eaf-43ba-ac18-674a8a46ae0f.webp?v=1714889111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771157af2541acd74d1955a7fd6933bc8e6fde9a_c23dfab6-7332-442e-b6c8-8ab1e13b3a16.webp?v=1714889118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5630d99b851aeb38ab69aab003fa1f210c284e_0a3c3ac9-2366-4e74-b9dd-cc35a1bbf5b6.webp?v=1714889120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5748930ae84e9d64b6289135e993af98659a346f_254e66d5-d0bb-47fb-80b5-6a1f1ebc54fd.webp?v=1714889123"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e93409fbd6a4d9bff2e2caddfb7c8fc22d02_f7f772cd-6818-4800-9a87-b58321e77100.webp?v=1714889099","options":["color"],"media":[{"alt":null,"id":23889801674851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e93409fbd6a4d9bff2e2caddfb7c8fc22d02_f7f772cd-6818-4800-9a87-b58321e77100.webp?v=1714889099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e93409fbd6a4d9bff2e2caddfb7c8fc22d02_f7f772cd-6818-4800-9a87-b58321e77100.webp?v=1714889099","width":2000},{"alt":null,"id":23889802133603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e1e54705eb6624f4749a762688efdadb2337ba_600227a1-2c38-4c5d-80ab-c795a75ff58d.webp?v=1714889101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e1e54705eb6624f4749a762688efdadb2337ba_600227a1-2c38-4c5d-80ab-c795a75ff58d.webp?v=1714889101","width":2000},{"alt":null,"id":23889802756195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63871d16a6f4828cd6ed45af6b2c499a1b8935f_d21543f2-d657-4262-b21d-9bd3b80f3991.webp?v=1714889104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63871d16a6f4828cd6ed45af6b2c499a1b8935f_d21543f2-d657-4262-b21d-9bd3b80f3991.webp?v=1714889104","width":2000},{"alt":null,"id":23889803214947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d204200cf2ff1b9ce31a31c0528caa722eace9_79265b0c-73d9-4da8-8ba7-ac9a1cfb8f22.webp?v=1714889106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d204200cf2ff1b9ce31a31c0528caa722eace9_79265b0c-73d9-4da8-8ba7-ac9a1cfb8f22.webp?v=1714889106","width":2000},{"alt":null,"id":23889803739235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec3396f668cbe3377720ce488298b137dda31ec3_ed71639a-2f78-479e-8c03-7d325de91714.webp?v=1714889109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec3396f668cbe3377720ce488298b137dda31ec3_ed71639a-2f78-479e-8c03-7d325de91714.webp?v=1714889109","width":2000},{"alt":null,"id":23889804132451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ee4608c52227916a2b2c7773cc04910034af_4b73934a-0eaf-43ba-ac18-674a8a46ae0f.webp?v=1714889111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ee4608c52227916a2b2c7773cc04910034af_4b73934a-0eaf-43ba-ac18-674a8a46ae0f.webp?v=1714889111","width":2000},{"alt":null,"id":23889804689507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113","width":2000},{"alt":null,"id":23889805213795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116","width":2000},{"alt":null,"id":23889806000227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771157af2541acd74d1955a7fd6933bc8e6fde9a_c23dfab6-7332-442e-b6c8-8ab1e13b3a16.webp?v=1714889118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771157af2541acd74d1955a7fd6933bc8e6fde9a_c23dfab6-7332-442e-b6c8-8ab1e13b3a16.webp?v=1714889118","width":2000},{"alt":null,"id":23889806524515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5630d99b851aeb38ab69aab003fa1f210c284e_0a3c3ac9-2366-4e74-b9dd-cc35a1bbf5b6.webp?v=1714889120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5630d99b851aeb38ab69aab003fa1f210c284e_0a3c3ac9-2366-4e74-b9dd-cc35a1bbf5b6.webp?v=1714889120","width":2000},{"alt":null,"id":23889806950499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5748930ae84e9d64b6289135e993af98659a346f_254e66d5-d0bb-47fb-80b5-6a1f1ebc54fd.webp?v=1714889123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5748930ae84e9d64b6289135e993af98659a346f_254e66d5-d0bb-47fb-80b5-6a1f1ebc54fd.webp?v=1714889123","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903554297955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510535779,"product_id":7414032728163,"position":7,"created_at":"2024-05-05T14:05:13+08:00","updated_at":"2024-05-05T14:05:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113","variant_ids":[41903554297955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 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":"MPB0123224-PB24","featured_media":{"alt":null,"id":23889804689507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903554887779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31484511289443,"product_id":7414032728163,"position":8,"created_at":"2024-05-05T14:05:15+08:00","updated_at":"2024-05-05T14:05:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116","variant_ids":[41903554887779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 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":"MPB01232J5-PB24","featured_media":{"alt":null,"id":23889805213795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79feb04969cd1151c3c329a43004b4da7ed900d0_c010f5bf-541b-456a-9df0-4d380a8351d7.webp?v=1714889116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903554297955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510535779,"product_id":7414032728163,"position":7,"created_at":"2024-05-05T14:05:13+08:00","updated_at":"2024-05-05T14:05:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113","variant_ids":[41903554297955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 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":"MPB0123224-PB24","featured_media":{"alt":null,"id":23889804689507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7609eea48dd464d03c89e3b67e95d0717fa85c_ecf98571-5a05-4c92-9f05-734e435ed6d8.webp?v=1714889113"}},"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: "停產" }