$product = {"id":7408005775459,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空","handle":"iphone-13-mini-mod-nx-printable-a046","description":null,"published_at":"2024-06-11T16:28:52+08:00","created_at":"2024-05-03T11:39:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 mini","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":41881632145507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946353251,"product_id":7408005775459,"position":1,"created_at":"2024-05-03T11:39:25+08:00","updated_at":"2024-05-03T11:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","variant_ids":[41881632145507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB0122824-A046","featured_media":{"alt":null,"id":23875851026531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881632342115,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946910307,"product_id":7408005775459,"position":2,"created_at":"2024-05-03T11:39:28+08:00","updated_at":"2024-05-03T11:39:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568","variant_ids":[41881632342115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB0122804-A046","featured_media":{"alt":null,"id":23875851616355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881632768099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470948483171,"product_id":7408005775459,"position":6,"created_at":"2024-05-03T11:39:37+08:00","updated_at":"2024-05-03T11:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577","variant_ids":[41881632768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB01228J5-A046","featured_media":{"alt":null,"id":23875853189219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be187430fc256262c2d2c09d54d20017293ac9b4_5593baf0-5f98-46ab-b61d-b51500a0c448.webp?v=1714707570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3855ea6693709e61e764752b994cbdb7dedec60_6eea2705-c377-402f-920f-c918c2d9d06b.webp?v=1714707573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874a9dfb2c2eb808a1c536348f0b9a382acb0688_c12fbf5b-6ce8-437c-87f2-e727f9571954.webp?v=1714707575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb8c653dbbea02fc5f602085525b0e2854911_328e664d-299a-4e3b-bb37-36c018467041.webp?v=1714707580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459968046db8145d8f174112279516c87885e7d8_0bbfbf77-854b-4a84-b5fa-7abd39e0d376.webp?v=1714707582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca920de5de15d18549726e417bb85f9ffd85e32_edcab7f4-4ae5-4edb-9b70-1d9ef14b8fb1.webp?v=1714707585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4c734c7c6ab44f41d460b34bcb72b3df13c75f_3b9dac76-3bde-4193-9984-7409c3b7ecbc.webp?v=1714707588"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","options":["color"],"media":[{"alt":null,"id":23875851026531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","width":2000},{"alt":null,"id":23875851616355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568","width":2000},{"alt":null,"id":23875851878499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be187430fc256262c2d2c09d54d20017293ac9b4_5593baf0-5f98-46ab-b61d-b51500a0c448.webp?v=1714707570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be187430fc256262c2d2c09d54d20017293ac9b4_5593baf0-5f98-46ab-b61d-b51500a0c448.webp?v=1714707570","width":2000},{"alt":null,"id":23875852501091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3855ea6693709e61e764752b994cbdb7dedec60_6eea2705-c377-402f-920f-c918c2d9d06b.webp?v=1714707573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3855ea6693709e61e764752b994cbdb7dedec60_6eea2705-c377-402f-920f-c918c2d9d06b.webp?v=1714707573","width":2000},{"alt":null,"id":23875852894307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874a9dfb2c2eb808a1c536348f0b9a382acb0688_c12fbf5b-6ce8-437c-87f2-e727f9571954.webp?v=1714707575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/874a9dfb2c2eb808a1c536348f0b9a382acb0688_c12fbf5b-6ce8-437c-87f2-e727f9571954.webp?v=1714707575","width":2000},{"alt":null,"id":23875853189219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577","width":2000},{"alt":null,"id":23875853746275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb8c653dbbea02fc5f602085525b0e2854911_328e664d-299a-4e3b-bb37-36c018467041.webp?v=1714707580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb8c653dbbea02fc5f602085525b0e2854911_328e664d-299a-4e3b-bb37-36c018467041.webp?v=1714707580","width":2000},{"alt":null,"id":23875854041187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459968046db8145d8f174112279516c87885e7d8_0bbfbf77-854b-4a84-b5fa-7abd39e0d376.webp?v=1714707582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459968046db8145d8f174112279516c87885e7d8_0bbfbf77-854b-4a84-b5fa-7abd39e0d376.webp?v=1714707582","width":2000},{"alt":null,"id":23875854565475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca920de5de15d18549726e417bb85f9ffd85e32_edcab7f4-4ae5-4edb-9b70-1d9ef14b8fb1.webp?v=1714707585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca920de5de15d18549726e417bb85f9ffd85e32_edcab7f4-4ae5-4edb-9b70-1d9ef14b8fb1.webp?v=1714707585","width":2000},{"alt":null,"id":23875855024227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4c734c7c6ab44f41d460b34bcb72b3df13c75f_3b9dac76-3bde-4193-9984-7409c3b7ecbc.webp?v=1714707588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4c734c7c6ab44f41d460b34bcb72b3df13c75f_3b9dac76-3bde-4193-9984-7409c3b7ecbc.webp?v=1714707588","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881632145507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946353251,"product_id":7408005775459,"position":1,"created_at":"2024-05-03T11:39:25+08:00","updated_at":"2024-05-03T11:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","variant_ids":[41881632145507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB0122824-A046","featured_media":{"alt":null,"id":23875851026531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881632342115,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946910307,"product_id":7408005775459,"position":2,"created_at":"2024-05-03T11:39:28+08:00","updated_at":"2024-05-03T11:39:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568","variant_ids":[41881632342115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB0122804-A046","featured_media":{"alt":null,"id":23875851616355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d841db5c63e44cc9a6b589dc1f21c6a1091a855_3711b932-1387-4121-86ea-a43f3662adc4.webp?v=1714707568"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881632768099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470948483171,"product_id":7408005775459,"position":6,"created_at":"2024-05-03T11:39:37+08:00","updated_at":"2024-05-03T11:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577","variant_ids":[41881632768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB01228J5-A046","featured_media":{"alt":null,"id":23875853189219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a662ac472ab31dded69eef9d6a77ed0a9c455378_cfcfe5e9-7a3c-428c-b9ce-ba9487f244b1.webp?v=1714707577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881632145507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946353251,"product_id":7408005775459,"position":1,"created_at":"2024-05-03T11:39:25+08:00","updated_at":"2024-05-03T11:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565","variant_ids":[41881632145507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 星雨夜空 - 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":"NPB0122824-A046","featured_media":{"alt":null,"id":23875851026531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c259f519ec12a0346238732a80c138b6116bed73_fabc5876-2df6-4b5a-ab44-44aa674bbe99.webp?v=1714707565"}},"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: "停產" }