$product = {"id":7414970056803,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-fz05","description":null,"published_at":"2024-06-11T17:54:27+08:00","created_at":"2024-05-05T19:57:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41910467690595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487810666595,"product_id":7414970056803,"position":10,"created_at":"2024-05-05T19:58:18+08:00","updated_at":"2024-05-05T19:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298","variant_ids":[41910467690595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-FZ05","featured_media":{"alt":null,"id":23893154627683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a05f3da096cacb852d6c9d6b5839effb73b2732_10ce6232-2ce1-428e-8a74-a8beb28250c7.webp?v=1714910277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e8cd1949051db88f3ab3ba1d71810c8a6778dc_cd86bfd0-d974-419d-8b16-0b4c1369c5b1.webp?v=1714910279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b2c25541e4fa85933adabe462c71e49714892d_ffcc2d16-6d5f-4edd-8e38-127feb23d0e5.webp?v=1714910281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed24acd53e72d3a5c5dc9fc6217f41335c2e1894_f3d0e687-7066-4788-a793-de2215535303.webp?v=1714910283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9394e87d41ffbbc2bd44e8bce6365748202b528e_b4fddb9d-04c9-48dc-93fd-7752d1e8a368.webp?v=1714910286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7dbafd6eb57d3fe6d420ccbd2b1acd2c5a73bf_18f77807-058a-446f-bd52-a27bf453337f.webp?v=1714910288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a2d7b8310bf6963cedc440127e0d3533ae9c3_75810218-28c5-4e0d-b103-615b674d4efb.webp?v=1714910291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/672d5411f21d8bf65463a073d71739494f716103_769c68ee-eec2-4a7c-9173-f17a73441574.webp?v=1714910293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35add1c53529bb0583c0e454dc9bea45c0ff5f_36bb8b57-e8d0-4612-8a69-c54ce6e4cd42.webp?v=1714910295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a05f3da096cacb852d6c9d6b5839effb73b2732_10ce6232-2ce1-428e-8a74-a8beb28250c7.webp?v=1714910277","options":["color"],"media":[{"alt":null,"id":23893148762211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a05f3da096cacb852d6c9d6b5839effb73b2732_10ce6232-2ce1-428e-8a74-a8beb28250c7.webp?v=1714910277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a05f3da096cacb852d6c9d6b5839effb73b2732_10ce6232-2ce1-428e-8a74-a8beb28250c7.webp?v=1714910277","width":2000},{"alt":null,"id":23893149253731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e8cd1949051db88f3ab3ba1d71810c8a6778dc_cd86bfd0-d974-419d-8b16-0b4c1369c5b1.webp?v=1714910279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e8cd1949051db88f3ab3ba1d71810c8a6778dc_cd86bfd0-d974-419d-8b16-0b4c1369c5b1.webp?v=1714910279","width":2000},{"alt":null,"id":23893149974627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b2c25541e4fa85933adabe462c71e49714892d_ffcc2d16-6d5f-4edd-8e38-127feb23d0e5.webp?v=1714910281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b2c25541e4fa85933adabe462c71e49714892d_ffcc2d16-6d5f-4edd-8e38-127feb23d0e5.webp?v=1714910281","width":2000},{"alt":null,"id":23893150531683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed24acd53e72d3a5c5dc9fc6217f41335c2e1894_f3d0e687-7066-4788-a793-de2215535303.webp?v=1714910283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed24acd53e72d3a5c5dc9fc6217f41335c2e1894_f3d0e687-7066-4788-a793-de2215535303.webp?v=1714910283","width":2000},{"alt":null,"id":23893151154275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9394e87d41ffbbc2bd44e8bce6365748202b528e_b4fddb9d-04c9-48dc-93fd-7752d1e8a368.webp?v=1714910286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9394e87d41ffbbc2bd44e8bce6365748202b528e_b4fddb9d-04c9-48dc-93fd-7752d1e8a368.webp?v=1714910286","width":2000},{"alt":null,"id":23893151875171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7dbafd6eb57d3fe6d420ccbd2b1acd2c5a73bf_18f77807-058a-446f-bd52-a27bf453337f.webp?v=1714910288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7dbafd6eb57d3fe6d420ccbd2b1acd2c5a73bf_18f77807-058a-446f-bd52-a27bf453337f.webp?v=1714910288","width":2000},{"alt":null,"id":23893152497763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a2d7b8310bf6963cedc440127e0d3533ae9c3_75810218-28c5-4e0d-b103-615b674d4efb.webp?v=1714910291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a2d7b8310bf6963cedc440127e0d3533ae9c3_75810218-28c5-4e0d-b103-615b674d4efb.webp?v=1714910291","width":2000},{"alt":null,"id":23893152923747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/672d5411f21d8bf65463a073d71739494f716103_769c68ee-eec2-4a7c-9173-f17a73441574.webp?v=1714910293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/672d5411f21d8bf65463a073d71739494f716103_769c68ee-eec2-4a7c-9173-f17a73441574.webp?v=1714910293","width":2000},{"alt":null,"id":23893154103395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35add1c53529bb0583c0e454dc9bea45c0ff5f_36bb8b57-e8d0-4612-8a69-c54ce6e4cd42.webp?v=1714910295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35add1c53529bb0583c0e454dc9bea45c0ff5f_36bb8b57-e8d0-4612-8a69-c54ce6e4cd42.webp?v=1714910295","width":2000},{"alt":null,"id":23893154627683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910467690595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487810666595,"product_id":7414970056803,"position":10,"created_at":"2024-05-05T19:58:18+08:00","updated_at":"2024-05-05T19:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298","variant_ids":[41910467690595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-FZ05","featured_media":{"alt":null,"id":23893154627683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910467690595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487810666595,"product_id":7414970056803,"position":10,"created_at":"2024-05-05T19:58:18+08:00","updated_at":"2024-05-05T19:58:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298","variant_ids":[41910467690595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-FZ05","featured_media":{"alt":null,"id":23893154627683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bcc289353539aecdb8ec2454fcd8fd80300114_dcea35d3-832b-4e0d-9cb4-3fd4069a01b8.webp?v=1714910298"}},"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: "停產" }