$product = {"id":7408494542947,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點","handle":"iphone-12-pro-max-mod-nx-printable-eo04","description":null,"published_at":"2024-06-11T16:38:49+08:00","created_at":"2024-05-03T15:37:41+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 12 pro max","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":41886117691491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423960675,"product_id":7408494542947,"position":8,"created_at":"2024-05-03T15:38:01+08:00","updated_at":"2024-05-03T15:38:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881","variant_ids":[41886117691491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO04","featured_media":{"alt":null,"id":23877340889187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd112220ff879d3a7bedea15c7a478bc0e493076_c237099a-179f-4843-ac54-8830078b4e23.webp?v=1714721864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1129d395717d24128d81b3d34bf1067aa18214_030a097e-d7ff-438f-ad39-bf4763d54fe6.webp?v=1714721866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25911b7530d5b124995fb0e42544d20e207a8dab_2b5e21ad-c2d9-47c5-bda0-97e0599ac4b6.webp?v=1714721868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fea2284ac874f613e38432d1ad85677feaee74_44c34167-bb99-4c1c-a636-c8f4dde7528f.webp?v=1714721871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f1c74d89146c4860106fa3455099afec84ecd6_a3d7e1b6-d984-479c-a4f6-b61a2eb96d60.webp?v=1714721873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06b2fd46a1956dcca5117c713eef99680809473_620a7ea2-33fe-4c5b-a395-8d1bf4b8c78b.webp?v=1714721876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbc31ac2bc185bb97e87e5fb8a24dcca7ba4b50_9473c9db-bf5d-45ae-92b5-83d7ce095cab.webp?v=1714721878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb95f2b87b0488aec0d6a41530ea923268168a2_8b470833-3429-4186-83d0-403d07b5c58d.webp?v=1714721883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27d755668cc041b864566997ca893e1c36a326_942c75d5-2d01-4adc-9408-9da784c53f83.webp?v=1714721885"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd112220ff879d3a7bedea15c7a478bc0e493076_c237099a-179f-4843-ac54-8830078b4e23.webp?v=1714721864","options":["color"],"media":[{"alt":null,"id":23877336825955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd112220ff879d3a7bedea15c7a478bc0e493076_c237099a-179f-4843-ac54-8830078b4e23.webp?v=1714721864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd112220ff879d3a7bedea15c7a478bc0e493076_c237099a-179f-4843-ac54-8830078b4e23.webp?v=1714721864","width":2000},{"alt":null,"id":23877337383011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1129d395717d24128d81b3d34bf1067aa18214_030a097e-d7ff-438f-ad39-bf4763d54fe6.webp?v=1714721866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1129d395717d24128d81b3d34bf1067aa18214_030a097e-d7ff-438f-ad39-bf4763d54fe6.webp?v=1714721866","width":2000},{"alt":null,"id":23877337940067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25911b7530d5b124995fb0e42544d20e207a8dab_2b5e21ad-c2d9-47c5-bda0-97e0599ac4b6.webp?v=1714721868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25911b7530d5b124995fb0e42544d20e207a8dab_2b5e21ad-c2d9-47c5-bda0-97e0599ac4b6.webp?v=1714721868","width":2000},{"alt":null,"id":23877338431587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fea2284ac874f613e38432d1ad85677feaee74_44c34167-bb99-4c1c-a636-c8f4dde7528f.webp?v=1714721871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fea2284ac874f613e38432d1ad85677feaee74_44c34167-bb99-4c1c-a636-c8f4dde7528f.webp?v=1714721871","width":2000},{"alt":null,"id":23877339218019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f1c74d89146c4860106fa3455099afec84ecd6_a3d7e1b6-d984-479c-a4f6-b61a2eb96d60.webp?v=1714721873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f1c74d89146c4860106fa3455099afec84ecd6_a3d7e1b6-d984-479c-a4f6-b61a2eb96d60.webp?v=1714721873","width":2000},{"alt":null,"id":23877339807843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06b2fd46a1956dcca5117c713eef99680809473_620a7ea2-33fe-4c5b-a395-8d1bf4b8c78b.webp?v=1714721876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06b2fd46a1956dcca5117c713eef99680809473_620a7ea2-33fe-4c5b-a395-8d1bf4b8c78b.webp?v=1714721876","width":2000},{"alt":null,"id":23877340397667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbc31ac2bc185bb97e87e5fb8a24dcca7ba4b50_9473c9db-bf5d-45ae-92b5-83d7ce095cab.webp?v=1714721878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbc31ac2bc185bb97e87e5fb8a24dcca7ba4b50_9473c9db-bf5d-45ae-92b5-83d7ce095cab.webp?v=1714721878","width":2000},{"alt":null,"id":23877340889187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881","width":2000},{"alt":null,"id":23877341446243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb95f2b87b0488aec0d6a41530ea923268168a2_8b470833-3429-4186-83d0-403d07b5c58d.webp?v=1714721883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb95f2b87b0488aec0d6a41530ea923268168a2_8b470833-3429-4186-83d0-403d07b5c58d.webp?v=1714721883","width":2000},{"alt":null,"id":23877341872227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27d755668cc041b864566997ca893e1c36a326_942c75d5-2d01-4adc-9408-9da784c53f83.webp?v=1714721885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df27d755668cc041b864566997ca893e1c36a326_942c75d5-2d01-4adc-9408-9da784c53f83.webp?v=1714721885","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886117691491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423960675,"product_id":7408494542947,"position":8,"created_at":"2024-05-03T15:38:01+08:00","updated_at":"2024-05-03T15:38:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881","variant_ids":[41886117691491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO04","featured_media":{"alt":null,"id":23877340889187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886117691491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423960675,"product_id":7408494542947,"position":8,"created_at":"2024-05-03T15:38:01+08:00","updated_at":"2024-05-03T15:38:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881","variant_ids":[41886117691491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-EO04","featured_media":{"alt":null,"id":23877340889187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc30ea235536e78ca54af7a4234a8742dc945a6_9e55ba86-010c-46b9-9711-8a2b5d76da29.webp?v=1714721881"}},"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: "停產" }