$product = {"id":7414935158883,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb38","description":null,"published_at":"2024-06-11T17:53:30+08:00","created_at":"2024-05-05T19:51:49+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 12 mini","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":41910103113827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31487721898083,"product_id":7414935158883,"position":5,"created_at":"2024-05-05T19:52:01+08:00","updated_at":"2024-05-05T19:52:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921","variant_ids":[41910103113827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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":"MPB0118424-PB38","featured_media":{"alt":null,"id":23893065793635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed93f1363bf8caa2b342e12f833abeb9a88f328f_8d95018b-ed1e-4e6c-bef5-08de99555487.webp?v=1714909911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da15817dea46c699b5d38876584304d80514d851_003259bd-e0c4-4caf-9d4d-a1408ebd9c63.webp?v=1714909914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/284f894b7eef9bfd84600b04732e74dad83e845f_a0aaddb3-3db6-4bb8-a3e7-5e2612d3f606.webp?v=1714909916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de273c34c6619a0d3457317968991b90545e10b9_11699631-826d-4d9c-b595-48f458a34aa3.webp?v=1714909918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f431a792e9dc20879d53741d5689a2070e07c6_bad687be-3868-4f31-a740-d033d1d3253d.webp?v=1714909923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5b9fc080f8d9112c46a25349e9df73429ff4f5_51fd1b27-bc93-4afa-8f3d-8f656e67da65.webp?v=1714909925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3965a11bb5b7d55b76abe5a8e2cebeb93565c0a_0af0dc15-b1e8-482b-98d5-b069ff1058bb.webp?v=1714909927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330d909d43e92490cf1b9db5502b791cbc1ad32c_ee2aa5f0-2dec-42fb-a884-e0aecf1630a0.webp?v=1714909930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d370563a8373371abb837cfba142f52e2a81d9f_0cd67946-a139-4247-bdbd-a1af2c26d105.webp?v=1714909932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5b2db930a22087b483f1f274298271eb3cf841_bc3b0026-6a1f-47b4-9626-e9db5f5a2503.webp?v=1714909934"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed93f1363bf8caa2b342e12f833abeb9a88f328f_8d95018b-ed1e-4e6c-bef5-08de99555487.webp?v=1714909911","options":["color"],"media":[{"alt":null,"id":23893063499875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed93f1363bf8caa2b342e12f833abeb9a88f328f_8d95018b-ed1e-4e6c-bef5-08de99555487.webp?v=1714909911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed93f1363bf8caa2b342e12f833abeb9a88f328f_8d95018b-ed1e-4e6c-bef5-08de99555487.webp?v=1714909911","width":2000},{"alt":null,"id":23893063991395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da15817dea46c699b5d38876584304d80514d851_003259bd-e0c4-4caf-9d4d-a1408ebd9c63.webp?v=1714909914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da15817dea46c699b5d38876584304d80514d851_003259bd-e0c4-4caf-9d4d-a1408ebd9c63.webp?v=1714909914","width":2000},{"alt":null,"id":23893064581219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/284f894b7eef9bfd84600b04732e74dad83e845f_a0aaddb3-3db6-4bb8-a3e7-5e2612d3f606.webp?v=1714909916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/284f894b7eef9bfd84600b04732e74dad83e845f_a0aaddb3-3db6-4bb8-a3e7-5e2612d3f606.webp?v=1714909916","width":2000},{"alt":null,"id":23893065039971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de273c34c6619a0d3457317968991b90545e10b9_11699631-826d-4d9c-b595-48f458a34aa3.webp?v=1714909918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de273c34c6619a0d3457317968991b90545e10b9_11699631-826d-4d9c-b595-48f458a34aa3.webp?v=1714909918","width":2000},{"alt":null,"id":23893065793635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921","width":2000},{"alt":null,"id":23893066219619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f431a792e9dc20879d53741d5689a2070e07c6_bad687be-3868-4f31-a740-d033d1d3253d.webp?v=1714909923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f431a792e9dc20879d53741d5689a2070e07c6_bad687be-3868-4f31-a740-d033d1d3253d.webp?v=1714909923","width":2000},{"alt":null,"id":23893066907747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5b9fc080f8d9112c46a25349e9df73429ff4f5_51fd1b27-bc93-4afa-8f3d-8f656e67da65.webp?v=1714909925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5b9fc080f8d9112c46a25349e9df73429ff4f5_51fd1b27-bc93-4afa-8f3d-8f656e67da65.webp?v=1714909925","width":2000},{"alt":null,"id":23893067268195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3965a11bb5b7d55b76abe5a8e2cebeb93565c0a_0af0dc15-b1e8-482b-98d5-b069ff1058bb.webp?v=1714909927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3965a11bb5b7d55b76abe5a8e2cebeb93565c0a_0af0dc15-b1e8-482b-98d5-b069ff1058bb.webp?v=1714909927","width":2000},{"alt":null,"id":23893067694179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330d909d43e92490cf1b9db5502b791cbc1ad32c_ee2aa5f0-2dec-42fb-a884-e0aecf1630a0.webp?v=1714909930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/330d909d43e92490cf1b9db5502b791cbc1ad32c_ee2aa5f0-2dec-42fb-a884-e0aecf1630a0.webp?v=1714909930","width":2000},{"alt":null,"id":23893068349539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d370563a8373371abb837cfba142f52e2a81d9f_0cd67946-a139-4247-bdbd-a1af2c26d105.webp?v=1714909932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d370563a8373371abb837cfba142f52e2a81d9f_0cd67946-a139-4247-bdbd-a1af2c26d105.webp?v=1714909932","width":2000},{"alt":null,"id":23893069168739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5b2db930a22087b483f1f274298271eb3cf841_bc3b0026-6a1f-47b4-9626-e9db5f5a2503.webp?v=1714909934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5b2db930a22087b483f1f274298271eb3cf841_bc3b0026-6a1f-47b4-9626-e9db5f5a2503.webp?v=1714909934","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910103113827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31487721898083,"product_id":7414935158883,"position":5,"created_at":"2024-05-05T19:52:01+08:00","updated_at":"2024-05-05T19:52:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921","variant_ids":[41910103113827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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":"MPB0118424-PB38","featured_media":{"alt":null,"id":23893065793635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910103113827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31487721898083,"product_id":7414935158883,"position":5,"created_at":"2024-05-05T19:52:01+08:00","updated_at":"2024-05-05T19:52:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921","variant_ids":[41910103113827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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":"MPB0118424-PB38","featured_media":{"alt":null,"id":23893065793635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9ca0f3b07154c7a3d17bd882a18c5cb20b1727_79fd6515-0b7c-4c95-9719-a3691cadbf0e.webp?v=1714909921"}},"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: "停產" }