$product = {"id":7414683828323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv02","description":null,"published_at":"2024-06-11T17:53:06+08:00","created_at":"2024-05-05T14:37:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41908284915811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31486031069283,"product_id":7414683828323,"position":8,"created_at":"2024-05-05T14:38:15+08:00","updated_at":"2024-05-05T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095","variant_ids":[41908284915811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV02","featured_media":{"alt":null,"id":23891366608995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908285210723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31486035624035,"product_id":7414683828323,"position":11,"created_at":"2024-05-05T14:38:23+08:00","updated_at":"2024-05-05T14:38:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103","variant_ids":[41908285210723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-IV02","featured_media":{"alt":null,"id":23891371163747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8150236818d715ec00ab9976a7ecefb25367b96_48e90e62-6e8e-4e46-9a8c-da5eb41ed289.webp?v=1714891079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a9f7ccfb147feda5293074624c214ad87184a6_2b2e7648-f758-41ab-85f0-cc23a226b98e.webp?v=1714891082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e754a2330adb2d8ac12e6af49d78539485597511_0b428802-56a9-4a23-b4f3-43bd7b935fcc.webp?v=1714891084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c2f9f10b715909e1917ea8b2b8f34c61c61011_3f58ddee-69fb-47da-8c43-4fa830f2a2be.webp?v=1714891086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d93c716f50677ae0610dd00934849e43bccd4d_76e370a8-0167-420f-82c1-949ceb3b6e6b.webp?v=1714891089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857bfc044a1a01296fc19b4562fc51ac9c34815_038f75bc-d29c-44a1-bf19-0bfdc0198937.webp?v=1714891091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620b9040ebaf8586ddf2a97cd78f17964d31ef49_d20bf89d-edca-45ab-96fd-fa748353d5b5.webp?v=1714891093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17473361d78f77c8dc7f4dbfcc873784dcbbd5b_d7c81a47-d6a5-4529-95b0-f4b3bc7c41c1.webp?v=1714891098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beef8a1fb809a31175911993ac0569cfdd67ab82_4069b787-4e43-4b90-8a75-6f961a92f84f.webp?v=1714891100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8150236818d715ec00ab9976a7ecefb25367b96_48e90e62-6e8e-4e46-9a8c-da5eb41ed289.webp?v=1714891079","options":["color"],"media":[{"alt":null,"id":23891354255459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8150236818d715ec00ab9976a7ecefb25367b96_48e90e62-6e8e-4e46-9a8c-da5eb41ed289.webp?v=1714891079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8150236818d715ec00ab9976a7ecefb25367b96_48e90e62-6e8e-4e46-9a8c-da5eb41ed289.webp?v=1714891079","width":2000},{"alt":null,"id":23891356057699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a9f7ccfb147feda5293074624c214ad87184a6_2b2e7648-f758-41ab-85f0-cc23a226b98e.webp?v=1714891082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a9f7ccfb147feda5293074624c214ad87184a6_2b2e7648-f758-41ab-85f0-cc23a226b98e.webp?v=1714891082","width":2000},{"alt":null,"id":23891358285923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e754a2330adb2d8ac12e6af49d78539485597511_0b428802-56a9-4a23-b4f3-43bd7b935fcc.webp?v=1714891084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e754a2330adb2d8ac12e6af49d78539485597511_0b428802-56a9-4a23-b4f3-43bd7b935fcc.webp?v=1714891084","width":2000},{"alt":null,"id":23891360022627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c2f9f10b715909e1917ea8b2b8f34c61c61011_3f58ddee-69fb-47da-8c43-4fa830f2a2be.webp?v=1714891086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c2f9f10b715909e1917ea8b2b8f34c61c61011_3f58ddee-69fb-47da-8c43-4fa830f2a2be.webp?v=1714891086","width":2000},{"alt":null,"id":23891361759331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d93c716f50677ae0610dd00934849e43bccd4d_76e370a8-0167-420f-82c1-949ceb3b6e6b.webp?v=1714891089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d93c716f50677ae0610dd00934849e43bccd4d_76e370a8-0167-420f-82c1-949ceb3b6e6b.webp?v=1714891089","width":2000},{"alt":null,"id":23891363496035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857bfc044a1a01296fc19b4562fc51ac9c34815_038f75bc-d29c-44a1-bf19-0bfdc0198937.webp?v=1714891091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857bfc044a1a01296fc19b4562fc51ac9c34815_038f75bc-d29c-44a1-bf19-0bfdc0198937.webp?v=1714891091","width":2000},{"alt":null,"id":23891365068899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620b9040ebaf8586ddf2a97cd78f17964d31ef49_d20bf89d-edca-45ab-96fd-fa748353d5b5.webp?v=1714891093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620b9040ebaf8586ddf2a97cd78f17964d31ef49_d20bf89d-edca-45ab-96fd-fa748353d5b5.webp?v=1714891093","width":2000},{"alt":null,"id":23891366608995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095","width":2000},{"alt":null,"id":23891368018019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17473361d78f77c8dc7f4dbfcc873784dcbbd5b_d7c81a47-d6a5-4529-95b0-f4b3bc7c41c1.webp?v=1714891098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17473361d78f77c8dc7f4dbfcc873784dcbbd5b_d7c81a47-d6a5-4529-95b0-f4b3bc7c41c1.webp?v=1714891098","width":2000},{"alt":null,"id":23891369721955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beef8a1fb809a31175911993ac0569cfdd67ab82_4069b787-4e43-4b90-8a75-6f961a92f84f.webp?v=1714891100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beef8a1fb809a31175911993ac0569cfdd67ab82_4069b787-4e43-4b90-8a75-6f961a92f84f.webp?v=1714891100","width":2000},{"alt":null,"id":23891371163747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41908284915811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31486031069283,"product_id":7414683828323,"position":8,"created_at":"2024-05-05T14:38:15+08:00","updated_at":"2024-05-05T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095","variant_ids":[41908284915811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV02","featured_media":{"alt":null,"id":23891366608995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908285210723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31486035624035,"product_id":7414683828323,"position":11,"created_at":"2024-05-05T14:38:23+08:00","updated_at":"2024-05-05T14:38:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103","variant_ids":[41908285210723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-IV02","featured_media":{"alt":null,"id":23891371163747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1aee73e69ee46f4f37faf48a1138021ff50288_39a15e1b-944a-4cbd-927b-6c09ee90d423.webp?v=1714891103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41908284915811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31486031069283,"product_id":7414683828323,"position":8,"created_at":"2024-05-05T14:38:15+08:00","updated_at":"2024-05-05T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095","variant_ids":[41908284915811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV02","featured_media":{"alt":null,"id":23891366608995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e726118116a220e179c69e7a75e164823fa7f047_114b623d-98af-4ab1-bcb6-765c4854a648.webp?v=1714891095"}},"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: "停產" }