$product = {"id":7414163505251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星球大戰-貼紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb98","description":null,"published_at":"2024-06-11T17:49:32+08:00","created_at":"2024-05-05T14:13:44+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":41904553361507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31484813738083,"product_id":7414163505251,"position":4,"created_at":"2024-05-05T14:13:54+08:00","updated_at":"2024-05-05T14:13:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634","variant_ids":[41904553361507]},"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-PB98","featured_media":{"alt":null,"id":23890109136995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904554049635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31484821045347,"product_id":7414163505251,"position":8,"created_at":"2024-05-05T14:14:04+08:00","updated_at":"2024-05-05T14:14:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644","variant_ids":[41904554049635]},"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-PB98","featured_media":{"alt":null,"id":23890116313187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e685972f6a824e573666d0ed51a7eaf4cc1d0f_ae62850c-9259-41ee-99e8-5e4cbf56419d.webp?v=1714889627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec291252cde8ab1b41fc84c4d19a836a57260ea_1bb425e9-df8a-4b69-827c-945ab5807ea0.webp?v=1714889629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcab09a8e6319cd087a7441258769a6f531a5fcf_7d50e719-001b-4186-a6ef-bcbff0eaff66.webp?v=1714889632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1966e01b777af454c366f7251310b62031b9be_6c614d6b-dbfa-4c60-a53b-651703f12d11.webp?v=1714889637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb76c1b6105cfe704ae51b84fd40ce8a10abf94_501eb504-8ba2-4013-9c56-63311befe328.webp?v=1714889639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91c0759113c254cf577ed5739d8ef393617aac3_271d3a1a-27b1-4957-9158-456d3f45b254.webp?v=1714889642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9871573e56a61e54ea8192e6e01a6b77a00bc1_43ef4b06-e827-4f0c-b826-ead57984d86c.webp?v=1714889646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa16d7b0683f493efdc160000ad372b3525986ee_dca63dc2-a089-473a-a5d7-d33eb3359071.webp?v=1714889649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6234c808f99d6951b500081125f058c7b2d6f09_a7b2da27-1254-4b87-b8dc-35acb662debd.webp?v=1714889651"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e685972f6a824e573666d0ed51a7eaf4cc1d0f_ae62850c-9259-41ee-99e8-5e4cbf56419d.webp?v=1714889627","options":["color"],"media":[{"alt":null,"id":23890103861347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e685972f6a824e573666d0ed51a7eaf4cc1d0f_ae62850c-9259-41ee-99e8-5e4cbf56419d.webp?v=1714889627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e685972f6a824e573666d0ed51a7eaf4cc1d0f_ae62850c-9259-41ee-99e8-5e4cbf56419d.webp?v=1714889627","width":2000},{"alt":null,"id":23890105729123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec291252cde8ab1b41fc84c4d19a836a57260ea_1bb425e9-df8a-4b69-827c-945ab5807ea0.webp?v=1714889629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec291252cde8ab1b41fc84c4d19a836a57260ea_1bb425e9-df8a-4b69-827c-945ab5807ea0.webp?v=1714889629","width":2000},{"alt":null,"id":23890107727971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcab09a8e6319cd087a7441258769a6f531a5fcf_7d50e719-001b-4186-a6ef-bcbff0eaff66.webp?v=1714889632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcab09a8e6319cd087a7441258769a6f531a5fcf_7d50e719-001b-4186-a6ef-bcbff0eaff66.webp?v=1714889632","width":2000},{"alt":null,"id":23890109136995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634","width":2000},{"alt":null,"id":23890111365219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1966e01b777af454c366f7251310b62031b9be_6c614d6b-dbfa-4c60-a53b-651703f12d11.webp?v=1714889637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1966e01b777af454c366f7251310b62031b9be_6c614d6b-dbfa-4c60-a53b-651703f12d11.webp?v=1714889637","width":2000},{"alt":null,"id":23890112839779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb76c1b6105cfe704ae51b84fd40ce8a10abf94_501eb504-8ba2-4013-9c56-63311befe328.webp?v=1714889639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb76c1b6105cfe704ae51b84fd40ce8a10abf94_501eb504-8ba2-4013-9c56-63311befe328.webp?v=1714889639","width":2000},{"alt":null,"id":23890114412643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91c0759113c254cf577ed5739d8ef393617aac3_271d3a1a-27b1-4957-9158-456d3f45b254.webp?v=1714889642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91c0759113c254cf577ed5739d8ef393617aac3_271d3a1a-27b1-4957-9158-456d3f45b254.webp?v=1714889642","width":2000},{"alt":null,"id":23890116313187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644","width":2000},{"alt":null,"id":23890118082659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9871573e56a61e54ea8192e6e01a6b77a00bc1_43ef4b06-e827-4f0c-b826-ead57984d86c.webp?v=1714889646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9871573e56a61e54ea8192e6e01a6b77a00bc1_43ef4b06-e827-4f0c-b826-ead57984d86c.webp?v=1714889646","width":2000},{"alt":null,"id":23890119524451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa16d7b0683f493efdc160000ad372b3525986ee_dca63dc2-a089-473a-a5d7-d33eb3359071.webp?v=1714889649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa16d7b0683f493efdc160000ad372b3525986ee_dca63dc2-a089-473a-a5d7-d33eb3359071.webp?v=1714889649","width":2000},{"alt":null,"id":23890121719907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6234c808f99d6951b500081125f058c7b2d6f09_a7b2da27-1254-4b87-b8dc-35acb662debd.webp?v=1714889651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6234c808f99d6951b500081125f058c7b2d6f09_a7b2da27-1254-4b87-b8dc-35acb662debd.webp?v=1714889651","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904553361507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31484813738083,"product_id":7414163505251,"position":4,"created_at":"2024-05-05T14:13:54+08:00","updated_at":"2024-05-05T14:13:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634","variant_ids":[41904553361507]},"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-PB98","featured_media":{"alt":null,"id":23890109136995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904554049635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31484821045347,"product_id":7414163505251,"position":8,"created_at":"2024-05-05T14:14:04+08:00","updated_at":"2024-05-05T14:14:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644","variant_ids":[41904554049635]},"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-PB98","featured_media":{"alt":null,"id":23890116313187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b142e0b7bee33d2abe1b18c9d9d0057038958389_dbdd1baa-c3c8-42e0-a8d3-1be1f598fbe5.webp?v=1714889644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904553361507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31484813738083,"product_id":7414163505251,"position":4,"created_at":"2024-05-05T14:13:54+08:00","updated_at":"2024-05-05T14:13:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634","variant_ids":[41904553361507]},"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-PB98","featured_media":{"alt":null,"id":23890109136995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ac4df2c7052bfcff4339d33a45399837a21f7c7_a13c0f77-e478-446c-baed-c5f452dc4900.webp?v=1714889634"}},"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: "停產" }