$product = {"id":7411138232419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-15-plus-mod-nx-magsafe-printable-pc02","description":null,"published_at":"2024-06-11T17:37:18+08:00","created_at":"2024-05-04T22:50:27+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":41895345553507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479617683555,"product_id":7411138232419,"position":2,"created_at":"2024-05-04T22:50:32+08:00","updated_at":"2024-05-04T22:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232","variant_ids":[41895345553507]},"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-PC02","featured_media":{"alt":null,"id":23884865601635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895345815651,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479621156963,"product_id":7411138232419,"position":8,"created_at":"2024-05-04T22:50:49+08:00","updated_at":"2024-05-04T22:50:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249","variant_ids":[41895345815651]},"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-PC02","featured_media":{"alt":null,"id":23884869075043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5ca6fe5138bde3ef09999592373ec8b7650b62_92599019-6b6f-48bd-a020-78f58d28088f.webp?v=1714834230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369ae3643517ce551873129173a87cf4c887d8d0_0be7eeee-517a-491e-aa22-7c70487e1ba5.webp?v=1714834234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a7539bb4c9011ec666df83a70c28435c978b3_54f0fb5d-ea1f-4c22-b9ba-2de8654afe30.webp?v=1714834237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6780850a7a5e8728c06e795d7da48ae6cb5db5_03a9da6d-75f3-4504-b88e-9c13d4df31ba.webp?v=1714834239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fc1c0bddc969de7f1f5ac0ed7cc1336ad6c2b16_65f69f3d-9676-40ef-ae7b-cb26ce6191ad.webp?v=1714834244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d8123b65e110bea30d9988e350f954af46f7c_8f3ec671-86a1-49a5-8923-19a900487742.webp?v=1714834247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46255bb8744b03d7a910c2c2a285059fb2407ed8_237d74e9-e8f4-41f0-8da9-9564fcfa40ae.webp?v=1714834252"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5ca6fe5138bde3ef09999592373ec8b7650b62_92599019-6b6f-48bd-a020-78f58d28088f.webp?v=1714834230","options":["color"],"media":[{"alt":null,"id":23884865044579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5ca6fe5138bde3ef09999592373ec8b7650b62_92599019-6b6f-48bd-a020-78f58d28088f.webp?v=1714834230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5ca6fe5138bde3ef09999592373ec8b7650b62_92599019-6b6f-48bd-a020-78f58d28088f.webp?v=1714834230","width":2000},{"alt":null,"id":23884865601635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232","width":2000},{"alt":null,"id":23884866027619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369ae3643517ce551873129173a87cf4c887d8d0_0be7eeee-517a-491e-aa22-7c70487e1ba5.webp?v=1714834234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369ae3643517ce551873129173a87cf4c887d8d0_0be7eeee-517a-491e-aa22-7c70487e1ba5.webp?v=1714834234","width":2000},{"alt":null,"id":23884866519139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a7539bb4c9011ec666df83a70c28435c978b3_54f0fb5d-ea1f-4c22-b9ba-2de8654afe30.webp?v=1714834237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a7539bb4c9011ec666df83a70c28435c978b3_54f0fb5d-ea1f-4c22-b9ba-2de8654afe30.webp?v=1714834237","width":2000},{"alt":null,"id":23884866977891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6780850a7a5e8728c06e795d7da48ae6cb5db5_03a9da6d-75f3-4504-b88e-9c13d4df31ba.webp?v=1714834239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6780850a7a5e8728c06e795d7da48ae6cb5db5_03a9da6d-75f3-4504-b88e-9c13d4df31ba.webp?v=1714834239","width":2000},{"alt":null,"id":23884868026467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fc1c0bddc969de7f1f5ac0ed7cc1336ad6c2b16_65f69f3d-9676-40ef-ae7b-cb26ce6191ad.webp?v=1714834244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fc1c0bddc969de7f1f5ac0ed7cc1336ad6c2b16_65f69f3d-9676-40ef-ae7b-cb26ce6191ad.webp?v=1714834244","width":2000},{"alt":null,"id":23884868485219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d8123b65e110bea30d9988e350f954af46f7c_8f3ec671-86a1-49a5-8923-19a900487742.webp?v=1714834247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d8123b65e110bea30d9988e350f954af46f7c_8f3ec671-86a1-49a5-8923-19a900487742.webp?v=1714834247","width":2000},{"alt":null,"id":23884869075043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249","width":2000},{"alt":null,"id":23884869730403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46255bb8744b03d7a910c2c2a285059fb2407ed8_237d74e9-e8f4-41f0-8da9-9564fcfa40ae.webp?v=1714834252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46255bb8744b03d7a910c2c2a285059fb2407ed8_237d74e9-e8f4-41f0-8da9-9564fcfa40ae.webp?v=1714834252","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895345553507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479617683555,"product_id":7411138232419,"position":2,"created_at":"2024-05-04T22:50:32+08:00","updated_at":"2024-05-04T22:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232","variant_ids":[41895345553507]},"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-PC02","featured_media":{"alt":null,"id":23884865601635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895345815651,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479621156963,"product_id":7411138232419,"position":8,"created_at":"2024-05-04T22:50:49+08:00","updated_at":"2024-05-04T22:50:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249","variant_ids":[41895345815651]},"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-PC02","featured_media":{"alt":null,"id":23884869075043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617cf116fb8effa72b8e1e84c3abe0968f0b35e2_f29d5dd1-5964-4d7d-a207-abe68004f47c.webp?v=1714834249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895345553507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479617683555,"product_id":7411138232419,"position":2,"created_at":"2024-05-04T22:50:32+08:00","updated_at":"2024-05-04T22:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232","variant_ids":[41895345553507]},"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-PC02","featured_media":{"alt":null,"id":23884865601635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900c32614269250122c064d825ba7d1a07099c6a_d499da6c-6d3b-42eb-ac81-3a195a938bf8.webp?v=1714834232"}},"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: "停產" }