$product = {"id":7407904292963,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空","handle":"iphone-14-pro-mod-nx-printable-a046","description":null,"published_at":"2024-06-11T16:26:07+08:00","created_at":"2024-05-03T11:12:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Pro","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx","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":41880328241251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470660649059,"product_id":7407904292963,"position":3,"created_at":"2024-05-03T11:13:07+08:00","updated_at":"2024-05-03T11:13:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987","variant_ids":[41880328241251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875564634211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880328437859,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470663270499,"product_id":7407904292963,"position":4,"created_at":"2024-05-03T11:13:09+08:00","updated_at":"2024-05-03T11:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989","variant_ids":[41880328437859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875565125731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880329125987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470660321379,"product_id":7407904292963,"position":2,"created_at":"2024-05-03T11:13:04+08:00","updated_at":"2024-05-03T11:13:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984","variant_ids":[41880329125987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875564273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644021b184dc39a526307ec37eb757ddde193931_20a9666a-cb7c-43cc-9398-93d15dc6792c.webp?v=1714705982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63d18e52b0be270b73e05d1b4c825160e1888a5_24fa1b00-88af-4423-aa7d-784b9c0312a0.webp?v=1714705991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89587c9fc8e77516b3785021b7c67cf6ac2dd8_bda36252-212f-4214-a977-15c5285d00e5.webp?v=1714705994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e982346c2ef6da944bd4b9dce34aa1e0f1bf1b92_af618e75-f237-4ebd-bbb7-ac6cf0e5667a.webp?v=1714705996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bb1fec057b654b5d37539ed1116cd5eec15f5_24a27064-8de8-489c-b92f-10e0553429ba.webp?v=1714705999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf9c4175c772756021badaf203efe0e987badd1_8348a6c0-ffba-4ad6-863f-d180954b80f0.webp?v=1714706001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb31cefe184c64c7b65d75cf61ac05cf6dbf8b18_e54d0c5b-0454-4fb2-954c-caf0e4a9f2bd.webp?v=1714706004"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644021b184dc39a526307ec37eb757ddde193931_20a9666a-cb7c-43cc-9398-93d15dc6792c.webp?v=1714705982","options":["color"],"media":[{"alt":null,"id":23875563847779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644021b184dc39a526307ec37eb757ddde193931_20a9666a-cb7c-43cc-9398-93d15dc6792c.webp?v=1714705982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644021b184dc39a526307ec37eb757ddde193931_20a9666a-cb7c-43cc-9398-93d15dc6792c.webp?v=1714705982","width":2000},{"alt":null,"id":23875564273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984","width":2000},{"alt":null,"id":23875564634211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987","width":2000},{"alt":null,"id":23875565125731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989","width":2000},{"alt":null,"id":23875569025123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63d18e52b0be270b73e05d1b4c825160e1888a5_24fa1b00-88af-4423-aa7d-784b9c0312a0.webp?v=1714705991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63d18e52b0be270b73e05d1b4c825160e1888a5_24fa1b00-88af-4423-aa7d-784b9c0312a0.webp?v=1714705991","width":2000},{"alt":null,"id":23875569385571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89587c9fc8e77516b3785021b7c67cf6ac2dd8_bda36252-212f-4214-a977-15c5285d00e5.webp?v=1714705994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89587c9fc8e77516b3785021b7c67cf6ac2dd8_bda36252-212f-4214-a977-15c5285d00e5.webp?v=1714705994","width":2000},{"alt":null,"id":23875569909859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e982346c2ef6da944bd4b9dce34aa1e0f1bf1b92_af618e75-f237-4ebd-bbb7-ac6cf0e5667a.webp?v=1714705996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e982346c2ef6da944bd4b9dce34aa1e0f1bf1b92_af618e75-f237-4ebd-bbb7-ac6cf0e5667a.webp?v=1714705996","width":2000},{"alt":null,"id":23875570303075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bb1fec057b654b5d37539ed1116cd5eec15f5_24a27064-8de8-489c-b92f-10e0553429ba.webp?v=1714705999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bb1fec057b654b5d37539ed1116cd5eec15f5_24a27064-8de8-489c-b92f-10e0553429ba.webp?v=1714705999","width":2000},{"alt":null,"id":23875570729059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf9c4175c772756021badaf203efe0e987badd1_8348a6c0-ffba-4ad6-863f-d180954b80f0.webp?v=1714706001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf9c4175c772756021badaf203efe0e987badd1_8348a6c0-ffba-4ad6-863f-d180954b80f0.webp?v=1714706001","width":2000},{"alt":null,"id":23875571187811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb31cefe184c64c7b65d75cf61ac05cf6dbf8b18_e54d0c5b-0454-4fb2-954c-caf0e4a9f2bd.webp?v=1714706004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb31cefe184c64c7b65d75cf61ac05cf6dbf8b18_e54d0c5b-0454-4fb2-954c-caf0e4a9f2bd.webp?v=1714706004","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880328241251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470660649059,"product_id":7407904292963,"position":3,"created_at":"2024-05-03T11:13:07+08:00","updated_at":"2024-05-03T11:13:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987","variant_ids":[41880328241251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875564634211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880328437859,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470663270499,"product_id":7407904292963,"position":4,"created_at":"2024-05-03T11:13:09+08:00","updated_at":"2024-05-03T11:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989","variant_ids":[41880328437859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875565125731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fecb297def0988c9355a5e95c30d7f49f8e7b3d_6567fcd6-66e7-423d-b85e-f4a16710c765.webp?v=1714705989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880329125987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470660321379,"product_id":7407904292963,"position":2,"created_at":"2024-05-03T11:13:04+08:00","updated_at":"2024-05-03T11:13:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984","variant_ids":[41880329125987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875564273763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcd91328b97b6ec8f79f0c0545f226b36be8678_5cf442c1-6448-4d5b-a8f4-fbd9bd8feeab.webp?v=1714705984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880328241251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470660649059,"product_id":7407904292963,"position":3,"created_at":"2024-05-03T11:13:07+08:00","updated_at":"2024-05-03T11:13:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987","variant_ids":[41880328241251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【獨家設計款】 - 星雨夜空 - 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-A046","featured_media":{"alt":null,"id":23875564634211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d40e865aee57c92f89989457149cafd47b4e267d_3634ffcf-f891-4ca6-b3c8-9c883fb5fffc.webp?v=1714705987"}},"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: "停產" }