$product = {"id":7770006782051,"title":"iPhone 12 mini Mod NX ilovedoodle Cat People - 貓派","handle":"iphone-12-mini-mod-nx-printable-xf54","description":null,"published_at":"2025-04-16T12:51:46+08:00","created_at":"2025-04-15T23:13:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Mini","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43305021931619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34197023817827,"product_id":7770006782051,"position":10,"created_at":"2025-07-16T14:56:51+08:00","updated_at":"2025-07-16T14:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013","variant_ids":[43305021931619]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF54","featured_media":{"alt":null,"id":25829673271395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755e40574f4ea762c83f241cb591d7832b7bfe88_bb9bb0b0-e2a1-40c4-999d-4231439cadb0.webp?v=1744730014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86bc127d8bb707b4abe3ced81969d03e16b8052_4028696c-7ff0-47e4-a79f-feab99a80493.webp?v=1752649008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a57e924c9bfe5ba0e2bb897c3bf2aaa874a5d94_db586822-1e82-462d-a839-b31fd08cbd36.webp?v=1752649009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab774dcf92a3c48137e82ab16d515a488c06158f_38c1dea7-c609-4259-87bc-3b2c1ba8e4fc.webp?v=1752649009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a2d8f00792990f1399652be44719a8d13ce177_4c55b4fc-bb70-4abb-a681-c901e815b576.webp?v=1752649010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153ed9834f7c659e02f008a34976ec6c0d92e9af_a706c500-0510-49de-8851-05c98a199682.webp?v=1752649011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328b7d88a84b674d63c654e8c2632c88c5001bb9_b3581f53-7231-4eb0-9926-b5f829352f20.webp?v=1752649011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edefe680b3526d8b1df208a4bffd49b9427a6d1_dadef0ae-a43c-429a-b6bf-303d02057376.webp?v=1752649012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf63b1344cbd659327ac9a8bf5837fb7af0982c8_05e81aec-ea67-477f-8922-c816bf2bb696.webp?v=1752649013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6679c9123f001f14940e7ad52b92de14799797_5f881154-db6c-4a84-9145-3b48e12da48d.webp?v=1752649014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9800f8e47853ff55360655ccb1cefd816e2e35f0_380b80b5-5562-4675-8e29-9a083a736fc9.webp?v=1752649014"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755e40574f4ea762c83f241cb591d7832b7bfe88_bb9bb0b0-e2a1-40c4-999d-4231439cadb0.webp?v=1744730014","options":["color"],"media":[{"alt":null,"id":25496678760547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755e40574f4ea762c83f241cb591d7832b7bfe88_bb9bb0b0-e2a1-40c4-999d-4231439cadb0.webp?v=1744730014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755e40574f4ea762c83f241cb591d7832b7bfe88_bb9bb0b0-e2a1-40c4-999d-4231439cadb0.webp?v=1744730014","width":2000},{"alt":null,"id":25829671567459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86bc127d8bb707b4abe3ced81969d03e16b8052_4028696c-7ff0-47e4-a79f-feab99a80493.webp?v=1752649008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86bc127d8bb707b4abe3ced81969d03e16b8052_4028696c-7ff0-47e4-a79f-feab99a80493.webp?v=1752649008","width":2000},{"alt":null,"id":25829672124515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a57e924c9bfe5ba0e2bb897c3bf2aaa874a5d94_db586822-1e82-462d-a839-b31fd08cbd36.webp?v=1752649009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a57e924c9bfe5ba0e2bb897c3bf2aaa874a5d94_db586822-1e82-462d-a839-b31fd08cbd36.webp?v=1752649009","width":2000},{"alt":null,"id":25829672255587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab774dcf92a3c48137e82ab16d515a488c06158f_38c1dea7-c609-4259-87bc-3b2c1ba8e4fc.webp?v=1752649009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab774dcf92a3c48137e82ab16d515a488c06158f_38c1dea7-c609-4259-87bc-3b2c1ba8e4fc.webp?v=1752649009","width":2000},{"alt":null,"id":25829672386659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a2d8f00792990f1399652be44719a8d13ce177_4c55b4fc-bb70-4abb-a681-c901e815b576.webp?v=1752649010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a2d8f00792990f1399652be44719a8d13ce177_4c55b4fc-bb70-4abb-a681-c901e815b576.webp?v=1752649010","width":2000},{"alt":null,"id":25829672517731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153ed9834f7c659e02f008a34976ec6c0d92e9af_a706c500-0510-49de-8851-05c98a199682.webp?v=1752649011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153ed9834f7c659e02f008a34976ec6c0d92e9af_a706c500-0510-49de-8851-05c98a199682.webp?v=1752649011","width":2000},{"alt":null,"id":25829672648803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328b7d88a84b674d63c654e8c2632c88c5001bb9_b3581f53-7231-4eb0-9926-b5f829352f20.webp?v=1752649011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328b7d88a84b674d63c654e8c2632c88c5001bb9_b3581f53-7231-4eb0-9926-b5f829352f20.webp?v=1752649011","width":2000},{"alt":null,"id":25829672878179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edefe680b3526d8b1df208a4bffd49b9427a6d1_dadef0ae-a43c-429a-b6bf-303d02057376.webp?v=1752649012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3edefe680b3526d8b1df208a4bffd49b9427a6d1_dadef0ae-a43c-429a-b6bf-303d02057376.webp?v=1752649012","width":2000},{"alt":null,"id":25829673140323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf63b1344cbd659327ac9a8bf5837fb7af0982c8_05e81aec-ea67-477f-8922-c816bf2bb696.webp?v=1752649013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf63b1344cbd659327ac9a8bf5837fb7af0982c8_05e81aec-ea67-477f-8922-c816bf2bb696.webp?v=1752649013","width":2000},{"alt":null,"id":25829673271395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013","width":2000},{"alt":null,"id":25829673468003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6679c9123f001f14940e7ad52b92de14799797_5f881154-db6c-4a84-9145-3b48e12da48d.webp?v=1752649014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6679c9123f001f14940e7ad52b92de14799797_5f881154-db6c-4a84-9145-3b48e12da48d.webp?v=1752649014","width":2000},{"alt":null,"id":25829673730147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9800f8e47853ff55360655ccb1cefd816e2e35f0_380b80b5-5562-4675-8e29-9a083a736fc9.webp?v=1752649014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9800f8e47853ff55360655ccb1cefd816e2e35f0_380b80b5-5562-4675-8e29-9a083a736fc9.webp?v=1752649014","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43305021931619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34197023817827,"product_id":7770006782051,"position":10,"created_at":"2025-07-16T14:56:51+08:00","updated_at":"2025-07-16T14:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013","variant_ids":[43305021931619]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF54","featured_media":{"alt":null,"id":25829673271395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43305021931619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34197023817827,"product_id":7770006782051,"position":10,"created_at":"2025-07-16T14:56:51+08:00","updated_at":"2025-07-16T14:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013","variant_ids":[43305021931619]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF54","featured_media":{"alt":null,"id":25829673271395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d8c05e58c2f5e4af870573131f289d907da2d4_60c1eac2-f741-4ae4-96b8-d2b1f358121c.webp?v=1752649013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }