$product = {"id":7938083389539,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan Q版角色大集合","handle":"iphone-14-plus-mod-nx-magsafe-xw01","description":null,"published_at":"2025-12-12T09:58:46+08:00","created_at":"2025-12-11T16:59:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 14 Plus","merge","reseller-attack-on-titan"],"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":43885040402531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW01","requires_shipping":true,"taxable":true,"featured_image":{"id":34933773926499,"product_id":7938083389539,"position":11,"created_at":"2025-12-11T17:00:08+08:00","updated_at":"2025-12-11T17:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611","variant_ids":[43885040402531]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan Q版角色大集合 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW01","featured_media":{"alt":null,"id":26496143196259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f565d05895d358cb33def31cfcb2d6ccb000de9d.webp?v=1765443604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12001821651ef8cbcd049a271fcf44c12a91e493.webp?v=1765443604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8414d5a81d195fe9113b1ff046f3d2a085c1e6e.webp?v=1765443605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e7e49af8c5980347b4c6b728d14f42d18863.webp?v=1765443605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca8d2dd14ca4c4a7a38752cafbcbeb9522d6cd6.webp?v=1765443607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64567bd1713d4c4a2a3452b58a89875e4ea53745.webp?v=1765443608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea516cb248c3bfbe2075359022953971a738ed46.webp?v=1765443608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b0b4f0bc34359ddba45186e5bed9febedbb08e.webp?v=1765443609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e828d69b57f3f4d17b5e1d642af29040fb140cbe.webp?v=1765443609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e163d3d02500a66db66cfe00b952df6be65001.webp?v=1765443610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36fb2ecd9b6f84b9f87443972b18b81d9e83e3c7.webp?v=1765443611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60fe06ccb0ac75faf74dd1fb92aae790df1bc2.webp?v=1765443612"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f565d05895d358cb33def31cfcb2d6ccb000de9d.webp?v=1765443604","options":["color"],"media":[{"alt":null,"id":26496141983843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f565d05895d358cb33def31cfcb2d6ccb000de9d.webp?v=1765443604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f565d05895d358cb33def31cfcb2d6ccb000de9d.webp?v=1765443604","width":2000},{"alt":null,"id":26496142082147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12001821651ef8cbcd049a271fcf44c12a91e493.webp?v=1765443604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12001821651ef8cbcd049a271fcf44c12a91e493.webp?v=1765443604","width":2000},{"alt":null,"id":26496142213219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8414d5a81d195fe9113b1ff046f3d2a085c1e6e.webp?v=1765443605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8414d5a81d195fe9113b1ff046f3d2a085c1e6e.webp?v=1765443605","width":2000},{"alt":null,"id":26496142377059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e7e49af8c5980347b4c6b728d14f42d18863.webp?v=1765443605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e7e49af8c5980347b4c6b728d14f42d18863.webp?v=1765443605","width":2000},{"alt":null,"id":26496142639203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca8d2dd14ca4c4a7a38752cafbcbeb9522d6cd6.webp?v=1765443607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca8d2dd14ca4c4a7a38752cafbcbeb9522d6cd6.webp?v=1765443607","width":2000},{"alt":null,"id":26496142737507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64567bd1713d4c4a2a3452b58a89875e4ea53745.webp?v=1765443608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64567bd1713d4c4a2a3452b58a89875e4ea53745.webp?v=1765443608","width":2000},{"alt":null,"id":26496142803043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea516cb248c3bfbe2075359022953971a738ed46.webp?v=1765443608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea516cb248c3bfbe2075359022953971a738ed46.webp?v=1765443608","width":2000},{"alt":null,"id":26496142901347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b0b4f0bc34359ddba45186e5bed9febedbb08e.webp?v=1765443609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b0b4f0bc34359ddba45186e5bed9febedbb08e.webp?v=1765443609","width":2000},{"alt":null,"id":26496142966883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e828d69b57f3f4d17b5e1d642af29040fb140cbe.webp?v=1765443609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e828d69b57f3f4d17b5e1d642af29040fb140cbe.webp?v=1765443609","width":2000},{"alt":null,"id":26496143032419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e163d3d02500a66db66cfe00b952df6be65001.webp?v=1765443610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e163d3d02500a66db66cfe00b952df6be65001.webp?v=1765443610","width":2000},{"alt":null,"id":26496143196259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611","width":2000},{"alt":null,"id":26496143327331,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36fb2ecd9b6f84b9f87443972b18b81d9e83e3c7.webp?v=1765443611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36fb2ecd9b6f84b9f87443972b18b81d9e83e3c7.webp?v=1765443611","width":2000},{"alt":null,"id":26496143491171,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60fe06ccb0ac75faf74dd1fb92aae790df1bc2.webp?v=1765443612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60fe06ccb0ac75faf74dd1fb92aae790df1bc2.webp?v=1765443612","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43885040402531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW01","requires_shipping":true,"taxable":true,"featured_image":{"id":34933773926499,"product_id":7938083389539,"position":11,"created_at":"2025-12-11T17:00:08+08:00","updated_at":"2025-12-11T17:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611","variant_ids":[43885040402531]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan Q版角色大集合 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW01","featured_media":{"alt":null,"id":26496143196259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43885040402531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW01","requires_shipping":true,"taxable":true,"featured_image":{"id":34933773926499,"product_id":7938083389539,"position":11,"created_at":"2025-12-11T17:00:08+08:00","updated_at":"2025-12-11T17:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611","variant_ids":[43885040402531]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan Q版角色大集合 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW01","featured_media":{"alt":null,"id":26496143196259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066222e2f5c135c2ee990ce0cde62d07adbdf46a.webp?v=1765443611"}},"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: "停產" }