$product = {"id":7407528902755,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8","handle":"iphone-15-plus-mod-nx-printable-iv02","description":null,"published_at":"2024-06-11T16:18:21+08:00","created_at":"2024-05-03T10:04:58+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 15 Plus","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":41876001914979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469817528419,"product_id":7407528902755,"position":6,"created_at":"2024-05-03T10:05:16+08:00","updated_at":"2024-05-03T10:05:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916","variant_ids":[41876001914979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8 - 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":"NPB0129624-IV02","featured_media":{"alt":null,"id":23874719121507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876002046051,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469819134051,"product_id":7407528902755,"position":9,"created_at":"2024-05-03T10:05:23+08:00","updated_at":"2024-05-03T10:05:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923","variant_ids":[41876002046051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8 - 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":"NPB0129657-IV02","featured_media":{"alt":null,"id":23874720661603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bcd0750fe71793ce375f394ae8ebaf4ce8a3f65_d51d90a8-6cd4-4846-b33a-04ffe179109d.webp?v=1714701901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26b3c3c6cbf11049df1cb960265e1a59cae512a_64663003-63c2-4485-99e4-9db5118334e9.webp?v=1714701903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ce340f19d89d38fd790831d87fb8763c47aaf2_e3433d80-8c2d-47c3-a685-a6fae356020d.webp?v=1714701906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d13dda9630d24c9dffbbff6076b9dc7fef6bb6d_43c9043b-2385-4ae9-8b3e-4e70b992c87c.webp?v=1714701908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bbe7d67559b1ec6240cc789e38f3a71eb28377_dac39442-eb6d-4692-8d66-27af305c7af1.webp?v=1714701911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21aaa83923b0747e8fcfe037f117e24cf5d6797_84b1055b-b3b7-41a8-b227-77b4359e8c7a.webp?v=1714701918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74d278c52e53386357f56dcbd7f68420334b06b_2df0234a-9fc7-422e-8dc2-4a71ecfb29a3.webp?v=1714701921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bcd0750fe71793ce375f394ae8ebaf4ce8a3f65_d51d90a8-6cd4-4846-b33a-04ffe179109d.webp?v=1714701901","options":["color"],"media":[{"alt":null,"id":23874715746403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bcd0750fe71793ce375f394ae8ebaf4ce8a3f65_d51d90a8-6cd4-4846-b33a-04ffe179109d.webp?v=1714701901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bcd0750fe71793ce375f394ae8ebaf4ce8a3f65_d51d90a8-6cd4-4846-b33a-04ffe179109d.webp?v=1714701901","width":2000},{"alt":null,"id":23874716303459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26b3c3c6cbf11049df1cb960265e1a59cae512a_64663003-63c2-4485-99e4-9db5118334e9.webp?v=1714701903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26b3c3c6cbf11049df1cb960265e1a59cae512a_64663003-63c2-4485-99e4-9db5118334e9.webp?v=1714701903","width":2000},{"alt":null,"id":23874716991587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ce340f19d89d38fd790831d87fb8763c47aaf2_e3433d80-8c2d-47c3-a685-a6fae356020d.webp?v=1714701906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ce340f19d89d38fd790831d87fb8763c47aaf2_e3433d80-8c2d-47c3-a685-a6fae356020d.webp?v=1714701906","width":2000},{"alt":null,"id":23874717417571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d13dda9630d24c9dffbbff6076b9dc7fef6bb6d_43c9043b-2385-4ae9-8b3e-4e70b992c87c.webp?v=1714701908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d13dda9630d24c9dffbbff6076b9dc7fef6bb6d_43c9043b-2385-4ae9-8b3e-4e70b992c87c.webp?v=1714701908","width":2000},{"alt":null,"id":23874718105699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bbe7d67559b1ec6240cc789e38f3a71eb28377_dac39442-eb6d-4692-8d66-27af305c7af1.webp?v=1714701911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40bbe7d67559b1ec6240cc789e38f3a71eb28377_dac39442-eb6d-4692-8d66-27af305c7af1.webp?v=1714701911","width":2000},{"alt":null,"id":23874719121507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916","width":2000},{"alt":null,"id":23874719481955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21aaa83923b0747e8fcfe037f117e24cf5d6797_84b1055b-b3b7-41a8-b227-77b4359e8c7a.webp?v=1714701918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21aaa83923b0747e8fcfe037f117e24cf5d6797_84b1055b-b3b7-41a8-b227-77b4359e8c7a.webp?v=1714701918","width":2000},{"alt":null,"id":23874720268387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74d278c52e53386357f56dcbd7f68420334b06b_2df0234a-9fc7-422e-8dc2-4a71ecfb29a3.webp?v=1714701921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74d278c52e53386357f56dcbd7f68420334b06b_2df0234a-9fc7-422e-8dc2-4a71ecfb29a3.webp?v=1714701921","width":2000},{"alt":null,"id":23874720661603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876001914979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469817528419,"product_id":7407528902755,"position":6,"created_at":"2024-05-03T10:05:16+08:00","updated_at":"2024-05-03T10:05:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916","variant_ids":[41876001914979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8 - 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":"NPB0129624-IV02","featured_media":{"alt":null,"id":23874719121507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876002046051,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469819134051,"product_id":7407528902755,"position":9,"created_at":"2024-05-03T10:05:23+08:00","updated_at":"2024-05-03T10:05:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923","variant_ids":[41876002046051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8 - 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":"NPB0129657-IV02","featured_media":{"alt":null,"id":23874720661603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14dec4bc8daa92c0ff3271a6b572469376ef3623_a81ecb06-5b7b-4b5a-9c24-93ac74938c2f.webp?v=1714701923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876001914979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469817528419,"product_id":7407528902755,"position":6,"created_at":"2024-05-03T10:05:16+08:00","updated_at":"2024-05-03T10:05:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916","variant_ids":[41876001914979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 1G - 生日8 - 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":"NPB0129624-IV02","featured_media":{"alt":null,"id":23874719121507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0a982c891ad14fa597fbdd6637352959772e1fb_c9432c21-1b68-4618-87bc-471b0d3eb29d.webp?v=1714701916"}},"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: "停產" }