$product = {"id":7407858942051,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-14-pro-mod-nx-printable-rl01","description":null,"published_at":"2024-06-11T16:24:49+08:00","created_at":"2024-05-03T11:04:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-twenty-one-point-five","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41879723737187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470553727075,"product_id":7407858942051,"position":5,"created_at":"2024-05-03T11:04:12+08:00","updated_at":"2024-05-03T11:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452","variant_ids":[41879723737187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-RL01","featured_media":{"alt":null,"id":23875457581155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879723802723,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470556414051,"product_id":7407858942051,"position":10,"created_at":"2024-05-03T11:04:25+08:00","updated_at":"2024-05-03T11:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465","variant_ids":[41879723802723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-RL01","featured_media":{"alt":null,"id":23875460268131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879724032099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470555168867,"product_id":7407858942051,"position":8,"created_at":"2024-05-03T11:04:20+08:00","updated_at":"2024-05-03T11:04:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460","variant_ids":[41879724032099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-RL01","featured_media":{"alt":null,"id":23875459022947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69bb9ee258ef52305aad47718dd7f32a78743f4c_886ce0db-d3a8-4ea8-beae-637a0039c57b.webp?v=1714705443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cf108ecac0685b6d644cf9c28277e27d56b5d9_65ee15de-a187-452f-9b77-3c3212416ce5.webp?v=1714705445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6c43c9144c67eb8a5ddd0adebe4b9e39fd001a_d8fa8e18-4e3d-4301-8a34-f69c3f9a5783.webp?v=1714705448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3117413d7a992b9ffcf5002ebdb66b33035795f_696d8c94-282f-4500-b867-fe559c613f79.webp?v=1714705450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a8c0a748bbe96fbea1c4f6d158c9ed1ec8e657e_39cb4388-02fb-496c-b11c-90c84b275a3b.webp?v=1714705455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ee6e625a121e8af7a69f05380d80c638e51575_a87cdde2-3f95-4329-b517-46754b2e64d1.webp?v=1714705457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4456789bf31e242b51b8a71a379bc56ed0c026_1e3baf44-6fcc-4d99-a8b7-86775103b558.webp?v=1714705462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69bb9ee258ef52305aad47718dd7f32a78743f4c_886ce0db-d3a8-4ea8-beae-637a0039c57b.webp?v=1714705443","options":["color"],"media":[{"alt":null,"id":23875455680611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69bb9ee258ef52305aad47718dd7f32a78743f4c_886ce0db-d3a8-4ea8-beae-637a0039c57b.webp?v=1714705443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69bb9ee258ef52305aad47718dd7f32a78743f4c_886ce0db-d3a8-4ea8-beae-637a0039c57b.webp?v=1714705443","width":2000},{"alt":null,"id":23875456270435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cf108ecac0685b6d644cf9c28277e27d56b5d9_65ee15de-a187-452f-9b77-3c3212416ce5.webp?v=1714705445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cf108ecac0685b6d644cf9c28277e27d56b5d9_65ee15de-a187-452f-9b77-3c3212416ce5.webp?v=1714705445","width":2000},{"alt":null,"id":23875456696419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6c43c9144c67eb8a5ddd0adebe4b9e39fd001a_d8fa8e18-4e3d-4301-8a34-f69c3f9a5783.webp?v=1714705448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b6c43c9144c67eb8a5ddd0adebe4b9e39fd001a_d8fa8e18-4e3d-4301-8a34-f69c3f9a5783.webp?v=1714705448","width":2000},{"alt":null,"id":23875457155171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3117413d7a992b9ffcf5002ebdb66b33035795f_696d8c94-282f-4500-b867-fe559c613f79.webp?v=1714705450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3117413d7a992b9ffcf5002ebdb66b33035795f_696d8c94-282f-4500-b867-fe559c613f79.webp?v=1714705450","width":2000},{"alt":null,"id":23875457581155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452","width":2000},{"alt":null,"id":23875458072675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a8c0a748bbe96fbea1c4f6d158c9ed1ec8e657e_39cb4388-02fb-496c-b11c-90c84b275a3b.webp?v=1714705455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a8c0a748bbe96fbea1c4f6d158c9ed1ec8e657e_39cb4388-02fb-496c-b11c-90c84b275a3b.webp?v=1714705455","width":2000},{"alt":null,"id":23875458531427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ee6e625a121e8af7a69f05380d80c638e51575_a87cdde2-3f95-4329-b517-46754b2e64d1.webp?v=1714705457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ee6e625a121e8af7a69f05380d80c638e51575_a87cdde2-3f95-4329-b517-46754b2e64d1.webp?v=1714705457","width":2000},{"alt":null,"id":23875459022947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460","width":2000},{"alt":null,"id":23875459547235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4456789bf31e242b51b8a71a379bc56ed0c026_1e3baf44-6fcc-4d99-a8b7-86775103b558.webp?v=1714705462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4456789bf31e242b51b8a71a379bc56ed0c026_1e3baf44-6fcc-4d99-a8b7-86775103b558.webp?v=1714705462","width":2000},{"alt":null,"id":23875460268131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879723737187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470553727075,"product_id":7407858942051,"position":5,"created_at":"2024-05-03T11:04:12+08:00","updated_at":"2024-05-03T11:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452","variant_ids":[41879723737187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-RL01","featured_media":{"alt":null,"id":23875457581155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879723802723,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470556414051,"product_id":7407858942051,"position":10,"created_at":"2024-05-03T11:04:25+08:00","updated_at":"2024-05-03T11:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465","variant_ids":[41879723802723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-RL01","featured_media":{"alt":null,"id":23875460268131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836fb805752da7ca983525753858a470fbf8edb_910470bb-d4a0-43f6-9e97-213a53b53bb4.webp?v=1714705465"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879724032099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470555168867,"product_id":7407858942051,"position":8,"created_at":"2024-05-03T11:04:20+08:00","updated_at":"2024-05-03T11:04:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460","variant_ids":[41879724032099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-RL01","featured_media":{"alt":null,"id":23875459022947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2d9cdcba4686853dc9357a316ca947355b181f1_6bec3181-5dd1-42ab-b69e-b5498e322705.webp?v=1714705460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879723737187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470553727075,"product_id":7407858942051,"position":5,"created_at":"2024-05-03T11:04:12+08:00","updated_at":"2024-05-03T11:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452","variant_ids":[41879723737187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-RL01","featured_media":{"alt":null,"id":23875457581155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6279c53668c354790c6a25f2cd3464aa378ec0_34efa62b-221a-4109-9ca6-29079b88e28f.webp?v=1714705452"}},"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: "停產" }