$product = {"id":7937884880995,"title":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人","handle":"iphone-15-plus-solidx-xu17","description":null,"published_at":"2025-12-12T10:40:02+08:00","created_at":"2025-12-11T15:50:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 15 Plus","merge","reseller-attack-on-titan"],"price":125000,"price_min":125000,"price_max":125000,"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":43884277923939,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947255395,"product_id":7937884880995,"position":6,"created_at":"2025-12-11T15:50:23+08:00","updated_at":"2025-12-11T15:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425","variant_ids":[43884277923939]},"available":true,"name":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-XU17","featured_media":{"alt":null,"id":26495319015523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884281528419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947353699,"product_id":7937884880995,"position":7,"created_at":"2025-12-11T15:50:24+08:00","updated_at":"2025-12-11T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426","variant_ids":[43884281528419]},"available":true,"name":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-XU17","featured_media":{"alt":null,"id":26495319113827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6660cbf755ab3ca0fcf452ad3ebb274d0b382588.webp?v=1765439420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e843c29a029ae802e69504dbe230b02cd9acea2e.webp?v=1765439420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0eb8662947d63ea9e6b787aaae44110f656093a.webp?v=1765439421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ef7ad6fb9a3a034651d7fe02ac87b9b472afa.webp?v=1765439421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe089a6ef9cdeabaccb3d05eaf08d04fb7b3449.webp?v=1765439424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33fb4efcd17f6b3e909c9daf5540cc0afa471208.webp?v=1765439426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d80be94bb2eda4503a68add6ec81cd8ccccd0b.webp?v=1765439426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e311bb2a4917f4f26663665c407b95cde9020905.webp?v=1765439427"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6660cbf755ab3ca0fcf452ad3ebb274d0b382588.webp?v=1765439420","options":["color"],"media":[{"alt":null,"id":26495318065251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6660cbf755ab3ca0fcf452ad3ebb274d0b382588.webp?v=1765439420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6660cbf755ab3ca0fcf452ad3ebb274d0b382588.webp?v=1765439420","width":2000},{"alt":null,"id":26495318229091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e843c29a029ae802e69504dbe230b02cd9acea2e.webp?v=1765439420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e843c29a029ae802e69504dbe230b02cd9acea2e.webp?v=1765439420","width":2000},{"alt":null,"id":26495318360163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0eb8662947d63ea9e6b787aaae44110f656093a.webp?v=1765439421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0eb8662947d63ea9e6b787aaae44110f656093a.webp?v=1765439421","width":2000},{"alt":null,"id":26495318556771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ef7ad6fb9a3a034651d7fe02ac87b9b472afa.webp?v=1765439421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6ef7ad6fb9a3a034651d7fe02ac87b9b472afa.webp?v=1765439421","width":2000},{"alt":null,"id":26495318818915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe089a6ef9cdeabaccb3d05eaf08d04fb7b3449.webp?v=1765439424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe089a6ef9cdeabaccb3d05eaf08d04fb7b3449.webp?v=1765439424","width":2000},{"alt":null,"id":26495319015523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425","width":2000},{"alt":null,"id":26495319113827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426","width":2000},{"alt":null,"id":26495319212131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33fb4efcd17f6b3e909c9daf5540cc0afa471208.webp?v=1765439426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33fb4efcd17f6b3e909c9daf5540cc0afa471208.webp?v=1765439426","width":2000},{"alt":null,"id":26495319277667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d80be94bb2eda4503a68add6ec81cd8ccccd0b.webp?v=1765439426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d80be94bb2eda4503a68add6ec81cd8ccccd0b.webp?v=1765439426","width":2000},{"alt":null,"id":26495319310435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e311bb2a4917f4f26663665c407b95cde9020905.webp?v=1765439427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e311bb2a4917f4f26663665c407b95cde9020905.webp?v=1765439427","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43884277923939,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947255395,"product_id":7937884880995,"position":6,"created_at":"2025-12-11T15:50:23+08:00","updated_at":"2025-12-11T15:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425","variant_ids":[43884277923939]},"available":true,"name":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-XU17","featured_media":{"alt":null,"id":26495319015523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884281528419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947353699,"product_id":7937884880995,"position":7,"created_at":"2025-12-11T15:50:24+08:00","updated_at":"2025-12-11T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426","variant_ids":[43884281528419]},"available":true,"name":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-XU17","featured_media":{"alt":null,"id":26495319113827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36bca30209802fbe1a921c52865d47cee7b1db7.webp?v=1765439426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884277923939,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947255395,"product_id":7937884880995,"position":6,"created_at":"2025-12-11T15:50:23+08:00","updated_at":"2025-12-11T15:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425","variant_ids":[43884277923939]},"available":true,"name":"iPhone 15 Plus SolidX 進擊的巨人 Attack on Titan Q版巨人 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-XU17","featured_media":{"alt":null,"id":26495319015523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e951631b9b736b3d91e0bff225705a2874478.webp?v=1765439425"}},"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: "停產" }