$product = {"id":7411022495843,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市","handle":"iphone-15-plus-mod-nx-magsafe-printable-sb19","description":null,"published_at":"2024-06-11T17:34:16+08:00","created_at":"2024-05-04T22:28:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41894198935651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31479310450787,"product_id":7411022495843,"position":4,"created_at":"2024-05-04T22:28:33+08:00","updated_at":"2024-05-04T22:28:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913","variant_ids":[41894198935651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市 - 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":"MPB0129624-SB19","featured_media":{"alt":null,"id":23884557680739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894199066723,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31479309238371,"product_id":7411022495843,"position":2,"created_at":"2024-05-04T22:28:29+08:00","updated_at":"2024-05-04T22:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909","variant_ids":[41894199066723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市 - 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":"MPB0129657-SB19","featured_media":{"alt":null,"id":23884556468323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d3d6482c9b55084d755578481cfb316f459cc8_77d83038-19e6-4a34-94db-9079e94f5b56.webp?v=1714832906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2e86c401633731791aa2d347b53ffebf33ab4b_fb6f7976-66e8-47fc-92c2-4d3a43a06647.webp?v=1714832911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d000c88968dbf5b6677b5abc6e5397d1534a4d_b204f752-3603-4a6a-b7fc-f87c3dbf62f6.webp?v=1714832916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858bb773619b5a9fa2bc7773cb0e6bb4beafc120_9cd73fde-ab90-4163-8374-d41ed7cc89d0.webp?v=1714832921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9572dbc17517229cdc5794ac9f52c649eae754a4_14dcdc3a-fcd8-4b94-b90a-41f694854364.webp?v=1714832923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a13bcef150a4a3ea04fff402ba4e528f97d1387_1045bd7e-4d43-4feb-9c93-98d2c7a32725.webp?v=1714832926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdaa08185852a0b8af61a622e41ad5eaed8e40c_a5c92d5c-b10b-43d7-9084-b61ba095c8cb.webp?v=1714832928"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d3d6482c9b55084d755578481cfb316f459cc8_77d83038-19e6-4a34-94db-9079e94f5b56.webp?v=1714832906","options":["color"],"media":[{"alt":null,"id":23884555550819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d3d6482c9b55084d755578481cfb316f459cc8_77d83038-19e6-4a34-94db-9079e94f5b56.webp?v=1714832906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d3d6482c9b55084d755578481cfb316f459cc8_77d83038-19e6-4a34-94db-9079e94f5b56.webp?v=1714832906","width":2000},{"alt":null,"id":23884556468323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909","width":2000},{"alt":null,"id":23884557189219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2e86c401633731791aa2d347b53ffebf33ab4b_fb6f7976-66e8-47fc-92c2-4d3a43a06647.webp?v=1714832911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2e86c401633731791aa2d347b53ffebf33ab4b_fb6f7976-66e8-47fc-92c2-4d3a43a06647.webp?v=1714832911","width":2000},{"alt":null,"id":23884557680739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913","width":2000},{"alt":null,"id":23884558237795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d000c88968dbf5b6677b5abc6e5397d1534a4d_b204f752-3603-4a6a-b7fc-f87c3dbf62f6.webp?v=1714832916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d000c88968dbf5b6677b5abc6e5397d1534a4d_b204f752-3603-4a6a-b7fc-f87c3dbf62f6.webp?v=1714832916","width":2000},{"alt":null,"id":23884559450211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858bb773619b5a9fa2bc7773cb0e6bb4beafc120_9cd73fde-ab90-4163-8374-d41ed7cc89d0.webp?v=1714832921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858bb773619b5a9fa2bc7773cb0e6bb4beafc120_9cd73fde-ab90-4163-8374-d41ed7cc89d0.webp?v=1714832921","width":2000},{"alt":null,"id":23884560072803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9572dbc17517229cdc5794ac9f52c649eae754a4_14dcdc3a-fcd8-4b94-b90a-41f694854364.webp?v=1714832923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9572dbc17517229cdc5794ac9f52c649eae754a4_14dcdc3a-fcd8-4b94-b90a-41f694854364.webp?v=1714832923","width":2000},{"alt":null,"id":23884560400483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a13bcef150a4a3ea04fff402ba4e528f97d1387_1045bd7e-4d43-4feb-9c93-98d2c7a32725.webp?v=1714832926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a13bcef150a4a3ea04fff402ba4e528f97d1387_1045bd7e-4d43-4feb-9c93-98d2c7a32725.webp?v=1714832926","width":2000},{"alt":null,"id":23884561055843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdaa08185852a0b8af61a622e41ad5eaed8e40c_a5c92d5c-b10b-43d7-9084-b61ba095c8cb.webp?v=1714832928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdaa08185852a0b8af61a622e41ad5eaed8e40c_a5c92d5c-b10b-43d7-9084-b61ba095c8cb.webp?v=1714832928","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894198935651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31479310450787,"product_id":7411022495843,"position":4,"created_at":"2024-05-04T22:28:33+08:00","updated_at":"2024-05-04T22:28:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913","variant_ids":[41894198935651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市 - 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":"MPB0129624-SB19","featured_media":{"alt":null,"id":23884557680739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894199066723,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31479309238371,"product_id":7411022495843,"position":2,"created_at":"2024-05-04T22:28:29+08:00","updated_at":"2024-05-04T22:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909","variant_ids":[41894199066723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市 - 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":"MPB0129657-SB19","featured_media":{"alt":null,"id":23884556468323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31719f02ac8371720afe60919a51b4ae8f49bf36_12e05907-bb92-43ba-8507-83071229af70.webp?v=1714832909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894198935651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31479310450787,"product_id":7411022495843,"position":4,"created_at":"2024-05-04T22:28:33+08:00","updated_at":"2024-05-04T22:28:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913","variant_ids":[41894198935651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 哥譚市 - 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":"MPB0129624-SB19","featured_media":{"alt":null,"id":23884557680739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faf54526aff0acbdb1b353adc02809d3a5f6f9d_9183e99f-ae96-4510-bd73-7f1fed51a37c.webp?v=1714832913"}},"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: "停產" }