$product = {"id":7414581592163,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:52:18+08:00","created_at":"2024-05-05T14:32:19+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 mini","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":41907550453859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485811359843,"product_id":7414581592163,"position":2,"created_at":"2024-05-05T14:32:24+08:00","updated_at":"2024-05-05T14:32:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744","variant_ids":[41907550453859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB72","featured_media":{"alt":null,"id":23891143884899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907550552163,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485817815139,"product_id":7414581592163,"position":8,"created_at":"2024-05-05T14:32:38+08:00","updated_at":"2024-05-05T14:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758","variant_ids":[41907550552163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB72","featured_media":{"alt":null,"id":23891152404579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907550781539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485821878371,"product_id":7414581592163,"position":10,"created_at":"2024-05-05T14:32:42+08:00","updated_at":"2024-05-05T14:32:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762","variant_ids":[41907550781539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB72","featured_media":{"alt":null,"id":23891156926563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799857764e171f995c73de1a8315c7467924260_e92f4b3e-47e7-4d5a-924c-ce6c03538a65.webp?v=1714890742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814f4ff0dd1cdb5d46b269d1258001d179e9c010_230e4c46-9737-40d9-a071-81ac5452fd8b.webp?v=1714890747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6e9790b7a3a45e1aed2802420ae85e39c94b81_89e5fde0-a9ef-4e3b-a230-290e62eff1f3.webp?v=1714890749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3620c776107134c536a172402b4427f406546_3d915300-7512-43f3-abb4-784a366a5323.webp?v=1714890751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eeefc9a6aac776e92f34f4055e1e3da1d682792_c9934306-d375-45b1-ac32-688c8b845d71.webp?v=1714890753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd4bf40baec1a7eefa047b74e168742e526ffff_a9f03533-1a40-4c1c-af64-3b2227da7ee7.webp?v=1714890756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f428532261459e1a597428c43c36c0071d82b9c9_347f3b5c-e1a4-43d1-b1f8-8750a208fddf.webp?v=1714890760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799857764e171f995c73de1a8315c7467924260_e92f4b3e-47e7-4d5a-924c-ce6c03538a65.webp?v=1714890742","options":["color"],"media":[{"alt":null,"id":23891143393379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799857764e171f995c73de1a8315c7467924260_e92f4b3e-47e7-4d5a-924c-ce6c03538a65.webp?v=1714890742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799857764e171f995c73de1a8315c7467924260_e92f4b3e-47e7-4d5a-924c-ce6c03538a65.webp?v=1714890742","width":2000},{"alt":null,"id":23891143884899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744","width":2000},{"alt":null,"id":23891144474723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814f4ff0dd1cdb5d46b269d1258001d179e9c010_230e4c46-9737-40d9-a071-81ac5452fd8b.webp?v=1714890747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814f4ff0dd1cdb5d46b269d1258001d179e9c010_230e4c46-9737-40d9-a071-81ac5452fd8b.webp?v=1714890747","width":2000},{"alt":null,"id":23891144835171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6e9790b7a3a45e1aed2802420ae85e39c94b81_89e5fde0-a9ef-4e3b-a230-290e62eff1f3.webp?v=1714890749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6e9790b7a3a45e1aed2802420ae85e39c94b81_89e5fde0-a9ef-4e3b-a230-290e62eff1f3.webp?v=1714890749","width":2000},{"alt":null,"id":23891146375267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3620c776107134c536a172402b4427f406546_3d915300-7512-43f3-abb4-784a366a5323.webp?v=1714890751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd3620c776107134c536a172402b4427f406546_3d915300-7512-43f3-abb4-784a366a5323.webp?v=1714890751","width":2000},{"alt":null,"id":23891148308579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eeefc9a6aac776e92f34f4055e1e3da1d682792_c9934306-d375-45b1-ac32-688c8b845d71.webp?v=1714890753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eeefc9a6aac776e92f34f4055e1e3da1d682792_c9934306-d375-45b1-ac32-688c8b845d71.webp?v=1714890753","width":2000},{"alt":null,"id":23891150602339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd4bf40baec1a7eefa047b74e168742e526ffff_a9f03533-1a40-4c1c-af64-3b2227da7ee7.webp?v=1714890756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd4bf40baec1a7eefa047b74e168742e526ffff_a9f03533-1a40-4c1c-af64-3b2227da7ee7.webp?v=1714890756","width":2000},{"alt":null,"id":23891152404579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758","width":2000},{"alt":null,"id":23891154534499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f428532261459e1a597428c43c36c0071d82b9c9_347f3b5c-e1a4-43d1-b1f8-8750a208fddf.webp?v=1714890760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f428532261459e1a597428c43c36c0071d82b9c9_347f3b5c-e1a4-43d1-b1f8-8750a208fddf.webp?v=1714890760","width":2000},{"alt":null,"id":23891156926563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907550453859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485811359843,"product_id":7414581592163,"position":2,"created_at":"2024-05-05T14:32:24+08:00","updated_at":"2024-05-05T14:32:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744","variant_ids":[41907550453859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB72","featured_media":{"alt":null,"id":23891143884899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907550552163,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485817815139,"product_id":7414581592163,"position":8,"created_at":"2024-05-05T14:32:38+08:00","updated_at":"2024-05-05T14:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758","variant_ids":[41907550552163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB72","featured_media":{"alt":null,"id":23891152404579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5211040f25f5a444401fb4e9495bb935f5b52787_4b11199e-b037-4438-988f-9344682688d8.webp?v=1714890758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907550781539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485821878371,"product_id":7414581592163,"position":10,"created_at":"2024-05-05T14:32:42+08:00","updated_at":"2024-05-05T14:32:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762","variant_ids":[41907550781539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB72","featured_media":{"alt":null,"id":23891156926563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42616b114b396ceb89e7aaf323c96836134b68dd_acfa6cbd-a4d8-4468-bf9a-811f23446ffb.webp?v=1714890762"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907550453859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31485811359843,"product_id":7414581592163,"position":2,"created_at":"2024-05-05T14:32:24+08:00","updated_at":"2024-05-05T14:32:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744","variant_ids":[41907550453859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB72","featured_media":{"alt":null,"id":23891143884899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89aa5f9881985c75b7f0c816573b1940953c1225_8093db78-0384-4983-836d-95c2e5dbcefe.webp?v=1714890744"}},"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: "停產" }