$product = {"id":7416364531811,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 在幹嘛","handle":"iphone-8-mod-nx-printable-iv06","description":null,"published_at":"2024-06-11T16:57:03+08:00","created_at":"2024-05-06T14:42:44+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 8","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":41918937104483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948839011,"product_id":7416364531811,"position":7,"created_at":"2024-05-06T14:43:01+08:00","updated_at":"2024-05-06T14:43:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781","variant_ids":[41918937104483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23897361875043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4536038691f8f48e47e4afb5c84e0dfa27c8549_ebb55f56-2447-4a70-abee-7d2b24868de4.webp?v=1714977767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc07ffe9b4633fe66532d9b5f93bfa16f8eab893_ab622da7-8d54-4da8-bd49-091d12f8ca2b.webp?v=1714977769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc4f9beb0f1b6b9791a38bd930d0fe9e02e7abb1_298fe211-a968-4a9d-bd29-0e7423461407.webp?v=1714977771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9447cad7335f0fdacbe88695f63698882d8ba6_98a5caf4-b98a-4a8f-a031-c6c73d3d18c6.webp?v=1714977773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf9cbd909c2957666572e04dcde92ec56b81b96_b70580c3-de63-49d2-80c3-f2064f7e30af.webp?v=1714977776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ec2ff7fbb6252ca9fc98364342ac22db48e883_a605bd84-cbde-4443-ad04-6d2896d34389.webp?v=1714977778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc5accfb56bdb5311c36ebd4ebd7fb8d8675f6e_3b066876-138a-4dc4-844b-d64b82e8343c.webp?v=1714977783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bee3918ffc4f278828877cb605d3782635ee638_93ade6c4-953b-4e0c-ad16-8f808d49624a.webp?v=1714977785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cb4c6cbd6c2a3733782cd594faa1a3c892d910_217d4318-1343-4e02-b740-dc5a4c077ea3.webp?v=1714977787"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4536038691f8f48e47e4afb5c84e0dfa27c8549_ebb55f56-2447-4a70-abee-7d2b24868de4.webp?v=1714977767","options":["color"],"media":[{"alt":null,"id":23897358631011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4536038691f8f48e47e4afb5c84e0dfa27c8549_ebb55f56-2447-4a70-abee-7d2b24868de4.webp?v=1714977767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4536038691f8f48e47e4afb5c84e0dfa27c8549_ebb55f56-2447-4a70-abee-7d2b24868de4.webp?v=1714977767","width":2000},{"alt":null,"id":23897359581283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc07ffe9b4633fe66532d9b5f93bfa16f8eab893_ab622da7-8d54-4da8-bd49-091d12f8ca2b.webp?v=1714977769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc07ffe9b4633fe66532d9b5f93bfa16f8eab893_ab622da7-8d54-4da8-bd49-091d12f8ca2b.webp?v=1714977769","width":2000},{"alt":null,"id":23897360007267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc4f9beb0f1b6b9791a38bd930d0fe9e02e7abb1_298fe211-a968-4a9d-bd29-0e7423461407.webp?v=1714977771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc4f9beb0f1b6b9791a38bd930d0fe9e02e7abb1_298fe211-a968-4a9d-bd29-0e7423461407.webp?v=1714977771","width":2000},{"alt":null,"id":23897360597091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9447cad7335f0fdacbe88695f63698882d8ba6_98a5caf4-b98a-4a8f-a031-c6c73d3d18c6.webp?v=1714977773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9447cad7335f0fdacbe88695f63698882d8ba6_98a5caf4-b98a-4a8f-a031-c6c73d3d18c6.webp?v=1714977773","width":2000},{"alt":null,"id":23897360990307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf9cbd909c2957666572e04dcde92ec56b81b96_b70580c3-de63-49d2-80c3-f2064f7e30af.webp?v=1714977776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf9cbd909c2957666572e04dcde92ec56b81b96_b70580c3-de63-49d2-80c3-f2064f7e30af.webp?v=1714977776","width":2000},{"alt":null,"id":23897361416291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ec2ff7fbb6252ca9fc98364342ac22db48e883_a605bd84-cbde-4443-ad04-6d2896d34389.webp?v=1714977778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ec2ff7fbb6252ca9fc98364342ac22db48e883_a605bd84-cbde-4443-ad04-6d2896d34389.webp?v=1714977778","width":2000},{"alt":null,"id":23897361875043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781","width":2000},{"alt":null,"id":23897362858083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc5accfb56bdb5311c36ebd4ebd7fb8d8675f6e_3b066876-138a-4dc4-844b-d64b82e8343c.webp?v=1714977783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc5accfb56bdb5311c36ebd4ebd7fb8d8675f6e_3b066876-138a-4dc4-844b-d64b82e8343c.webp?v=1714977783","width":2000},{"alt":null,"id":23897363349603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bee3918ffc4f278828877cb605d3782635ee638_93ade6c4-953b-4e0c-ad16-8f808d49624a.webp?v=1714977785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bee3918ffc4f278828877cb605d3782635ee638_93ade6c4-953b-4e0c-ad16-8f808d49624a.webp?v=1714977785","width":2000},{"alt":null,"id":23897363775587,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cb4c6cbd6c2a3733782cd594faa1a3c892d910_217d4318-1343-4e02-b740-dc5a4c077ea3.webp?v=1714977787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cb4c6cbd6c2a3733782cd594faa1a3c892d910_217d4318-1343-4e02-b740-dc5a4c077ea3.webp?v=1714977787","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918937104483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948839011,"product_id":7416364531811,"position":7,"created_at":"2024-05-06T14:43:01+08:00","updated_at":"2024-05-06T14:43:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781","variant_ids":[41918937104483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23897361875043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918937104483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948839011,"product_id":7416364531811,"position":7,"created_at":"2024-05-06T14:43:01+08:00","updated_at":"2024-05-06T14:43:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781","variant_ids":[41918937104483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23897361875043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1820660cb56683eb85125b54567e84066a9f02_2e2279d6-fcbc-4d78-badf-00926acbeda6.webp?v=1714977781"}},"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: "停產" }