$product = {"id":7414145843299,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb40","description":null,"published_at":"2024-06-11T17:49:25+08:00","created_at":"2024-05-05T14:12:53+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":41904427761763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484775039075,"product_id":7414145843299,"position":3,"created_at":"2024-05-05T14:13:00+08:00","updated_at":"2024-05-05T14:13:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580","variant_ids":[41904427761763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23890070274147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904428384355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484781690979,"product_id":7414145843299,"position":8,"created_at":"2024-05-05T14:13:11+08:00","updated_at":"2024-05-05T14:13:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591","variant_ids":[41904428384355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23890076958819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e2562c106872ca10a0bdee2ca2eb5c54b918a3_50ca5c25-7004-4341-9e12-e0dbdb6c8a45.webp?v=1714889576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fd8e74bc86a4b0e971c3daa6e89d24d020be47_da463d78-5cca-4040-ac7d-65648743f4c7.webp?v=1714889578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127ea5737ada3d8ffecadcfed9c922779532aed9_7fe40f39-0102-4d40-aef4-2246fbdd6e35.webp?v=1714889582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649e8942d1ffef31f5f28593d0f20684e20393e_29cb1be6-a5d6-4875-ac6e-3992c35157bd.webp?v=1714889584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3db4dff318df2c36d1d77a4640f0d9439a4dbc_14ede07a-f190-424b-9598-424763a5966b.webp?v=1714889587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a347fafb611c402dcfced257f1dd36f0102ec1_61d75ea5-4831-4a6c-ae16-1a0ebd02342d.webp?v=1714889589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79a558eea6c33d7bc81856a6cd5e9457b060235f_921c5d7c-492a-4867-9fc8-242340af0f04.webp?v=1714889593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f769d07e94b6fd843884dec01a63d2dba0761e1b_32d6deb3-b5ec-43b3-aa54-58c3275a7357.webp?v=1714889595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e95d07e5ee42fbe5396ef5ecf05aa661be75424_4d5d8254-1b36-4efe-ac98-9f04f1ace9e4.webp?v=1714889598"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e2562c106872ca10a0bdee2ca2eb5c54b918a3_50ca5c25-7004-4341-9e12-e0dbdb6c8a45.webp?v=1714889576","options":["color"],"media":[{"alt":null,"id":23890067456099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e2562c106872ca10a0bdee2ca2eb5c54b918a3_50ca5c25-7004-4341-9e12-e0dbdb6c8a45.webp?v=1714889576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e2562c106872ca10a0bdee2ca2eb5c54b918a3_50ca5c25-7004-4341-9e12-e0dbdb6c8a45.webp?v=1714889576","width":2000},{"alt":null,"id":23890068832355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fd8e74bc86a4b0e971c3daa6e89d24d020be47_da463d78-5cca-4040-ac7d-65648743f4c7.webp?v=1714889578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fd8e74bc86a4b0e971c3daa6e89d24d020be47_da463d78-5cca-4040-ac7d-65648743f4c7.webp?v=1714889578","width":2000},{"alt":null,"id":23890070274147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580","width":2000},{"alt":null,"id":23890071781475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127ea5737ada3d8ffecadcfed9c922779532aed9_7fe40f39-0102-4d40-aef4-2246fbdd6e35.webp?v=1714889582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127ea5737ada3d8ffecadcfed9c922779532aed9_7fe40f39-0102-4d40-aef4-2246fbdd6e35.webp?v=1714889582","width":2000},{"alt":null,"id":23890072993891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649e8942d1ffef31f5f28593d0f20684e20393e_29cb1be6-a5d6-4875-ac6e-3992c35157bd.webp?v=1714889584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649e8942d1ffef31f5f28593d0f20684e20393e_29cb1be6-a5d6-4875-ac6e-3992c35157bd.webp?v=1714889584","width":2000},{"alt":null,"id":23890074304611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3db4dff318df2c36d1d77a4640f0d9439a4dbc_14ede07a-f190-424b-9598-424763a5966b.webp?v=1714889587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3db4dff318df2c36d1d77a4640f0d9439a4dbc_14ede07a-f190-424b-9598-424763a5966b.webp?v=1714889587","width":2000},{"alt":null,"id":23890075713635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a347fafb611c402dcfced257f1dd36f0102ec1_61d75ea5-4831-4a6c-ae16-1a0ebd02342d.webp?v=1714889589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a347fafb611c402dcfced257f1dd36f0102ec1_61d75ea5-4831-4a6c-ae16-1a0ebd02342d.webp?v=1714889589","width":2000},{"alt":null,"id":23890076958819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591","width":2000},{"alt":null,"id":23890078433379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79a558eea6c33d7bc81856a6cd5e9457b060235f_921c5d7c-492a-4867-9fc8-242340af0f04.webp?v=1714889593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79a558eea6c33d7bc81856a6cd5e9457b060235f_921c5d7c-492a-4867-9fc8-242340af0f04.webp?v=1714889593","width":2000},{"alt":null,"id":23890079776867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f769d07e94b6fd843884dec01a63d2dba0761e1b_32d6deb3-b5ec-43b3-aa54-58c3275a7357.webp?v=1714889595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f769d07e94b6fd843884dec01a63d2dba0761e1b_32d6deb3-b5ec-43b3-aa54-58c3275a7357.webp?v=1714889595","width":2000},{"alt":null,"id":23890081022051,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e95d07e5ee42fbe5396ef5ecf05aa661be75424_4d5d8254-1b36-4efe-ac98-9f04f1ace9e4.webp?v=1714889598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e95d07e5ee42fbe5396ef5ecf05aa661be75424_4d5d8254-1b36-4efe-ac98-9f04f1ace9e4.webp?v=1714889598","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904427761763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484775039075,"product_id":7414145843299,"position":3,"created_at":"2024-05-05T14:13:00+08:00","updated_at":"2024-05-05T14:13:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580","variant_ids":[41904427761763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23890070274147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904428384355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484781690979,"product_id":7414145843299,"position":8,"created_at":"2024-05-05T14:13:11+08:00","updated_at":"2024-05-05T14:13:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591","variant_ids":[41904428384355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23890076958819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24c00e233be47758206e57aed5e2c7413445c26_acc67ff4-5e5a-4e0e-b1d9-7724eb06dbad.webp?v=1714889591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904427761763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31484775039075,"product_id":7414145843299,"position":3,"created_at":"2024-05-05T14:13:00+08:00","updated_at":"2024-05-05T14:13:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580","variant_ids":[41904427761763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - 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-PB40","featured_media":{"alt":null,"id":23890070274147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0ec8d6aec46000e76c151d0dec4a920ff14729_2a6de4ce-3d3f-461f-88ae-5280f88bf682.webp?v=1714889580"}},"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: "停產" }