$product = {"id":7414977298531,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pc08","description":null,"published_at":"2024-06-11T17:54:39+08:00","created_at":"2024-05-05T19:59:24+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 pro max","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":41910548070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826657379,"product_id":7414977298531,"position":2,"created_at":"2024-05-05T19:59:28+08:00","updated_at":"2024-05-05T19:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369","variant_ids":[41910548070499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - 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":"MPB0118724-PC08","featured_media":{"alt":null,"id":23893170618467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd59eff0a80cf6485d1c69c047322be356458f_e1a1d782-da8d-4915-87b1-0914ce769aa6.webp?v=1714910366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6c324cf9dc2a3842b98dca648ef28b3fab9e88_b19bf4b0-02f1-417a-9395-f939a181d803.webp?v=1714910371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1cda7cd218b220bf14ff6b2275a6c89ae23b5c_576e0e6f-81a9-4935-ac0f-5fcca767edc3.webp?v=1714910373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff8b27bac5b12a9e1334650823fa20c2ab10a70_f02d4824-f6b9-43a5-8ec8-45850b226a00.webp?v=1714910375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d398585d40da1c163a853809e7eff78388931cc6_7cb8c054-712b-4dd5-9a0f-4716a2d797a2.webp?v=1714910378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45fad974c41e811874fdaea8fe61528c0b9652e_34106e86-8bdc-4dd4-82fe-a383287bf713.webp?v=1714910380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e35aaa817ba5b1dba2c38bb0b9e4a25e0ffa618_f7e7bce6-c640-4128-af58-d9a3b3104944.webp?v=1714910382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d5f09c8a0e8fbf8398f4b203662cce2f3fbbcd_dd7fd4b4-3fa1-4a50-8f0e-770770d2399f.webp?v=1714910384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d8bc2017dc3a5596e8e68f80615d083fdf70469_266eb1fb-734b-48fb-98e9-3945c110164d.webp?v=1714910387"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd59eff0a80cf6485d1c69c047322be356458f_e1a1d782-da8d-4915-87b1-0914ce769aa6.webp?v=1714910366","options":["color"],"media":[{"alt":null,"id":23893170258019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd59eff0a80cf6485d1c69c047322be356458f_e1a1d782-da8d-4915-87b1-0914ce769aa6.webp?v=1714910366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11fd59eff0a80cf6485d1c69c047322be356458f_e1a1d782-da8d-4915-87b1-0914ce769aa6.webp?v=1714910366","width":2000},{"alt":null,"id":23893170618467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369","width":2000},{"alt":null,"id":23893171011683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6c324cf9dc2a3842b98dca648ef28b3fab9e88_b19bf4b0-02f1-417a-9395-f939a181d803.webp?v=1714910371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6c324cf9dc2a3842b98dca648ef28b3fab9e88_b19bf4b0-02f1-417a-9395-f939a181d803.webp?v=1714910371","width":2000},{"alt":null,"id":23893171470435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1cda7cd218b220bf14ff6b2275a6c89ae23b5c_576e0e6f-81a9-4935-ac0f-5fcca767edc3.webp?v=1714910373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1cda7cd218b220bf14ff6b2275a6c89ae23b5c_576e0e6f-81a9-4935-ac0f-5fcca767edc3.webp?v=1714910373","width":2000},{"alt":null,"id":23893171863651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff8b27bac5b12a9e1334650823fa20c2ab10a70_f02d4824-f6b9-43a5-8ec8-45850b226a00.webp?v=1714910375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff8b27bac5b12a9e1334650823fa20c2ab10a70_f02d4824-f6b9-43a5-8ec8-45850b226a00.webp?v=1714910375","width":2000},{"alt":null,"id":23893172584547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d398585d40da1c163a853809e7eff78388931cc6_7cb8c054-712b-4dd5-9a0f-4716a2d797a2.webp?v=1714910378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d398585d40da1c163a853809e7eff78388931cc6_7cb8c054-712b-4dd5-9a0f-4716a2d797a2.webp?v=1714910378","width":2000},{"alt":null,"id":23893172977763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45fad974c41e811874fdaea8fe61528c0b9652e_34106e86-8bdc-4dd4-82fe-a383287bf713.webp?v=1714910380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45fad974c41e811874fdaea8fe61528c0b9652e_34106e86-8bdc-4dd4-82fe-a383287bf713.webp?v=1714910380","width":2000},{"alt":null,"id":23893173534819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e35aaa817ba5b1dba2c38bb0b9e4a25e0ffa618_f7e7bce6-c640-4128-af58-d9a3b3104944.webp?v=1714910382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e35aaa817ba5b1dba2c38bb0b9e4a25e0ffa618_f7e7bce6-c640-4128-af58-d9a3b3104944.webp?v=1714910382","width":2000},{"alt":null,"id":23893173960803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d5f09c8a0e8fbf8398f4b203662cce2f3fbbcd_dd7fd4b4-3fa1-4a50-8f0e-770770d2399f.webp?v=1714910384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d5f09c8a0e8fbf8398f4b203662cce2f3fbbcd_dd7fd4b4-3fa1-4a50-8f0e-770770d2399f.webp?v=1714910384","width":2000},{"alt":null,"id":23893174812771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d8bc2017dc3a5596e8e68f80615d083fdf70469_266eb1fb-734b-48fb-98e9-3945c110164d.webp?v=1714910387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d8bc2017dc3a5596e8e68f80615d083fdf70469_266eb1fb-734b-48fb-98e9-3945c110164d.webp?v=1714910387","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910548070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826657379,"product_id":7414977298531,"position":2,"created_at":"2024-05-05T19:59:28+08:00","updated_at":"2024-05-05T19:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369","variant_ids":[41910548070499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - 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":"MPB0118724-PC08","featured_media":{"alt":null,"id":23893170618467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910548070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826657379,"product_id":7414977298531,"position":2,"created_at":"2024-05-05T19:59:28+08:00","updated_at":"2024-05-05T19:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369","variant_ids":[41910548070499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - 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":"MPB0118724-PC08","featured_media":{"alt":null,"id":23893170618467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c761e7262c332b924433b3ce97544a3b44b3be20_63d9741d-03a1-429a-82bd-71e3d6532d7d.webp?v=1714910369"}},"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: "停產" }