$product = {"id":7415951130723,"title":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-xs-mod-nx-printable-fz05","description":null,"published_at":"2024-06-11T16:48:45+08:00","created_at":"2024-05-06T12:30:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone XS","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41915855568995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490818801763,"product_id":7415951130723,"position":7,"created_at":"2024-05-06T12:30:55+08:00","updated_at":"2024-05-06T12:30:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855","variant_ids":[41915855568995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0108424-FZ05","featured_media":{"alt":null,"id":23896225611875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6779a90d610ba7fc561f40eb752846d66ef0692_74f8f770-84d3-4122-8f6a-fabf251729e3.webp?v=1714969842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345000832359433344d0cc236dff0d4375e0dc47_15630abe-9bf5-49de-a79a-908bbd6e148a.webp?v=1714969844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90bc2e914a5cbe48cdfce991775535f1052f5ad_feaff5a3-f727-4984-ad1c-fc6a4fe3222f.webp?v=1714969846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0b95a189652e2e59d5914ea93162356623c2e3_9d7c18e5-9b2d-4ac6-aa64-94d1b52d0254.webp?v=1714969849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41036f35315779db5ec87e5438bf84d8b280e3f_9026007f-5155-4e2b-99b1-9394a4a610c8.webp?v=1714969851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cddee77b0517eb1c278d8cea8d14892b47181c4_50b832d0-af05-4a74-b0c0-af4f06614fda.webp?v=1714969853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00d08f7f1287a22717bb9b3a57302f9170d5114_86689766-b2e8-4df5-bea4-24d3d12448a4.webp?v=1714969857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b068ef8b3f44e07bafbb31b127b9bfe6693d823_cd3eb101-ea8e-4063-990d-a0e7e8b40896.webp?v=1714969860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f968a2079a719f15fea95c42625222d768178_612ac6a5-6033-4ed6-841f-7b8230039374.webp?v=1714969862"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6779a90d610ba7fc561f40eb752846d66ef0692_74f8f770-84d3-4122-8f6a-fabf251729e3.webp?v=1714969842","options":["color"],"media":[{"alt":null,"id":23896222761059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6779a90d610ba7fc561f40eb752846d66ef0692_74f8f770-84d3-4122-8f6a-fabf251729e3.webp?v=1714969842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6779a90d610ba7fc561f40eb752846d66ef0692_74f8f770-84d3-4122-8f6a-fabf251729e3.webp?v=1714969842","width":2000},{"alt":null,"id":23896223121507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345000832359433344d0cc236dff0d4375e0dc47_15630abe-9bf5-49de-a79a-908bbd6e148a.webp?v=1714969844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345000832359433344d0cc236dff0d4375e0dc47_15630abe-9bf5-49de-a79a-908bbd6e148a.webp?v=1714969844","width":2000},{"alt":null,"id":23896223776867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90bc2e914a5cbe48cdfce991775535f1052f5ad_feaff5a3-f727-4984-ad1c-fc6a4fe3222f.webp?v=1714969846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90bc2e914a5cbe48cdfce991775535f1052f5ad_feaff5a3-f727-4984-ad1c-fc6a4fe3222f.webp?v=1714969846","width":2000},{"alt":null,"id":23896224137315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0b95a189652e2e59d5914ea93162356623c2e3_9d7c18e5-9b2d-4ac6-aa64-94d1b52d0254.webp?v=1714969849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0b95a189652e2e59d5914ea93162356623c2e3_9d7c18e5-9b2d-4ac6-aa64-94d1b52d0254.webp?v=1714969849","width":2000},{"alt":null,"id":23896224694371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41036f35315779db5ec87e5438bf84d8b280e3f_9026007f-5155-4e2b-99b1-9394a4a610c8.webp?v=1714969851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41036f35315779db5ec87e5438bf84d8b280e3f_9026007f-5155-4e2b-99b1-9394a4a610c8.webp?v=1714969851","width":2000},{"alt":null,"id":23896225185891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cddee77b0517eb1c278d8cea8d14892b47181c4_50b832d0-af05-4a74-b0c0-af4f06614fda.webp?v=1714969853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cddee77b0517eb1c278d8cea8d14892b47181c4_50b832d0-af05-4a74-b0c0-af4f06614fda.webp?v=1714969853","width":2000},{"alt":null,"id":23896225611875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855","width":2000},{"alt":null,"id":23896226332771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00d08f7f1287a22717bb9b3a57302f9170d5114_86689766-b2e8-4df5-bea4-24d3d12448a4.webp?v=1714969857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00d08f7f1287a22717bb9b3a57302f9170d5114_86689766-b2e8-4df5-bea4-24d3d12448a4.webp?v=1714969857","width":2000},{"alt":null,"id":23896227315811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b068ef8b3f44e07bafbb31b127b9bfe6693d823_cd3eb101-ea8e-4063-990d-a0e7e8b40896.webp?v=1714969860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b068ef8b3f44e07bafbb31b127b9bfe6693d823_cd3eb101-ea8e-4063-990d-a0e7e8b40896.webp?v=1714969860","width":2000},{"alt":null,"id":23896227840099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f968a2079a719f15fea95c42625222d768178_612ac6a5-6033-4ed6-841f-7b8230039374.webp?v=1714969862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f968a2079a719f15fea95c42625222d768178_612ac6a5-6033-4ed6-841f-7b8230039374.webp?v=1714969862","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915855568995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490818801763,"product_id":7415951130723,"position":7,"created_at":"2024-05-06T12:30:55+08:00","updated_at":"2024-05-06T12:30:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855","variant_ids":[41915855568995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0108424-FZ05","featured_media":{"alt":null,"id":23896225611875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915855568995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490818801763,"product_id":7415951130723,"position":7,"created_at":"2024-05-06T12:30:55+08:00","updated_at":"2024-05-06T12:30:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855","variant_ids":[41915855568995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0108424-FZ05","featured_media":{"alt":null,"id":23896225611875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a2d0c5b0a552912a2d5859b32783ae2b67dd7f_34c9b9e5-a4cf-40fa-a8d4-7b36939f123a.webp?v=1714969855"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }