$product = {"id":7824374988899,"title":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款","handle":"iphone-15-plus-solidx-po43","description":null,"published_at":"2025-07-01T17:58:34+08:00","created_at":"2025-06-20T17:49:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tom-and-jerry","device-iPhone 15 Plus","merge","reseller-tom-and-jerry"],"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":43478561456227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970037452899,"product_id":7824374988899,"position":8,"created_at":"2025-12-19T14:59:39+08:00","updated_at":"2025-12-19T14:59:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581","variant_ids":[43478561456227]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - 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-PO43","featured_media":{"alt":null,"id":26531353100387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478563749987,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970036961379,"product_id":7824374988899,"position":5,"created_at":"2025-12-19T14:59:37+08:00","updated_at":"2025-12-19T14:59:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579","variant_ids":[43478563749987]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-PO43","featured_media":{"alt":null,"id":26531352576099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478563946595,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970036535395,"product_id":7824374988899,"position":3,"created_at":"2025-12-19T14:59:36+08:00","updated_at":"2025-12-19T14:59:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578","variant_ids":[43478563946595]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - 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-PO43","featured_media":{"alt":null,"id":26531352182883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-PO43.png?v=1750412990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PO43_2badc763-3280-4970-b5ac-577787dc7ed1.png?v=1750821296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea4a577dfae2e2b0e8204bd0db9e00ea8c4782e.webp?v=1766127579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3823992323770cf9db522ba6dd1f9f13c2b9735.webp?v=1766127580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9cff07509e80f86591b7b92d687af25f53c0.webp?v=1766127580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a15b9cfed9a89e38a9221aaf9e450fd5f8fa4f8.webp?v=1766127581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2195d75cf2155e333ff08c3dee448cc010d6b63e.webp?v=1766127582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad63f04e7293775d72e7ee2a67f23403dda3908c.webp?v=1766127584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f661e7f2ac0ec00c1d3423d17d3d45c02f6b0ab6.webp?v=1766127652"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-PO43.png?v=1750412990","options":["color"],"media":[{"alt":null,"id":25722000769123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-PO43.png?v=1750412990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-PO43.png?v=1750412990","width":2000},{"alt":null,"id":25735266631779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PO43_2badc763-3280-4970-b5ac-577787dc7ed1.png?v=1750821296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PO43_2badc763-3280-4970-b5ac-577787dc7ed1.png?v=1750821296","width":2000},{"alt":null,"id":26531352182883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578","width":2000},{"alt":null,"id":26531352412259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea4a577dfae2e2b0e8204bd0db9e00ea8c4782e.webp?v=1766127579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea4a577dfae2e2b0e8204bd0db9e00ea8c4782e.webp?v=1766127579","width":2000},{"alt":null,"id":26531352576099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579","width":2000},{"alt":null,"id":26531352772707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3823992323770cf9db522ba6dd1f9f13c2b9735.webp?v=1766127580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3823992323770cf9db522ba6dd1f9f13c2b9735.webp?v=1766127580","width":2000},{"alt":null,"id":26531353002083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9cff07509e80f86591b7b92d687af25f53c0.webp?v=1766127580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9cff07509e80f86591b7b92d687af25f53c0.webp?v=1766127580","width":2000},{"alt":null,"id":26531353100387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581","width":2000},{"alt":null,"id":26531353395299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a15b9cfed9a89e38a9221aaf9e450fd5f8fa4f8.webp?v=1766127581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a15b9cfed9a89e38a9221aaf9e450fd5f8fa4f8.webp?v=1766127581","width":2000},{"alt":null,"id":26531353722979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2195d75cf2155e333ff08c3dee448cc010d6b63e.webp?v=1766127582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2195d75cf2155e333ff08c3dee448cc010d6b63e.webp?v=1766127582","width":2000},{"alt":null,"id":26531354214499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad63f04e7293775d72e7ee2a67f23403dda3908c.webp?v=1766127584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad63f04e7293775d72e7ee2a67f23403dda3908c.webp?v=1766127584","width":2000},{"alt":null,"id":26531363520611,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f661e7f2ac0ec00c1d3423d17d3d45c02f6b0ab6.webp?v=1766127652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f661e7f2ac0ec00c1d3423d17d3d45c02f6b0ab6.webp?v=1766127652","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43478561456227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970037452899,"product_id":7824374988899,"position":8,"created_at":"2025-12-19T14:59:39+08:00","updated_at":"2025-12-19T14:59:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581","variant_ids":[43478561456227]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - 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-PO43","featured_media":{"alt":null,"id":26531353100387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478563749987,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970036961379,"product_id":7824374988899,"position":5,"created_at":"2025-12-19T14:59:37+08:00","updated_at":"2025-12-19T14:59:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579","variant_ids":[43478563749987]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-PO43","featured_media":{"alt":null,"id":26531352576099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2219625fb7ca59e59c0055e9cac10007715e6bb8.webp?v=1766127579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43478563946595,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970036535395,"product_id":7824374988899,"position":3,"created_at":"2025-12-19T14:59:36+08:00","updated_at":"2025-12-19T14:59:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578","variant_ids":[43478563946595]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - 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-PO43","featured_media":{"alt":null,"id":26531352182883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61f11e82d2e9dc9cfa781af0cf9661046b68b72a.webp?v=1766127578"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43478561456227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PO43","requires_shipping":true,"taxable":true,"featured_image":{"id":34970037452899,"product_id":7824374988899,"position":8,"created_at":"2025-12-19T14:59:39+08:00","updated_at":"2025-12-19T14:59:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581","variant_ids":[43478561456227]},"available":true,"name":"iPhone 15 Plus SolidX Tom and Jerry 塗鴉款 - 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-PO43","featured_media":{"alt":null,"id":26531353100387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832eea4fd7248ed2d8b4464f11d14e2de70cc1a8.webp?v=1766127581"}},"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: "停產" }