$product = {"id":7413989212259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb97","description":null,"published_at":"2024-06-11T17:47:01+08:00","created_at":"2024-05-05T13:56:26+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":41903051866211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400861283,"product_id":7413989212259,"position":1,"created_at":"2024-05-05T13:56:29+08:00","updated_at":"2024-05-05T13:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","variant_ids":[41903051866211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - 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-PB97","featured_media":{"alt":null,"id":23889694785635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903052161123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484402827363,"product_id":7413989212259,"position":5,"created_at":"2024-05-05T13:56:38+08:00","updated_at":"2024-05-05T13:56:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598","variant_ids":[41903052161123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - 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-PB97","featured_media":{"alt":null,"id":23889696784483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1e4a8d356b6260fd88e5f7b3b91730eee84e7_624d9a4c-a2d2-4206-a108-b65d721b6ef9.webp?v=1714888591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01af31f7a86acb50c8659a04a2d9572be6e3ebe4_ad4b7179-23fe-409f-a597-2d1f3b621f4e.webp?v=1714888593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b49cc0ab692ea08e135ea24f9ba39c4f3ddcd_2234d456-4ca3-4d8b-91ce-9cbdbddd77f3.webp?v=1714888596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b66bb23a3e8ad76839671d95ef1b61b76d666_3b5f59cc-bab8-438f-a9f8-b712c0cae369.webp?v=1714888600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30688aec6c9b39a2f40d256c833105f2f9939379_438e9481-39d2-422e-a365-c7fec67c2746.webp?v=1714888603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f082a024c4f23e27661374a6806f7a258527b200_378f904b-4244-456c-8c36-d43b2d80dffb.webp?v=1714888605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a70a1457a27130e2e70a068c46bb2731c68bb82_bd98c24c-17db-4fd0-b6cd-8c717efcf6b5.webp?v=1714888607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b72eebf333cb03cfd11e63a770e40e744ef7e2_407b14ff-365b-48c8-9107-e285b6546e4a.webp?v=1714888609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e55bfeab51e2adc6a10f68098a18e99c637e16_200ad23e-15d2-404b-a991-b0409e1e0ae5.webp?v=1714888611"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","options":["color"],"media":[{"alt":null,"id":23889694785635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","width":2000},{"alt":null,"id":23889695244387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1e4a8d356b6260fd88e5f7b3b91730eee84e7_624d9a4c-a2d2-4206-a108-b65d721b6ef9.webp?v=1714888591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1e4a8d356b6260fd88e5f7b3b91730eee84e7_624d9a4c-a2d2-4206-a108-b65d721b6ef9.webp?v=1714888591","width":2000},{"alt":null,"id":23889695899747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01af31f7a86acb50c8659a04a2d9572be6e3ebe4_ad4b7179-23fe-409f-a597-2d1f3b621f4e.webp?v=1714888593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01af31f7a86acb50c8659a04a2d9572be6e3ebe4_ad4b7179-23fe-409f-a597-2d1f3b621f4e.webp?v=1714888593","width":2000},{"alt":null,"id":23889696227427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b49cc0ab692ea08e135ea24f9ba39c4f3ddcd_2234d456-4ca3-4d8b-91ce-9cbdbddd77f3.webp?v=1714888596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b49cc0ab692ea08e135ea24f9ba39c4f3ddcd_2234d456-4ca3-4d8b-91ce-9cbdbddd77f3.webp?v=1714888596","width":2000},{"alt":null,"id":23889696784483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598","width":2000},{"alt":null,"id":23889697177699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b66bb23a3e8ad76839671d95ef1b61b76d666_3b5f59cc-bab8-438f-a9f8-b712c0cae369.webp?v=1714888600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b66bb23a3e8ad76839671d95ef1b61b76d666_3b5f59cc-bab8-438f-a9f8-b712c0cae369.webp?v=1714888600","width":2000},{"alt":null,"id":23889697636451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30688aec6c9b39a2f40d256c833105f2f9939379_438e9481-39d2-422e-a365-c7fec67c2746.webp?v=1714888603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30688aec6c9b39a2f40d256c833105f2f9939379_438e9481-39d2-422e-a365-c7fec67c2746.webp?v=1714888603","width":2000},{"alt":null,"id":23889698127971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f082a024c4f23e27661374a6806f7a258527b200_378f904b-4244-456c-8c36-d43b2d80dffb.webp?v=1714888605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f082a024c4f23e27661374a6806f7a258527b200_378f904b-4244-456c-8c36-d43b2d80dffb.webp?v=1714888605","width":2000},{"alt":null,"id":23889698553955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a70a1457a27130e2e70a068c46bb2731c68bb82_bd98c24c-17db-4fd0-b6cd-8c717efcf6b5.webp?v=1714888607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a70a1457a27130e2e70a068c46bb2731c68bb82_bd98c24c-17db-4fd0-b6cd-8c717efcf6b5.webp?v=1714888607","width":2000},{"alt":null,"id":23889698979939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b72eebf333cb03cfd11e63a770e40e744ef7e2_407b14ff-365b-48c8-9107-e285b6546e4a.webp?v=1714888609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b72eebf333cb03cfd11e63a770e40e744ef7e2_407b14ff-365b-48c8-9107-e285b6546e4a.webp?v=1714888609","width":2000},{"alt":null,"id":23889700290659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e55bfeab51e2adc6a10f68098a18e99c637e16_200ad23e-15d2-404b-a991-b0409e1e0ae5.webp?v=1714888611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e55bfeab51e2adc6a10f68098a18e99c637e16_200ad23e-15d2-404b-a991-b0409e1e0ae5.webp?v=1714888611","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903051866211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400861283,"product_id":7413989212259,"position":1,"created_at":"2024-05-05T13:56:29+08:00","updated_at":"2024-05-05T13:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","variant_ids":[41903051866211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - 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-PB97","featured_media":{"alt":null,"id":23889694785635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903052161123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484402827363,"product_id":7413989212259,"position":5,"created_at":"2024-05-05T13:56:38+08:00","updated_at":"2024-05-05T13:56:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598","variant_ids":[41903052161123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - 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-PB97","featured_media":{"alt":null,"id":23889696784483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e147e85e8cd9b38bb44be28e021702bbda3d0434_ae111a5a-2e8d-4c0b-bbae-ac3224590fea.webp?v=1714888598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903051866211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400861283,"product_id":7413989212259,"position":1,"created_at":"2024-05-05T13:56:29+08:00","updated_at":"2024-05-05T13:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589","variant_ids":[41903051866211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列 - 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-PB97","featured_media":{"alt":null,"id":23889694785635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed5da1c5580f5adab6ce6d42f9a9cfb97d5d825_1dd45f62-03c2-4cba-b90d-bc7b4492fa59.webp?v=1714888589"}},"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: "停產" }