$product = {"id":7414560915555,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb55","description":null,"published_at":"2024-06-11T17:52:02+08:00","created_at":"2024-05-05T14:30:28+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":41907381338211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485764272227,"product_id":7414560915555,"position":7,"created_at":"2024-05-05T14:30:45+08:00","updated_at":"2024-05-05T14:30:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645","variant_ids":[41907381338211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891093749859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907381633123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485757259875,"product_id":7414560915555,"position":2,"created_at":"2024-05-05T14:30:33+08:00","updated_at":"2024-05-05T14:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633","variant_ids":[41907381633123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891084804195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecf09cb917d2aae6f071c04127a80191ef9de3c_8c04d188-7ec7-416b-bf1c-391cd0df0c3e.webp?v=1714890631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f02924724383a7b8a725cdf63be942e2288bfa_dc304c0b-ba80-4174-ab20-da567a22eea4.webp?v=1714890635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43263576f4b45277135247f1d55346364447bd55_a031ec3c-368d-4fce-87ae-3399fa22c733.webp?v=1714890638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42794e38d04c207a6a3a130bc9094d675a265d3_957c254b-b24f-4623-a4e7-e599ccaa5d53.webp?v=1714890640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f917ee3c3a0eec05b1cf9e1c5b9cf8af69edc7_5c173d80-a0ee-4b5b-8456-dc66bc5e5b46.webp?v=1714890642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3bfb9af52d411435cddcdfb86a6f8dd21a801_2822f5bb-992e-4a8d-9649-837284473d23.webp?v=1714890647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f624ee62b95e23e3863c2d8ac4a92ba9eae76d7a_afd52789-f5e8-416d-8ce2-ec3fbb411ec5.webp?v=1714890649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bd30da520d65523771a90b21bf6e1e81b5bab1_ec07a4e4-900a-4d0f-bcb5-27088f3d2550.webp?v=1714890651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27a6a577d69befcd8bded14e888d4024e0e960b_72db6094-5570-4e51-a6db-5dcea93fd056.webp?v=1714890654"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecf09cb917d2aae6f071c04127a80191ef9de3c_8c04d188-7ec7-416b-bf1c-391cd0df0c3e.webp?v=1714890631","options":["color"],"media":[{"alt":null,"id":23891081232483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecf09cb917d2aae6f071c04127a80191ef9de3c_8c04d188-7ec7-416b-bf1c-391cd0df0c3e.webp?v=1714890631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecf09cb917d2aae6f071c04127a80191ef9de3c_8c04d188-7ec7-416b-bf1c-391cd0df0c3e.webp?v=1714890631","width":2000},{"alt":null,"id":23891084804195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633","width":2000},{"alt":null,"id":23891086671971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f02924724383a7b8a725cdf63be942e2288bfa_dc304c0b-ba80-4174-ab20-da567a22eea4.webp?v=1714890635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8f02924724383a7b8a725cdf63be942e2288bfa_dc304c0b-ba80-4174-ab20-da567a22eea4.webp?v=1714890635","width":2000},{"alt":null,"id":23891088506979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43263576f4b45277135247f1d55346364447bd55_a031ec3c-368d-4fce-87ae-3399fa22c733.webp?v=1714890638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43263576f4b45277135247f1d55346364447bd55_a031ec3c-368d-4fce-87ae-3399fa22c733.webp?v=1714890638","width":2000},{"alt":null,"id":23891090145379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42794e38d04c207a6a3a130bc9094d675a265d3_957c254b-b24f-4623-a4e7-e599ccaa5d53.webp?v=1714890640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42794e38d04c207a6a3a130bc9094d675a265d3_957c254b-b24f-4623-a4e7-e599ccaa5d53.webp?v=1714890640","width":2000},{"alt":null,"id":23891091849315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f917ee3c3a0eec05b1cf9e1c5b9cf8af69edc7_5c173d80-a0ee-4b5b-8456-dc66bc5e5b46.webp?v=1714890642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f917ee3c3a0eec05b1cf9e1c5b9cf8af69edc7_5c173d80-a0ee-4b5b-8456-dc66bc5e5b46.webp?v=1714890642","width":2000},{"alt":null,"id":23891093749859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645","width":2000},{"alt":null,"id":23891095683171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3bfb9af52d411435cddcdfb86a6f8dd21a801_2822f5bb-992e-4a8d-9649-837284473d23.webp?v=1714890647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3bfb9af52d411435cddcdfb86a6f8dd21a801_2822f5bb-992e-4a8d-9649-837284473d23.webp?v=1714890647","width":2000},{"alt":null,"id":23891097616483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f624ee62b95e23e3863c2d8ac4a92ba9eae76d7a_afd52789-f5e8-416d-8ce2-ec3fbb411ec5.webp?v=1714890649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f624ee62b95e23e3863c2d8ac4a92ba9eae76d7a_afd52789-f5e8-416d-8ce2-ec3fbb411ec5.webp?v=1714890649","width":2000},{"alt":null,"id":23891099320419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bd30da520d65523771a90b21bf6e1e81b5bab1_ec07a4e4-900a-4d0f-bcb5-27088f3d2550.webp?v=1714890651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bd30da520d65523771a90b21bf6e1e81b5bab1_ec07a4e4-900a-4d0f-bcb5-27088f3d2550.webp?v=1714890651","width":2000},{"alt":null,"id":23891101417571,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27a6a577d69befcd8bded14e888d4024e0e960b_72db6094-5570-4e51-a6db-5dcea93fd056.webp?v=1714890654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27a6a577d69befcd8bded14e888d4024e0e960b_72db6094-5570-4e51-a6db-5dcea93fd056.webp?v=1714890654","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907381338211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485764272227,"product_id":7414560915555,"position":7,"created_at":"2024-05-05T14:30:45+08:00","updated_at":"2024-05-05T14:30:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645","variant_ids":[41907381338211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891093749859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907381633123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485757259875,"product_id":7414560915555,"position":2,"created_at":"2024-05-05T14:30:33+08:00","updated_at":"2024-05-05T14:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633","variant_ids":[41907381633123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891084804195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48b5af2de9ebf29621e850af3579d73e1cbcbb3_00ec46e2-99bb-49a6-82c2-2c8954414daa.webp?v=1714890633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907381338211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485764272227,"product_id":7414560915555,"position":7,"created_at":"2024-05-05T14:30:45+08:00","updated_at":"2024-05-05T14:30:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645","variant_ids":[41907381338211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891093749859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3a363fb440096220cb77e4677b2dd135bcb553_f74b6dd3-4641-401d-8611-1f01fd22b543.webp?v=1714890645"}},"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: "停產" }