$product = {"id":7408417276003,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑","handle":"iphone-12-pro-max-mod-nx-printable-pb05","description":null,"published_at":"2024-06-11T16:36:39+08:00","created_at":"2024-05-03T15:22:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41885245079651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472218636387,"product_id":7408417276003,"position":6,"created_at":"2024-05-03T15:22:41+08:00","updated_at":"2024-05-03T15:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962","variant_ids":[41885245079651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB05","featured_media":{"alt":null,"id":23877134418019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb2b1855c773681993401b23dad4121dae6aa37_1085b160-27c3-4d81-a4ed-cacef5b98b8b.webp?v=1714720950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed604bbaf69716bd58ae18e1a7179757b6e1288e_1ae43bac-531c-47f8-a79b-683b624cd7ca.webp?v=1714720952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624cf613e7b07b015c2dd713527510dd6628eb4b_f5e26560-d13e-45d4-b8ca-8e13d571b7b2.webp?v=1714720955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592250dde3e40af6413b2ebabe9fceecea1c660b_71184d92-22b9-4ef2-b46e-2758f9423950.webp?v=1714720957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aa3ffbda96fab0ea6a3b5ac29c82f309705d5af_5e6fead4-2124-4ba5-ae28-33f68b735640.webp?v=1714720959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097096f9e5c9764cbcec84a55f5e17c08e104fc3_70099433-8dca-4730-9827-9c128e047cbe.webp?v=1714720964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44283b4fdb511bc930fd16a069417749bf843f5b_607d92f4-fbee-4ca4-8877-e8d1d5406896.webp?v=1714720966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf22642d2efbb7f511f92586f799dcbccaffd43_b36ecd2e-ea4c-40d7-afd6-b5be15b51b1b.webp?v=1714720969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9137683e0a7b518e67f83746b6cf211d443e1fc_ef832142-a0a2-4f3e-be3f-4a5c36dfd9d0.webp?v=1714720971"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb2b1855c773681993401b23dad4121dae6aa37_1085b160-27c3-4d81-a4ed-cacef5b98b8b.webp?v=1714720950","options":["color"],"media":[{"alt":null,"id":23877130879075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb2b1855c773681993401b23dad4121dae6aa37_1085b160-27c3-4d81-a4ed-cacef5b98b8b.webp?v=1714720950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb2b1855c773681993401b23dad4121dae6aa37_1085b160-27c3-4d81-a4ed-cacef5b98b8b.webp?v=1714720950","width":2000},{"alt":null,"id":23877131534435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed604bbaf69716bd58ae18e1a7179757b6e1288e_1ae43bac-531c-47f8-a79b-683b624cd7ca.webp?v=1714720952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed604bbaf69716bd58ae18e1a7179757b6e1288e_1ae43bac-531c-47f8-a79b-683b624cd7ca.webp?v=1714720952","width":2000},{"alt":null,"id":23877131993187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624cf613e7b07b015c2dd713527510dd6628eb4b_f5e26560-d13e-45d4-b8ca-8e13d571b7b2.webp?v=1714720955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624cf613e7b07b015c2dd713527510dd6628eb4b_f5e26560-d13e-45d4-b8ca-8e13d571b7b2.webp?v=1714720955","width":2000},{"alt":null,"id":23877132451939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592250dde3e40af6413b2ebabe9fceecea1c660b_71184d92-22b9-4ef2-b46e-2758f9423950.webp?v=1714720957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592250dde3e40af6413b2ebabe9fceecea1c660b_71184d92-22b9-4ef2-b46e-2758f9423950.webp?v=1714720957","width":2000},{"alt":null,"id":23877132910691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aa3ffbda96fab0ea6a3b5ac29c82f309705d5af_5e6fead4-2124-4ba5-ae28-33f68b735640.webp?v=1714720959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aa3ffbda96fab0ea6a3b5ac29c82f309705d5af_5e6fead4-2124-4ba5-ae28-33f68b735640.webp?v=1714720959","width":2000},{"alt":null,"id":23877134418019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962","width":2000},{"alt":null,"id":23877134909539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097096f9e5c9764cbcec84a55f5e17c08e104fc3_70099433-8dca-4730-9827-9c128e047cbe.webp?v=1714720964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097096f9e5c9764cbcec84a55f5e17c08e104fc3_70099433-8dca-4730-9827-9c128e047cbe.webp?v=1714720964","width":2000},{"alt":null,"id":23877135401059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44283b4fdb511bc930fd16a069417749bf843f5b_607d92f4-fbee-4ca4-8877-e8d1d5406896.webp?v=1714720966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44283b4fdb511bc930fd16a069417749bf843f5b_607d92f4-fbee-4ca4-8877-e8d1d5406896.webp?v=1714720966","width":2000},{"alt":null,"id":23877135958115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf22642d2efbb7f511f92586f799dcbccaffd43_b36ecd2e-ea4c-40d7-afd6-b5be15b51b1b.webp?v=1714720969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf22642d2efbb7f511f92586f799dcbccaffd43_b36ecd2e-ea4c-40d7-afd6-b5be15b51b1b.webp?v=1714720969","width":2000},{"alt":null,"id":23877136416867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9137683e0a7b518e67f83746b6cf211d443e1fc_ef832142-a0a2-4f3e-be3f-4a5c36dfd9d0.webp?v=1714720971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9137683e0a7b518e67f83746b6cf211d443e1fc_ef832142-a0a2-4f3e-be3f-4a5c36dfd9d0.webp?v=1714720971","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885245079651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472218636387,"product_id":7408417276003,"position":6,"created_at":"2024-05-03T15:22:41+08:00","updated_at":"2024-05-03T15:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962","variant_ids":[41885245079651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB05","featured_media":{"alt":null,"id":23877134418019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885245079651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472218636387,"product_id":7408417276003,"position":6,"created_at":"2024-05-03T15:22:41+08:00","updated_at":"2024-05-03T15:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962","variant_ids":[41885245079651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-PB05","featured_media":{"alt":null,"id":23877134418019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc46729717ef5f25f48d029fb51bc934bb0de29_7a3ec8a7-74c7-4635-a993-666dccb5160b.webp?v=1714720962"}},"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: "停產" }