$product = {"id":7416336777315,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 火炎山","handle":"iphone-8-mod-nx-printable-aa36","description":null,"published_at":"2024-06-11T16:56:15+08:00","created_at":"2024-05-06T14:37:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 8","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":41918636621923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875733603,"product_id":7416336777315,"position":2,"created_at":"2024-05-06T14:37:11+08:00","updated_at":"2024-05-06T14:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431","variant_ids":[41918636621923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 火炎山 - 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-AA36","featured_media":{"alt":null,"id":23897288605795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73eeb7f2be57ca4a5f5440e2838f9fd23ca2332_5650414e-8792-4f92-9006-8ece174531ed.webp?v=1714977428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b182262102dded093578451dd3893e9aa20456_15ec711f-13ef-41a9-9605-068c89bf19ac.webp?v=1714977434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6b9505a251905813b93fffd052a9019262a433_d4eebc19-2338-4a74-bb69-5c3fc18f2e5c.webp?v=1714977436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b6c869d08c6fe486c51a21faf25ca921609faf_be5f2cbc-ac87-4fbc-bc75-1053d4a60138.webp?v=1714977439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f7e4d18d42e4a35d30dfafa788cfe181bf268b_b7324813-ae4c-4417-b8ca-6bf41e3d6ce4.webp?v=1714977441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ec3edf91e94ac5d833d6a325485c2548419f8f_8fb89c77-dc8d-47d8-bf83-6db763eaac9a.webp?v=1714977444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9285df5a435ac81427489166d6ab07968ae17796_36a3f43f-3933-4a35-b451-6250b68bd04f.webp?v=1714977446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6297b3085bc32ad73b607fd1469e0b37a2762eb8_1f00e0c2-6ac9-40ce-bb21-ed4c76bb8c07.webp?v=1714977449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa583d6a3139ce99e4a0a00238c56ff99aab9a64_92769e01-288b-4849-bad5-721787fb7d45.webp?v=1714977451"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73eeb7f2be57ca4a5f5440e2838f9fd23ca2332_5650414e-8792-4f92-9006-8ece174531ed.webp?v=1714977428","options":["color"],"media":[{"alt":null,"id":23897288114275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73eeb7f2be57ca4a5f5440e2838f9fd23ca2332_5650414e-8792-4f92-9006-8ece174531ed.webp?v=1714977428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73eeb7f2be57ca4a5f5440e2838f9fd23ca2332_5650414e-8792-4f92-9006-8ece174531ed.webp?v=1714977428","width":2000},{"alt":null,"id":23897288605795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431","width":2000},{"alt":null,"id":23897289195619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b182262102dded093578451dd3893e9aa20456_15ec711f-13ef-41a9-9605-068c89bf19ac.webp?v=1714977434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b182262102dded093578451dd3893e9aa20456_15ec711f-13ef-41a9-9605-068c89bf19ac.webp?v=1714977434","width":2000},{"alt":null,"id":23897289785443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6b9505a251905813b93fffd052a9019262a433_d4eebc19-2338-4a74-bb69-5c3fc18f2e5c.webp?v=1714977436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6b9505a251905813b93fffd052a9019262a433_d4eebc19-2338-4a74-bb69-5c3fc18f2e5c.webp?v=1714977436","width":2000},{"alt":null,"id":23897290211427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b6c869d08c6fe486c51a21faf25ca921609faf_be5f2cbc-ac87-4fbc-bc75-1053d4a60138.webp?v=1714977439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b6c869d08c6fe486c51a21faf25ca921609faf_be5f2cbc-ac87-4fbc-bc75-1053d4a60138.webp?v=1714977439","width":2000},{"alt":null,"id":23897290670179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f7e4d18d42e4a35d30dfafa788cfe181bf268b_b7324813-ae4c-4417-b8ca-6bf41e3d6ce4.webp?v=1714977441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f7e4d18d42e4a35d30dfafa788cfe181bf268b_b7324813-ae4c-4417-b8ca-6bf41e3d6ce4.webp?v=1714977441","width":2000},{"alt":null,"id":23897291194467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ec3edf91e94ac5d833d6a325485c2548419f8f_8fb89c77-dc8d-47d8-bf83-6db763eaac9a.webp?v=1714977444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ec3edf91e94ac5d833d6a325485c2548419f8f_8fb89c77-dc8d-47d8-bf83-6db763eaac9a.webp?v=1714977444","width":2000},{"alt":null,"id":23897291685987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9285df5a435ac81427489166d6ab07968ae17796_36a3f43f-3933-4a35-b451-6250b68bd04f.webp?v=1714977446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9285df5a435ac81427489166d6ab07968ae17796_36a3f43f-3933-4a35-b451-6250b68bd04f.webp?v=1714977446","width":2000},{"alt":null,"id":23897294274659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6297b3085bc32ad73b607fd1469e0b37a2762eb8_1f00e0c2-6ac9-40ce-bb21-ed4c76bb8c07.webp?v=1714977449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6297b3085bc32ad73b607fd1469e0b37a2762eb8_1f00e0c2-6ac9-40ce-bb21-ed4c76bb8c07.webp?v=1714977449","width":2000},{"alt":null,"id":23897294700643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa583d6a3139ce99e4a0a00238c56ff99aab9a64_92769e01-288b-4849-bad5-721787fb7d45.webp?v=1714977451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa583d6a3139ce99e4a0a00238c56ff99aab9a64_92769e01-288b-4849-bad5-721787fb7d45.webp?v=1714977451","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918636621923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875733603,"product_id":7416336777315,"position":2,"created_at":"2024-05-06T14:37:11+08:00","updated_at":"2024-05-06T14:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431","variant_ids":[41918636621923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 火炎山 - 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-AA36","featured_media":{"alt":null,"id":23897288605795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918636621923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875733603,"product_id":7416336777315,"position":2,"created_at":"2024-05-06T14:37:11+08:00","updated_at":"2024-05-06T14:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431","variant_ids":[41918636621923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【獨家設計款】 - 火炎山 - 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-AA36","featured_media":{"alt":null,"id":23897288605795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65992a7bd00854ae4538e934d74998793972d113_f7a36175-2a1b-4976-a3cd-ba941658be22.webp?v=1714977431"}},"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: "停產" }