$product = {"id":7416333926499,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 生日帽","handle":"iphone-8-mod-nx-printable-iv01","description":null,"published_at":"2024-06-11T16:56:10+08:00","created_at":"2024-05-06T14:36:27+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":41918601592931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491869704291,"product_id":7416333926499,"position":7,"created_at":"2024-05-06T14:36:43+08:00","updated_at":"2024-05-06T14:36:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403","variant_ids":[41918601592931]},"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-IV01","featured_media":{"alt":null,"id":23897282543715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330b7355d632c6ca54729359e11b74cadb0e8092_c67bd3ce-44e3-4156-b41f-ba183ce4a793.webp?v=1714977389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082536d5083e15496c1defd93b7a413f042ceb91_8c11c88b-3e85-43ce-aff7-d6d2c9add5a8.webp?v=1714977392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022354edad971c51f5623a3fe00739251a5ce817_f537eac7-5465-4429-bbee-5bb07cf1e850.webp?v=1714977394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49a9ee951a4460a10c8638ce53accf27370d63_a339a465-f1b1-449c-8f99-422632a78a2d.webp?v=1714977396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc769e82ebc155ad18595078cae7b501833b1eb3_7cf61da4-a06c-4fd7-bb65-33d931dc3ba9.webp?v=1714977399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a915d2a0c6c268bb8070b7565b96a2e1c39bbaa4_7c888946-5c91-4592-8d06-1a81b17306d2.webp?v=1714977401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8887251344404cea07596080224b5de963c277_e6c0c950-9238-49bf-a4ff-906f877b90bf.webp?v=1714977405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13136159643ed6e4e5621da132c1c216446d34e6_b3a45c76-6892-417b-b413-155aa62f94cd.webp?v=1714977408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e9580bbc553b77c19d0ef518fd0848998fb009_682eca2c-87a3-434b-b8f8-373ac7a99fe9.webp?v=1714977410"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330b7355d632c6ca54729359e11b74cadb0e8092_c67bd3ce-44e3-4156-b41f-ba183ce4a793.webp?v=1714977389","options":["color"],"media":[{"alt":null,"id":23897279430755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330b7355d632c6ca54729359e11b74cadb0e8092_c67bd3ce-44e3-4156-b41f-ba183ce4a793.webp?v=1714977389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330b7355d632c6ca54729359e11b74cadb0e8092_c67bd3ce-44e3-4156-b41f-ba183ce4a793.webp?v=1714977389","width":2000},{"alt":null,"id":23897279955043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082536d5083e15496c1defd93b7a413f042ceb91_8c11c88b-3e85-43ce-aff7-d6d2c9add5a8.webp?v=1714977392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/082536d5083e15496c1defd93b7a413f042ceb91_8c11c88b-3e85-43ce-aff7-d6d2c9add5a8.webp?v=1714977392","width":2000},{"alt":null,"id":23897280446563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022354edad971c51f5623a3fe00739251a5ce817_f537eac7-5465-4429-bbee-5bb07cf1e850.webp?v=1714977394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022354edad971c51f5623a3fe00739251a5ce817_f537eac7-5465-4429-bbee-5bb07cf1e850.webp?v=1714977394","width":2000},{"alt":null,"id":23897280970851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49a9ee951a4460a10c8638ce53accf27370d63_a339a465-f1b1-449c-8f99-422632a78a2d.webp?v=1714977396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b49a9ee951a4460a10c8638ce53accf27370d63_a339a465-f1b1-449c-8f99-422632a78a2d.webp?v=1714977396","width":2000},{"alt":null,"id":23897281396835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc769e82ebc155ad18595078cae7b501833b1eb3_7cf61da4-a06c-4fd7-bb65-33d931dc3ba9.webp?v=1714977399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc769e82ebc155ad18595078cae7b501833b1eb3_7cf61da4-a06c-4fd7-bb65-33d931dc3ba9.webp?v=1714977399","width":2000},{"alt":null,"id":23897281888355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a915d2a0c6c268bb8070b7565b96a2e1c39bbaa4_7c888946-5c91-4592-8d06-1a81b17306d2.webp?v=1714977401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a915d2a0c6c268bb8070b7565b96a2e1c39bbaa4_7c888946-5c91-4592-8d06-1a81b17306d2.webp?v=1714977401","width":2000},{"alt":null,"id":23897282543715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403","width":2000},{"alt":null,"id":23897283002467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8887251344404cea07596080224b5de963c277_e6c0c950-9238-49bf-a4ff-906f877b90bf.webp?v=1714977405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8887251344404cea07596080224b5de963c277_e6c0c950-9238-49bf-a4ff-906f877b90bf.webp?v=1714977405","width":2000},{"alt":null,"id":23897283526755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13136159643ed6e4e5621da132c1c216446d34e6_b3a45c76-6892-417b-b413-155aa62f94cd.webp?v=1714977408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13136159643ed6e4e5621da132c1c216446d34e6_b3a45c76-6892-417b-b413-155aa62f94cd.webp?v=1714977408","width":2000},{"alt":null,"id":23897284018275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e9580bbc553b77c19d0ef518fd0848998fb009_682eca2c-87a3-434b-b8f8-373ac7a99fe9.webp?v=1714977410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e9580bbc553b77c19d0ef518fd0848998fb009_682eca2c-87a3-434b-b8f8-373ac7a99fe9.webp?v=1714977410","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918601592931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491869704291,"product_id":7416333926499,"position":7,"created_at":"2024-05-06T14:36:43+08:00","updated_at":"2024-05-06T14:36:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403","variant_ids":[41918601592931]},"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-IV01","featured_media":{"alt":null,"id":23897282543715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918601592931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491869704291,"product_id":7416333926499,"position":7,"created_at":"2024-05-06T14:36:43+08:00","updated_at":"2024-05-06T14:36:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403","variant_ids":[41918601592931]},"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-IV01","featured_media":{"alt":null,"id":23897282543715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071662f21341b97d4967a856d1028e0d45f5c340_5804db95-fa60-49ad-9616-783e282d3f93.webp?v=1714977403"}},"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: "停產" }