$product = {"id":7414048489571,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 死星-線稿風格","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb75","description":null,"published_at":"2024-06-11T17:48:32+08:00","created_at":"2024-05-05T14:06:45+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":41903722594403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31484556017763,"product_id":7414048489571,"position":4,"created_at":"2024-05-05T14:06:55+08:00","updated_at":"2024-05-05T14:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215","variant_ids":[41903722594403]},"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-PB75","featured_media":{"alt":null,"id":23889851318371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903723085923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31484549857379,"product_id":7414048489571,"position":1,"created_at":"2024-05-05T14:06:47+08:00","updated_at":"2024-05-05T14:06:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207","variant_ids":[41903723085923]},"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-PB75","featured_media":{"alt":null,"id":23889845420131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c4e636fb19375b9fcced9ef439c1e11138f8930_63d8e7fc-6773-4c8e-947a-7f52ae679f7e.webp?v=1714889210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996c744d7842125ee598f08860ddd52b9f943a9_e85860b0-35b9-4e2c-aeff-78388f764955.webp?v=1714889212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c04d3a1f5247d003887df41112d50320cf8035_2fb0a8ce-e4a9-4083-8a9f-8709dad337d6.webp?v=1714889217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3c586af64ce2e8c26018362319d846345ee998_fa63167d-dbc3-435c-9fad-b4f4d1dc0a38.webp?v=1714889220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b57b69a5fbac03bd1c8250b9949d9ba54506d852_a12991f4-06dd-43b6-9c80-24aa3de6d010.webp?v=1714889222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4dc6a177356ef9ac78c5d4affe75a1bcd4fe49_72f79764-601c-4c07-8deb-675d6f055680.webp?v=1714889224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d858e5ce61bfaf8c1d359b15d8473388dbc3c4aa_1164ed9e-7fe1-4662-9e09-4d54d53128b3.webp?v=1714889227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461dd0441a69e60ec08989a85cd5908764cf3765_eb049cea-c90c-402b-a50e-312f078c7a1f.webp?v=1714889229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e520102fcba6a15c053d4d8978c888708c1213_4ba1420c-eafc-4ec3-950d-3d03bc3a3057.webp?v=1714889232"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207","options":["color"],"media":[{"alt":null,"id":23889845420131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207","width":2000},{"alt":null,"id":23889847582819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c4e636fb19375b9fcced9ef439c1e11138f8930_63d8e7fc-6773-4c8e-947a-7f52ae679f7e.webp?v=1714889210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c4e636fb19375b9fcced9ef439c1e11138f8930_63d8e7fc-6773-4c8e-947a-7f52ae679f7e.webp?v=1714889210","width":2000},{"alt":null,"id":23889849548899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996c744d7842125ee598f08860ddd52b9f943a9_e85860b0-35b9-4e2c-aeff-78388f764955.webp?v=1714889212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996c744d7842125ee598f08860ddd52b9f943a9_e85860b0-35b9-4e2c-aeff-78388f764955.webp?v=1714889212","width":2000},{"alt":null,"id":23889851318371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215","width":2000},{"alt":null,"id":23889853022307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c04d3a1f5247d003887df41112d50320cf8035_2fb0a8ce-e4a9-4083-8a9f-8709dad337d6.webp?v=1714889217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c04d3a1f5247d003887df41112d50320cf8035_2fb0a8ce-e4a9-4083-8a9f-8709dad337d6.webp?v=1714889217","width":2000},{"alt":null,"id":23889854988387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3c586af64ce2e8c26018362319d846345ee998_fa63167d-dbc3-435c-9fad-b4f4d1dc0a38.webp?v=1714889220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3c586af64ce2e8c26018362319d846345ee998_fa63167d-dbc3-435c-9fad-b4f4d1dc0a38.webp?v=1714889220","width":2000},{"alt":null,"id":23889856659555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b57b69a5fbac03bd1c8250b9949d9ba54506d852_a12991f4-06dd-43b6-9c80-24aa3de6d010.webp?v=1714889222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b57b69a5fbac03bd1c8250b9949d9ba54506d852_a12991f4-06dd-43b6-9c80-24aa3de6d010.webp?v=1714889222","width":2000},{"alt":null,"id":23889858199651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4dc6a177356ef9ac78c5d4affe75a1bcd4fe49_72f79764-601c-4c07-8deb-675d6f055680.webp?v=1714889224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4dc6a177356ef9ac78c5d4affe75a1bcd4fe49_72f79764-601c-4c07-8deb-675d6f055680.webp?v=1714889224","width":2000},{"alt":null,"id":23889859772515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d858e5ce61bfaf8c1d359b15d8473388dbc3c4aa_1164ed9e-7fe1-4662-9e09-4d54d53128b3.webp?v=1714889227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d858e5ce61bfaf8c1d359b15d8473388dbc3c4aa_1164ed9e-7fe1-4662-9e09-4d54d53128b3.webp?v=1714889227","width":2000},{"alt":null,"id":23889861541987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461dd0441a69e60ec08989a85cd5908764cf3765_eb049cea-c90c-402b-a50e-312f078c7a1f.webp?v=1714889229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461dd0441a69e60ec08989a85cd5908764cf3765_eb049cea-c90c-402b-a50e-312f078c7a1f.webp?v=1714889229","width":2000},{"alt":null,"id":23889863376995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e520102fcba6a15c053d4d8978c888708c1213_4ba1420c-eafc-4ec3-950d-3d03bc3a3057.webp?v=1714889232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e520102fcba6a15c053d4d8978c888708c1213_4ba1420c-eafc-4ec3-950d-3d03bc3a3057.webp?v=1714889232","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903722594403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31484556017763,"product_id":7414048489571,"position":4,"created_at":"2024-05-05T14:06:55+08:00","updated_at":"2024-05-05T14:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215","variant_ids":[41903722594403]},"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-PB75","featured_media":{"alt":null,"id":23889851318371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903723085923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31484549857379,"product_id":7414048489571,"position":1,"created_at":"2024-05-05T14:06:47+08:00","updated_at":"2024-05-05T14:06:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207","variant_ids":[41903723085923]},"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-PB75","featured_media":{"alt":null,"id":23889845420131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0a2f3f00122efb4fc6050a7483a04bca1fd47d_893497bb-264b-46a3-8685-6feb0ed72f06.webp?v=1714889207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903722594403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31484556017763,"product_id":7414048489571,"position":4,"created_at":"2024-05-05T14:06:55+08:00","updated_at":"2024-05-05T14:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215","variant_ids":[41903722594403]},"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-PB75","featured_media":{"alt":null,"id":23889851318371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374b73f7f63f2cdabe0072cd8b38c8dd270300a7_38e030bd-a23e-43f1-bb51-d3996e464cda.webp?v=1714889215"}},"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: "停產" }