$product = {"id":7410983174243,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb36","description":null,"published_at":"2024-06-11T17:33:12+08:00","created_at":"2024-05-04T22:21:11+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 15 Plus","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":41893811912803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479214407779,"product_id":7410983174243,"position":9,"created_at":"2024-05-04T22:21:31+08:00","updated_at":"2024-05-04T22:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491","variant_ids":[41893811912803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB36","featured_media":{"alt":null,"id":23884461506659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893812043875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479211163747,"product_id":7410983174243,"position":2,"created_at":"2024-05-04T22:21:16+08:00","updated_at":"2024-05-04T22:21:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476","variant_ids":[41893812043875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB36","featured_media":{"alt":null,"id":23884458295395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae58b1a76686bae12f0ea7dc0e4b4cbf2c2658ff_6f26c3f8-1179-4a75-b2e7-df4a13f696d3.webp?v=1714832474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df75a673912c63e07fe74c71f4b8c53cfef55d66_a700d274-3820-4dca-a2dc-76304da26eb8.webp?v=1714832478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aab670653ed205bca95bfbf2b84d9ad1b01c48f_8bc3a87a-0970-4c0b-ad55-c0ee745da2ec.webp?v=1714832480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01beb31f732133d0de5116a1c6239659a793440_392132f0-31df-4da1-a9ba-264e5341d8cb.webp?v=1714832482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbf271e71df59b38ddd8340551bd46fa06c529e_f996ae07-cd5c-4ab9-8a2e-e8d69d7bb0d3.webp?v=1714832485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ceced91d5adf1fbd8847c1b7ea7bd5c88f76d7_c041f4d0-1fc8-4fd1-90fe-d1c831bf4faa.webp?v=1714832487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d88b48a89a01c15ec112b290c6301ea9ce34b3b6_7731ad99-2ff2-4671-b1c4-4956a467707c.webp?v=1714832489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4dcb76099fa8e85ac8493d938ef4f97b278a74_3ec1ac31-757e-40ff-9cd2-9a54411a3fe4.webp?v=1714832493"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae58b1a76686bae12f0ea7dc0e4b4cbf2c2658ff_6f26c3f8-1179-4a75-b2e7-df4a13f696d3.webp?v=1714832474","options":["color"],"media":[{"alt":null,"id":23884457869411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae58b1a76686bae12f0ea7dc0e4b4cbf2c2658ff_6f26c3f8-1179-4a75-b2e7-df4a13f696d3.webp?v=1714832474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae58b1a76686bae12f0ea7dc0e4b4cbf2c2658ff_6f26c3f8-1179-4a75-b2e7-df4a13f696d3.webp?v=1714832474","width":2000},{"alt":null,"id":23884458295395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476","width":2000},{"alt":null,"id":23884458688611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df75a673912c63e07fe74c71f4b8c53cfef55d66_a700d274-3820-4dca-a2dc-76304da26eb8.webp?v=1714832478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df75a673912c63e07fe74c71f4b8c53cfef55d66_a700d274-3820-4dca-a2dc-76304da26eb8.webp?v=1714832478","width":2000},{"alt":null,"id":23884459147363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aab670653ed205bca95bfbf2b84d9ad1b01c48f_8bc3a87a-0970-4c0b-ad55-c0ee745da2ec.webp?v=1714832480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aab670653ed205bca95bfbf2b84d9ad1b01c48f_8bc3a87a-0970-4c0b-ad55-c0ee745da2ec.webp?v=1714832480","width":2000},{"alt":null,"id":23884459638883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01beb31f732133d0de5116a1c6239659a793440_392132f0-31df-4da1-a9ba-264e5341d8cb.webp?v=1714832482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01beb31f732133d0de5116a1c6239659a793440_392132f0-31df-4da1-a9ba-264e5341d8cb.webp?v=1714832482","width":2000},{"alt":null,"id":23884460294243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbf271e71df59b38ddd8340551bd46fa06c529e_f996ae07-cd5c-4ab9-8a2e-e8d69d7bb0d3.webp?v=1714832485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbf271e71df59b38ddd8340551bd46fa06c529e_f996ae07-cd5c-4ab9-8a2e-e8d69d7bb0d3.webp?v=1714832485","width":2000},{"alt":null,"id":23884460589155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ceced91d5adf1fbd8847c1b7ea7bd5c88f76d7_c041f4d0-1fc8-4fd1-90fe-d1c831bf4faa.webp?v=1714832487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ceced91d5adf1fbd8847c1b7ea7bd5c88f76d7_c041f4d0-1fc8-4fd1-90fe-d1c831bf4faa.webp?v=1714832487","width":2000},{"alt":null,"id":23884461080675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d88b48a89a01c15ec112b290c6301ea9ce34b3b6_7731ad99-2ff2-4671-b1c4-4956a467707c.webp?v=1714832489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d88b48a89a01c15ec112b290c6301ea9ce34b3b6_7731ad99-2ff2-4671-b1c4-4956a467707c.webp?v=1714832489","width":2000},{"alt":null,"id":23884461506659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491","width":2000},{"alt":null,"id":23884461965411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4dcb76099fa8e85ac8493d938ef4f97b278a74_3ec1ac31-757e-40ff-9cd2-9a54411a3fe4.webp?v=1714832493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4dcb76099fa8e85ac8493d938ef4f97b278a74_3ec1ac31-757e-40ff-9cd2-9a54411a3fe4.webp?v=1714832493","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41893811912803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479214407779,"product_id":7410983174243,"position":9,"created_at":"2024-05-04T22:21:31+08:00","updated_at":"2024-05-04T22:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491","variant_ids":[41893811912803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB36","featured_media":{"alt":null,"id":23884461506659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893812043875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479211163747,"product_id":7410983174243,"position":2,"created_at":"2024-05-04T22:21:16+08:00","updated_at":"2024-05-04T22:21:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476","variant_ids":[41893812043875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB36","featured_media":{"alt":null,"id":23884458295395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0d67e4f912c134ec10a751b7c8bf7c56ddad2_5b2a45ee-b7c2-469b-b66d-8ea951ec4893.webp?v=1714832476"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41893811912803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479214407779,"product_id":7410983174243,"position":9,"created_at":"2024-05-04T22:21:31+08:00","updated_at":"2024-05-04T22:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491","variant_ids":[41893811912803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB36","featured_media":{"alt":null,"id":23884461506659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f290033594677ec3ce2b0dc13f0e43a4220f7840_9cb4f2cb-c977-4b71-9be3-4448eea0a743.webp?v=1714832491"}},"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: "停產" }