$product = {"id":7408487039075,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 在幹嘛","handle":"iphone-12-pro-max-mod-nx-printable-iv06","description":null,"published_at":"2024-06-11T16:38:36+08:00","created_at":"2024-05-03T15:36:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41886036885603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399876195,"product_id":7408487039075,"position":3,"created_at":"2024-05-03T15:36:19+08:00","updated_at":"2024-05-03T15:36:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779","variant_ids":[41886036885603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 在幹嘛 - 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":"NPB0118724-IV06","featured_media":{"alt":null,"id":23877316837475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa3b2e1d323385e92955e2966211ce00abed66_53add07d-7138-462c-a05d-85c723e90af4.webp?v=1714721774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871ff1cade14f2c0b0b768a74a1c8cc6ccc8bc9a_fd416f16-365e-4486-84d2-cc28e0a1e9df.webp?v=1714721777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b16b8b1e563347b3f5b2c9953727f70f63e7d5_052339ae-8ad1-4f35-aff7-a1bdce42fbcf.webp?v=1714721781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e57be747809c95b540fd7a63a49c5ef6d105d92_5019a491-e38a-4a62-b238-91578c1e8dbc.webp?v=1714721784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68777fdbcde79a4981b98065f008eccdf8d1051e_cd60d495-4f9f-4262-85d8-62f6667f6b6b.webp?v=1714721786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029cd9e0900701b5af78174940802fca56d221b2_b443f38d-dfb2-4a3a-b0bc-f14cd278ac01.webp?v=1714721789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ba4c881ae720427b30e20a0dc99629d643f1d3_3068382e-5f73-4c8f-966b-ae0c23b412e8.webp?v=1714721791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c4f20f91e4f6546dacb632b47529ac2f100f93_c79f7118-3ce0-4dba-8864-e8b35ba29aee.webp?v=1714721794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4012749c000c5966072ff0bc8a5fc6a627a652_44cfbfe4-45cc-4983-b27f-1905fcb5e9b6.webp?v=1714721796"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa3b2e1d323385e92955e2966211ce00abed66_53add07d-7138-462c-a05d-85c723e90af4.webp?v=1714721774","options":["color"],"media":[{"alt":null,"id":23877315788899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa3b2e1d323385e92955e2966211ce00abed66_53add07d-7138-462c-a05d-85c723e90af4.webp?v=1714721774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fa3b2e1d323385e92955e2966211ce00abed66_53add07d-7138-462c-a05d-85c723e90af4.webp?v=1714721774","width":2000},{"alt":null,"id":23877316247651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871ff1cade14f2c0b0b768a74a1c8cc6ccc8bc9a_fd416f16-365e-4486-84d2-cc28e0a1e9df.webp?v=1714721777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871ff1cade14f2c0b0b768a74a1c8cc6ccc8bc9a_fd416f16-365e-4486-84d2-cc28e0a1e9df.webp?v=1714721777","width":2000},{"alt":null,"id":23877316837475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779","width":2000},{"alt":null,"id":23877317328995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b16b8b1e563347b3f5b2c9953727f70f63e7d5_052339ae-8ad1-4f35-aff7-a1bdce42fbcf.webp?v=1714721781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98b16b8b1e563347b3f5b2c9953727f70f63e7d5_052339ae-8ad1-4f35-aff7-a1bdce42fbcf.webp?v=1714721781","width":2000},{"alt":null,"id":23877318312035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e57be747809c95b540fd7a63a49c5ef6d105d92_5019a491-e38a-4a62-b238-91578c1e8dbc.webp?v=1714721784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e57be747809c95b540fd7a63a49c5ef6d105d92_5019a491-e38a-4a62-b238-91578c1e8dbc.webp?v=1714721784","width":2000},{"alt":null,"id":23877319589987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68777fdbcde79a4981b98065f008eccdf8d1051e_cd60d495-4f9f-4262-85d8-62f6667f6b6b.webp?v=1714721786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68777fdbcde79a4981b98065f008eccdf8d1051e_cd60d495-4f9f-4262-85d8-62f6667f6b6b.webp?v=1714721786","width":2000},{"alt":null,"id":23877320081507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029cd9e0900701b5af78174940802fca56d221b2_b443f38d-dfb2-4a3a-b0bc-f14cd278ac01.webp?v=1714721789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029cd9e0900701b5af78174940802fca56d221b2_b443f38d-dfb2-4a3a-b0bc-f14cd278ac01.webp?v=1714721789","width":2000},{"alt":null,"id":23877320540259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ba4c881ae720427b30e20a0dc99629d643f1d3_3068382e-5f73-4c8f-966b-ae0c23b412e8.webp?v=1714721791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ba4c881ae720427b30e20a0dc99629d643f1d3_3068382e-5f73-4c8f-966b-ae0c23b412e8.webp?v=1714721791","width":2000},{"alt":null,"id":23877321195619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c4f20f91e4f6546dacb632b47529ac2f100f93_c79f7118-3ce0-4dba-8864-e8b35ba29aee.webp?v=1714721794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6c4f20f91e4f6546dacb632b47529ac2f100f93_c79f7118-3ce0-4dba-8864-e8b35ba29aee.webp?v=1714721794","width":2000},{"alt":null,"id":23877321654371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4012749c000c5966072ff0bc8a5fc6a627a652_44cfbfe4-45cc-4983-b27f-1905fcb5e9b6.webp?v=1714721796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4012749c000c5966072ff0bc8a5fc6a627a652_44cfbfe4-45cc-4983-b27f-1905fcb5e9b6.webp?v=1714721796","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886036885603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399876195,"product_id":7408487039075,"position":3,"created_at":"2024-05-03T15:36:19+08:00","updated_at":"2024-05-03T15:36:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779","variant_ids":[41886036885603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 在幹嘛 - 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":"NPB0118724-IV06","featured_media":{"alt":null,"id":23877316837475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886036885603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399876195,"product_id":7408487039075,"position":3,"created_at":"2024-05-03T15:36:19+08:00","updated_at":"2024-05-03T15:36:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779","variant_ids":[41886036885603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 在幹嘛 - 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":"NPB0118724-IV06","featured_media":{"alt":null,"id":23877316837475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc64f279fd69b63ea8059c309c49235d6b2796d_4ac5e9f9-d392-4866-a81a-87d32651ce55.webp?v=1714721779"}},"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: "停產" }