$product = {"id":7728450207843,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 小高潮色計事務所 いく!いく! 錢湯","handle":"iphone-12-mini-mod-nx-magsafe-printable-iku06","description":null,"published_at":"2025-02-05T17:00:21+08:00","created_at":"2025-02-05T11:42:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區小高潮色計事務所 ikuiku studio","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ikuiku-studio","device-iPhone 12 Mini","merge","reseller-ikuiku-studio"],"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":43155818020963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-IKU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34515404587107,"product_id":7728450207843,"position":9,"created_at":"2025-09-22T16:33:25+08:00","updated_at":"2025-09-22T16:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008","variant_ids":[43155818020963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小高潮色計事務所 いく!いく! 錢湯 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-IKU06","featured_media":{"alt":null,"id":26085843796067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d575ee0f3cc73ac512ab98063e55a44e9fe3a0_5ba31946-0b04-488b-b1b6-0ac1f961c4bf.webp?v=1738726938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca44f6e07230848e85d278ef7aef61933c34102.webp?v=1758530004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595345a9c2cb3b116a4fb3d11238245ba14ccc60.webp?v=1758530005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f3819be363bb11dde14eedc19393d048d8d992.webp?v=1758530005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d13f25441b33535dc963e79a1c644fc4959550.webp?v=1758530005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077eb48d387878902625dc332b26d43a30119194.webp?v=1758530006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310d7fe502e8922e4ad374a411fc55d503caabac.webp?v=1758530007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060115a3ab66e403481b57496f4f6e12238f7d27.webp?v=1758530007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000d0d622de628cff6a4de7fc6358faea9948795.webp?v=1758530008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9509ff565d4b596873a37007692390154b1e8bb.webp?v=1758530009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2328a6e6ca4c1f146e11c7fbb2f017dd18c0f7a.webp?v=1758530009"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d575ee0f3cc73ac512ab98063e55a44e9fe3a0_5ba31946-0b04-488b-b1b6-0ac1f961c4bf.webp?v=1738726938","options":["color"],"media":[{"alt":null,"id":25254982254691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d575ee0f3cc73ac512ab98063e55a44e9fe3a0_5ba31946-0b04-488b-b1b6-0ac1f961c4bf.webp?v=1738726938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d575ee0f3cc73ac512ab98063e55a44e9fe3a0_5ba31946-0b04-488b-b1b6-0ac1f961c4bf.webp?v=1738726938","width":2000},{"alt":null,"id":26085842255971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca44f6e07230848e85d278ef7aef61933c34102.webp?v=1758530004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca44f6e07230848e85d278ef7aef61933c34102.webp?v=1758530004","width":2000},{"alt":null,"id":26085842485347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595345a9c2cb3b116a4fb3d11238245ba14ccc60.webp?v=1758530005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595345a9c2cb3b116a4fb3d11238245ba14ccc60.webp?v=1758530005","width":2000},{"alt":null,"id":26085842714723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f3819be363bb11dde14eedc19393d048d8d992.webp?v=1758530005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f3819be363bb11dde14eedc19393d048d8d992.webp?v=1758530005","width":2000},{"alt":null,"id":26085842878563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d13f25441b33535dc963e79a1c644fc4959550.webp?v=1758530005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d13f25441b33535dc963e79a1c644fc4959550.webp?v=1758530005","width":2000},{"alt":null,"id":26085843042403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077eb48d387878902625dc332b26d43a30119194.webp?v=1758530006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077eb48d387878902625dc332b26d43a30119194.webp?v=1758530006","width":2000},{"alt":null,"id":26085843501155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310d7fe502e8922e4ad374a411fc55d503caabac.webp?v=1758530007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310d7fe502e8922e4ad374a411fc55d503caabac.webp?v=1758530007","width":2000},{"alt":null,"id":26085843664995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060115a3ab66e403481b57496f4f6e12238f7d27.webp?v=1758530007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060115a3ab66e403481b57496f4f6e12238f7d27.webp?v=1758530007","width":2000},{"alt":null,"id":26085843796067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008","width":2000},{"alt":null,"id":26085843894371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000d0d622de628cff6a4de7fc6358faea9948795.webp?v=1758530008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000d0d622de628cff6a4de7fc6358faea9948795.webp?v=1758530008","width":2000},{"alt":null,"id":26085843959907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9509ff565d4b596873a37007692390154b1e8bb.webp?v=1758530009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9509ff565d4b596873a37007692390154b1e8bb.webp?v=1758530009","width":2000},{"alt":null,"id":26085844025443,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2328a6e6ca4c1f146e11c7fbb2f017dd18c0f7a.webp?v=1758530009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2328a6e6ca4c1f146e11c7fbb2f017dd18c0f7a.webp?v=1758530009","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43155818020963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-IKU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34515404587107,"product_id":7728450207843,"position":9,"created_at":"2025-09-22T16:33:25+08:00","updated_at":"2025-09-22T16:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008","variant_ids":[43155818020963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小高潮色計事務所 いく!いく! 錢湯 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-IKU06","featured_media":{"alt":null,"id":26085843796067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43155818020963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-IKU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34515404587107,"product_id":7728450207843,"position":9,"created_at":"2025-09-22T16:33:25+08:00","updated_at":"2025-09-22T16:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008","variant_ids":[43155818020963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小高潮色計事務所 いく!いく! 錢湯 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-IKU06","featured_media":{"alt":null,"id":26085843796067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9bb57d83a8a08d9990608443487d5e38b11e4a5.webp?v=1758530008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }