$product = {"id":7416381603939,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-8-mod-nx-printable-rl01","description":null,"published_at":"2024-06-11T16:57:32+08:00","created_at":"2024-05-06T14:45:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-twenty-one-point-five","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":41919123488867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491990421603,"product_id":7416381603939,"position":7,"created_at":"2024-05-06T14:46:16+08:00","updated_at":"2024-05-06T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976","variant_ids":[41919123488867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23897403981923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d973ee43c90aaae7b21b6943a0e370724bbc65_5ae3b59f-7e96-428a-a779-a3d18a097cfd.webp?v=1714977961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b827413411c9e8a9ccbee797e257a10971fc315_48ba2fff-1e99-465e-a144-1d83eeb75b93.webp?v=1714977963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b04340af3b8f1c42b7725b1b11552fa42d223b_45ee1490-f6f6-4ce5-af07-dd308cdf474b.webp?v=1714977966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb751909fd9d61a318a29e8db963d0b2009d9d76_26a7544f-84f0-470d-a065-12f244cd07b6.webp?v=1714977968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7428cbfb8f5d14577b1013ee9ff83291b120fdc3_59fb86e3-962c-45ba-980e-5520612a74d8.webp?v=1714977971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ca22ccfce2d6ee97426cdfd19c0be0a18fd52_28cc7d20-2863-4d62-9d82-5603fc12c6ea.webp?v=1714977973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a66405af8ee8573186bd3b9df8ed83aa949804_19f1e878-7b55-40a2-8a1a-d62f1acad1d2.webp?v=1714977978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f972d39d94bf57e2ea53f0683a5c514394ec9ad_13f828b5-dbc3-449d-b998-d7f19ee87dd8.webp?v=1714977983"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d973ee43c90aaae7b21b6943a0e370724bbc65_5ae3b59f-7e96-428a-a779-a3d18a097cfd.webp?v=1714977961","options":["color"],"media":[{"alt":null,"id":23897400541283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d973ee43c90aaae7b21b6943a0e370724bbc65_5ae3b59f-7e96-428a-a779-a3d18a097cfd.webp?v=1714977961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d973ee43c90aaae7b21b6943a0e370724bbc65_5ae3b59f-7e96-428a-a779-a3d18a097cfd.webp?v=1714977961","width":2000},{"alt":null,"id":23897400868963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b827413411c9e8a9ccbee797e257a10971fc315_48ba2fff-1e99-465e-a144-1d83eeb75b93.webp?v=1714977963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b827413411c9e8a9ccbee797e257a10971fc315_48ba2fff-1e99-465e-a144-1d83eeb75b93.webp?v=1714977963","width":2000},{"alt":null,"id":23897401458787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b04340af3b8f1c42b7725b1b11552fa42d223b_45ee1490-f6f6-4ce5-af07-dd308cdf474b.webp?v=1714977966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b04340af3b8f1c42b7725b1b11552fa42d223b_45ee1490-f6f6-4ce5-af07-dd308cdf474b.webp?v=1714977966","width":2000},{"alt":null,"id":23897401852003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb751909fd9d61a318a29e8db963d0b2009d9d76_26a7544f-84f0-470d-a065-12f244cd07b6.webp?v=1714977968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb751909fd9d61a318a29e8db963d0b2009d9d76_26a7544f-84f0-470d-a065-12f244cd07b6.webp?v=1714977968","width":2000},{"alt":null,"id":23897402441827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7428cbfb8f5d14577b1013ee9ff83291b120fdc3_59fb86e3-962c-45ba-980e-5520612a74d8.webp?v=1714977971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7428cbfb8f5d14577b1013ee9ff83291b120fdc3_59fb86e3-962c-45ba-980e-5520612a74d8.webp?v=1714977971","width":2000},{"alt":null,"id":23897403261027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ca22ccfce2d6ee97426cdfd19c0be0a18fd52_28cc7d20-2863-4d62-9d82-5603fc12c6ea.webp?v=1714977973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ca22ccfce2d6ee97426cdfd19c0be0a18fd52_28cc7d20-2863-4d62-9d82-5603fc12c6ea.webp?v=1714977973","width":2000},{"alt":null,"id":23897403981923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976","width":2000},{"alt":null,"id":23897404473443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a66405af8ee8573186bd3b9df8ed83aa949804_19f1e878-7b55-40a2-8a1a-d62f1acad1d2.webp?v=1714977978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a66405af8ee8573186bd3b9df8ed83aa949804_19f1e878-7b55-40a2-8a1a-d62f1acad1d2.webp?v=1714977978","width":2000},{"alt":null,"id":23897405554787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f972d39d94bf57e2ea53f0683a5c514394ec9ad_13f828b5-dbc3-449d-b998-d7f19ee87dd8.webp?v=1714977983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f972d39d94bf57e2ea53f0683a5c514394ec9ad_13f828b5-dbc3-449d-b998-d7f19ee87dd8.webp?v=1714977983","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919123488867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491990421603,"product_id":7416381603939,"position":7,"created_at":"2024-05-06T14:46:16+08:00","updated_at":"2024-05-06T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976","variant_ids":[41919123488867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23897403981923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919123488867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491990421603,"product_id":7416381603939,"position":7,"created_at":"2024-05-06T14:46:16+08:00","updated_at":"2024-05-06T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976","variant_ids":[41919123488867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23897403981923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece49c09ec853a4e3d6ff817126e1b13e757857e_d56a1938-3d92-4243-a233-f9263d92b49f.webp?v=1714977976"}},"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: "停產" }