$product = {"id":7416338120803,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 加納利群島在看","handle":"iphone-8-mod-nx-printable-af08","description":null,"published_at":"2024-06-11T16:56:18+08:00","created_at":"2024-05-06T14:37:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41918650482787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883663459,"product_id":7416338120803,"position":7,"created_at":"2024-05-06T14:37:41+08:00","updated_at":"2024-05-06T14:37:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461","variant_ids":[41918650482787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 加納利群島在看 - 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":"NPB0105424-AF08","featured_media":{"alt":null,"id":23897296502883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a476f961b1823c9f59b9087754790e6d621f6d3_eef04ee2-8a59-43eb-ab31-9d08182d7491.webp?v=1714977446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2359d334ebdd5f65c94f272495a304b719f533_c4940560-95a3-4a45-8fa5-8ff9c38338f9.webp?v=1714977448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d36ff3e2420fcf12770326e5c0e1c93162e449_3979da67-8f31-4589-9fa2-4c726694fd8e.webp?v=1714977451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789d1a7e59631c3882123ae6c861cd4fd9623b07_60a3bcb3-e0e0-4bb6-8d31-2f7a9d07454c.webp?v=1714977453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df520643a21e7f4cb99ffa6cc9fb7ec5aa56c64_ce30b96a-92f8-45c0-b832-106f2bbf4984.webp?v=1714977456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c7d0812a7e9a38bef472210992c6ca3a04535b_f94b160d-eb1b-463e-b1db-3619a47647cc.webp?v=1714977458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207fefd2cb5df23c10b1670cce1c9aa8c6552dd3_59a01e59-812b-4843-bae3-0bb329ef9262.webp?v=1714977463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e307ed9cbaa967c45bfd9c32bf4bfa9ec8d2d0_fa3c86d7-76c5-4be6-a879-4a725b3ae44a.webp?v=1714977466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6250d5a0a36e7e9a75414a4d38e49c9a4cee3de_c8328656-0077-464c-9339-7ba536f68508.webp?v=1714977468"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a476f961b1823c9f59b9087754790e6d621f6d3_eef04ee2-8a59-43eb-ab31-9d08182d7491.webp?v=1714977446","options":["color"],"media":[{"alt":null,"id":23897291587683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a476f961b1823c9f59b9087754790e6d621f6d3_eef04ee2-8a59-43eb-ab31-9d08182d7491.webp?v=1714977446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a476f961b1823c9f59b9087754790e6d621f6d3_eef04ee2-8a59-43eb-ab31-9d08182d7491.webp?v=1714977446","width":2000},{"alt":null,"id":23897294176355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2359d334ebdd5f65c94f272495a304b719f533_c4940560-95a3-4a45-8fa5-8ff9c38338f9.webp?v=1714977448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2359d334ebdd5f65c94f272495a304b719f533_c4940560-95a3-4a45-8fa5-8ff9c38338f9.webp?v=1714977448","width":2000},{"alt":null,"id":23897294667875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d36ff3e2420fcf12770326e5c0e1c93162e449_3979da67-8f31-4589-9fa2-4c726694fd8e.webp?v=1714977451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d36ff3e2420fcf12770326e5c0e1c93162e449_3979da67-8f31-4589-9fa2-4c726694fd8e.webp?v=1714977451","width":2000},{"alt":null,"id":23897295126627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789d1a7e59631c3882123ae6c861cd4fd9623b07_60a3bcb3-e0e0-4bb6-8d31-2f7a9d07454c.webp?v=1714977453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789d1a7e59631c3882123ae6c861cd4fd9623b07_60a3bcb3-e0e0-4bb6-8d31-2f7a9d07454c.webp?v=1714977453","width":2000},{"alt":null,"id":23897295683683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df520643a21e7f4cb99ffa6cc9fb7ec5aa56c64_ce30b96a-92f8-45c0-b832-106f2bbf4984.webp?v=1714977456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df520643a21e7f4cb99ffa6cc9fb7ec5aa56c64_ce30b96a-92f8-45c0-b832-106f2bbf4984.webp?v=1714977456","width":2000},{"alt":null,"id":23897295945827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c7d0812a7e9a38bef472210992c6ca3a04535b_f94b160d-eb1b-463e-b1db-3619a47647cc.webp?v=1714977458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c7d0812a7e9a38bef472210992c6ca3a04535b_f94b160d-eb1b-463e-b1db-3619a47647cc.webp?v=1714977458","width":2000},{"alt":null,"id":23897296502883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461","width":2000},{"alt":null,"id":23897296896099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207fefd2cb5df23c10b1670cce1c9aa8c6552dd3_59a01e59-812b-4843-bae3-0bb329ef9262.webp?v=1714977463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/207fefd2cb5df23c10b1670cce1c9aa8c6552dd3_59a01e59-812b-4843-bae3-0bb329ef9262.webp?v=1714977463","width":2000},{"alt":null,"id":23897297485923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e307ed9cbaa967c45bfd9c32bf4bfa9ec8d2d0_fa3c86d7-76c5-4be6-a879-4a725b3ae44a.webp?v=1714977466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e307ed9cbaa967c45bfd9c32bf4bfa9ec8d2d0_fa3c86d7-76c5-4be6-a879-4a725b3ae44a.webp?v=1714977466","width":2000},{"alt":null,"id":23897297813603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6250d5a0a36e7e9a75414a4d38e49c9a4cee3de_c8328656-0077-464c-9339-7ba536f68508.webp?v=1714977468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6250d5a0a36e7e9a75414a4d38e49c9a4cee3de_c8328656-0077-464c-9339-7ba536f68508.webp?v=1714977468","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918650482787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883663459,"product_id":7416338120803,"position":7,"created_at":"2024-05-06T14:37:41+08:00","updated_at":"2024-05-06T14:37:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461","variant_ids":[41918650482787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 加納利群島在看 - 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":"NPB0105424-AF08","featured_media":{"alt":null,"id":23897296502883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918650482787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883663459,"product_id":7416338120803,"position":7,"created_at":"2024-05-06T14:37:41+08:00","updated_at":"2024-05-06T14:37:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461","variant_ids":[41918650482787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 加納利群島在看 - 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":"NPB0105424-AF08","featured_media":{"alt":null,"id":23897296502883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b041e51a79eda0aa07fb38fcb9ca4a0c554ab99_dc4214d5-0d76-47cf-8312-3b44bd38e341.webp?v=1714977461"}},"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: "停產" }