$product = {"id":7416351686755,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點","handle":"iphone-8-mod-nx-printable-eo02","description":null,"published_at":"2024-06-11T16:56:41+08:00","created_at":"2024-05-06T14:40:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41918801641571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915546723,"product_id":7416351686755,"position":3,"created_at":"2024-05-06T14:40:20+08:00","updated_at":"2024-05-06T14:40:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620","variant_ids":[41918801641571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - 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-EO02","featured_media":{"alt":null,"id":23897328549987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f207bb62b80bbf6b92b1e4fcc26a938019844a35_146ca82b-1233-4e04-b524-c01c785556c2.webp?v=1714977615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b2b6b0b893c2f54d4ffa33808f28d453c2155b_c726a9da-f8c1-4707-8705-99152a681460.webp?v=1714977618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9369dda01b96fe69568124f500fe261bb8602728_5614c68b-be6d-42b7-a7ea-f10b5da62689.webp?v=1714977623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28eb991b867721764f38b5c5e4ab756443a07a6e_80e5f136-2367-4dcf-97c8-6c23ec53c5be.webp?v=1714977625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d40efbc6b011b6b00fd00d8a0ecd5d53a21047c_0de32ea8-5c5a-4913-a93a-edf6944e4e8b.webp?v=1714977627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e443320c2774a90fa4bb75339a164e78794133d5_0b77f626-e810-453a-b5fa-d6563a31c2b9.webp?v=1714977630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/234dd875353cdad8644fe1d3039a7ebccb1dad80_9e1136e5-82a0-40a3-9fe4-c3c3ecb2f48c.webp?v=1714977632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45475eb99195d6a68f9a36a7314c3d63cca333de_a068b76b-a2e5-4279-b876-bf2ab8adc8eb.webp?v=1714977636"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f207bb62b80bbf6b92b1e4fcc26a938019844a35_146ca82b-1233-4e04-b524-c01c785556c2.webp?v=1714977615","options":["color"],"media":[{"alt":null,"id":23897327698019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f207bb62b80bbf6b92b1e4fcc26a938019844a35_146ca82b-1233-4e04-b524-c01c785556c2.webp?v=1714977615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f207bb62b80bbf6b92b1e4fcc26a938019844a35_146ca82b-1233-4e04-b524-c01c785556c2.webp?v=1714977615","width":2000},{"alt":null,"id":23897328025699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b2b6b0b893c2f54d4ffa33808f28d453c2155b_c726a9da-f8c1-4707-8705-99152a681460.webp?v=1714977618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b2b6b0b893c2f54d4ffa33808f28d453c2155b_c726a9da-f8c1-4707-8705-99152a681460.webp?v=1714977618","width":2000},{"alt":null,"id":23897328549987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620","width":2000},{"alt":null,"id":23897328844899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9369dda01b96fe69568124f500fe261bb8602728_5614c68b-be6d-42b7-a7ea-f10b5da62689.webp?v=1714977623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9369dda01b96fe69568124f500fe261bb8602728_5614c68b-be6d-42b7-a7ea-f10b5da62689.webp?v=1714977623","width":2000},{"alt":null,"id":23897329401955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28eb991b867721764f38b5c5e4ab756443a07a6e_80e5f136-2367-4dcf-97c8-6c23ec53c5be.webp?v=1714977625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28eb991b867721764f38b5c5e4ab756443a07a6e_80e5f136-2367-4dcf-97c8-6c23ec53c5be.webp?v=1714977625","width":2000},{"alt":null,"id":23897329729635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d40efbc6b011b6b00fd00d8a0ecd5d53a21047c_0de32ea8-5c5a-4913-a93a-edf6944e4e8b.webp?v=1714977627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d40efbc6b011b6b00fd00d8a0ecd5d53a21047c_0de32ea8-5c5a-4913-a93a-edf6944e4e8b.webp?v=1714977627","width":2000},{"alt":null,"id":23897330450531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e443320c2774a90fa4bb75339a164e78794133d5_0b77f626-e810-453a-b5fa-d6563a31c2b9.webp?v=1714977630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e443320c2774a90fa4bb75339a164e78794133d5_0b77f626-e810-453a-b5fa-d6563a31c2b9.webp?v=1714977630","width":2000},{"alt":null,"id":23897330909283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/234dd875353cdad8644fe1d3039a7ebccb1dad80_9e1136e5-82a0-40a3-9fe4-c3c3ecb2f48c.webp?v=1714977632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/234dd875353cdad8644fe1d3039a7ebccb1dad80_9e1136e5-82a0-40a3-9fe4-c3c3ecb2f48c.webp?v=1714977632","width":2000},{"alt":null,"id":23897331925091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45475eb99195d6a68f9a36a7314c3d63cca333de_a068b76b-a2e5-4279-b876-bf2ab8adc8eb.webp?v=1714977636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45475eb99195d6a68f9a36a7314c3d63cca333de_a068b76b-a2e5-4279-b876-bf2ab8adc8eb.webp?v=1714977636","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918801641571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915546723,"product_id":7416351686755,"position":3,"created_at":"2024-05-06T14:40:20+08:00","updated_at":"2024-05-06T14:40:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620","variant_ids":[41918801641571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - 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-EO02","featured_media":{"alt":null,"id":23897328549987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918801641571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915546723,"product_id":7416351686755,"position":3,"created_at":"2024-05-06T14:40:20+08:00","updated_at":"2024-05-06T14:40:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620","variant_ids":[41918801641571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 讓世界再可愛一點 - 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-EO02","featured_media":{"alt":null,"id":23897328549987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe4d48ffbd27d6cd3c8a938b4cf1f17d6c9ec8e_b6a95f55-a938-49d3-a216-d6d76f7c1ac4.webp?v=1714977620"}},"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: "停產" }