$product = {"id":7411358335075,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb110","description":null,"published_at":"2024-06-11T17:42:48+08:00","created_at":"2024-05-05T00:14:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41897885958243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31480222285923,"product_id":7411358335075,"position":2,"created_at":"2024-05-05T00:14:22+08:00","updated_at":"2024-05-05T00:14:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262","variant_ids":[41897885958243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB110","featured_media":{"alt":null,"id":23885473546339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbda0632bd605a98d052a227e1360cf401775ae3_f2c3c3a3-4887-4421-af62-6a8fa8575bb6.webp?v=1714839260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebeb4bbe6cd0a306b0eb3d175ff1592e896c2da_229f2a7e-f804-4ca9-8f3b-6f22c89c83e4.webp?v=1714839264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d62385cfb04de832315da033032e1c66ac3f7b_122b4ff9-796e-4d11-a9a3-359a131dde7a.webp?v=1714839266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7395419a64005f3fbc427227fab588061a0e61f_e8802d3b-c55f-4e01-bb3b-e1ba4a594564.webp?v=1714839269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1f775d6d2a0ca8c8a97f15830c6d8210570599_464a85b9-8f51-4092-bb2a-cb31c2cefc73.webp?v=1714839271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/156d5ddda0ba4c57365b63b7e2f0b3f2f2a1b9ca_1d590f03-e0db-498b-83e1-cbca3b35e110.webp?v=1714839274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545777c9aba54ad2ca976a1b7f45177048247ec2_b4799958-e60d-4a54-96e1-69466f591fea.webp?v=1714839276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8cf5503d0efe4dfcee73cd6dbdaf69f926767a4_50a60632-5af5-4a96-9a1d-e93c83dd6435.webp?v=1714839278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0682937d30758be14a961f1f41339f108fa58929_98fcb7a3-9dc7-4caa-a433-85eddd0fb53e.webp?v=1714839281"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbda0632bd605a98d052a227e1360cf401775ae3_f2c3c3a3-4887-4421-af62-6a8fa8575bb6.webp?v=1714839260","options":["color"],"media":[{"alt":null,"id":23885472989283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbda0632bd605a98d052a227e1360cf401775ae3_f2c3c3a3-4887-4421-af62-6a8fa8575bb6.webp?v=1714839260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbda0632bd605a98d052a227e1360cf401775ae3_f2c3c3a3-4887-4421-af62-6a8fa8575bb6.webp?v=1714839260","width":2000},{"alt":null,"id":23885473546339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262","width":2000},{"alt":null,"id":23885474005091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebeb4bbe6cd0a306b0eb3d175ff1592e896c2da_229f2a7e-f804-4ca9-8f3b-6f22c89c83e4.webp?v=1714839264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebeb4bbe6cd0a306b0eb3d175ff1592e896c2da_229f2a7e-f804-4ca9-8f3b-6f22c89c83e4.webp?v=1714839264","width":2000},{"alt":null,"id":23885474627683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d62385cfb04de832315da033032e1c66ac3f7b_122b4ff9-796e-4d11-a9a3-359a131dde7a.webp?v=1714839266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d62385cfb04de832315da033032e1c66ac3f7b_122b4ff9-796e-4d11-a9a3-359a131dde7a.webp?v=1714839266","width":2000},{"alt":null,"id":23885475184739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7395419a64005f3fbc427227fab588061a0e61f_e8802d3b-c55f-4e01-bb3b-e1ba4a594564.webp?v=1714839269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7395419a64005f3fbc427227fab588061a0e61f_e8802d3b-c55f-4e01-bb3b-e1ba4a594564.webp?v=1714839269","width":2000},{"alt":null,"id":23885475741795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1f775d6d2a0ca8c8a97f15830c6d8210570599_464a85b9-8f51-4092-bb2a-cb31c2cefc73.webp?v=1714839271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1f775d6d2a0ca8c8a97f15830c6d8210570599_464a85b9-8f51-4092-bb2a-cb31c2cefc73.webp?v=1714839271","width":2000},{"alt":null,"id":23885476167779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/156d5ddda0ba4c57365b63b7e2f0b3f2f2a1b9ca_1d590f03-e0db-498b-83e1-cbca3b35e110.webp?v=1714839274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/156d5ddda0ba4c57365b63b7e2f0b3f2f2a1b9ca_1d590f03-e0db-498b-83e1-cbca3b35e110.webp?v=1714839274","width":2000},{"alt":null,"id":23885476724835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545777c9aba54ad2ca976a1b7f45177048247ec2_b4799958-e60d-4a54-96e1-69466f591fea.webp?v=1714839276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545777c9aba54ad2ca976a1b7f45177048247ec2_b4799958-e60d-4a54-96e1-69466f591fea.webp?v=1714839276","width":2000},{"alt":null,"id":23885477085283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8cf5503d0efe4dfcee73cd6dbdaf69f926767a4_50a60632-5af5-4a96-9a1d-e93c83dd6435.webp?v=1714839278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8cf5503d0efe4dfcee73cd6dbdaf69f926767a4_50a60632-5af5-4a96-9a1d-e93c83dd6435.webp?v=1714839278","width":2000},{"alt":null,"id":23885477609571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0682937d30758be14a961f1f41339f108fa58929_98fcb7a3-9dc7-4caa-a433-85eddd0fb53e.webp?v=1714839281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0682937d30758be14a961f1f41339f108fa58929_98fcb7a3-9dc7-4caa-a433-85eddd0fb53e.webp?v=1714839281","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897885958243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31480222285923,"product_id":7411358335075,"position":2,"created_at":"2024-05-05T00:14:22+08:00","updated_at":"2024-05-05T00:14:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262","variant_ids":[41897885958243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB110","featured_media":{"alt":null,"id":23885473546339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897885958243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31480222285923,"product_id":7411358335075,"position":2,"created_at":"2024-05-05T00:14:22+08:00","updated_at":"2024-05-05T00:14:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262","variant_ids":[41897885958243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB110","featured_media":{"alt":null,"id":23885473546339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7799b31b55ec9ee6545342f1e8759f62790662ae_8eaf5b75-30fc-46f4-93cc-58846c451fd3.webp?v=1714839262"}},"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: "停產" }