$product = {"id":7770014351459,"title":"iPhone 12 mini Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛","handle":"iphone-12-mini-mod-nx-printable-xf56","description":null,"published_at":"2025-04-16T12:48:15+08:00","created_at":"2025-04-15T23:19:37+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":43305062334563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197066874979,"product_id":7770014351459,"position":5,"created_at":"2025-07-16T14:57:50+08:00","updated_at":"2025-07-16T14:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071","variant_ids":[43305062334563]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - 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-XF56","featured_media":{"alt":null,"id":25829696700515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977dd8e0a911781684bfd07dcba85a934958f5bc_8616695f-67c9-4b54-99ea-fc10044b171c.webp?v=1744730383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/988421eabb6e1977867020caec123c3fdc1b1954_be977725-60c8-4eff-a1b4-c6435182a696.webp?v=1752649070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9b51eb3dfa44acb1707cb87233fe6b28c10e79_3a88f66c-2c25-41a1-8aba-cf32aaa9cb7c.webp?v=1752649070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa88ce6f1f8915417daba6354a089c750291973_2bd40937-edb5-4b36-a8b9-0af4340795db.webp?v=1752649071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c955098a87ffc39d1fcdddc0be9bc3e35b370bc_e3c998b1-3645-4af9-b00c-3f696d356103.webp?v=1752649072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ba769f281bacaa848eaa3b21eec334b7928b08_c83697f5-9798-4903-8ba8-3d8e6aaf4760.webp?v=1752649073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db36204a1ba0ddeb5ad271484c2752a3072c9eb_3536591f-3821-462d-bfb3-18bdada55fa7.webp?v=1752649074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53443d3ef32988a1bb65fe5e98acbe9685a34ca6_da883fc7-b8d3-4e9a-8883-2582c43b0e2a.webp?v=1752649074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ca00497a924b71df5244d561eab896a3d390_effe5d4b-ef05-456f-8df8-9d5d122fb868.webp?v=1752649075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626166508f9b7f754c0403dfcabf2298dfd1f923_e7ca1a74-f2da-48b5-9822-3817c2c814cd.webp?v=1752649076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f869da3e256d7a52234637684fe5ff9c26736b_9b1cdfa9-e650-4f80-9ce6-f4bdb6082721.webp?v=1752649076"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977dd8e0a911781684bfd07dcba85a934958f5bc_8616695f-67c9-4b54-99ea-fc10044b171c.webp?v=1744730383","options":["color"],"media":[{"alt":null,"id":25496695144547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977dd8e0a911781684bfd07dcba85a934958f5bc_8616695f-67c9-4b54-99ea-fc10044b171c.webp?v=1744730383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977dd8e0a911781684bfd07dcba85a934958f5bc_8616695f-67c9-4b54-99ea-fc10044b171c.webp?v=1744730383","width":2000},{"alt":null,"id":25829696012387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/988421eabb6e1977867020caec123c3fdc1b1954_be977725-60c8-4eff-a1b4-c6435182a696.webp?v=1752649070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/988421eabb6e1977867020caec123c3fdc1b1954_be977725-60c8-4eff-a1b4-c6435182a696.webp?v=1752649070","width":2000},{"alt":null,"id":25829696241763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9b51eb3dfa44acb1707cb87233fe6b28c10e79_3a88f66c-2c25-41a1-8aba-cf32aaa9cb7c.webp?v=1752649070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9b51eb3dfa44acb1707cb87233fe6b28c10e79_3a88f66c-2c25-41a1-8aba-cf32aaa9cb7c.webp?v=1752649070","width":2000},{"alt":null,"id":25829696471139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa88ce6f1f8915417daba6354a089c750291973_2bd40937-edb5-4b36-a8b9-0af4340795db.webp?v=1752649071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa88ce6f1f8915417daba6354a089c750291973_2bd40937-edb5-4b36-a8b9-0af4340795db.webp?v=1752649071","width":2000},{"alt":null,"id":25829696700515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071","width":2000},{"alt":null,"id":25829697290339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c955098a87ffc39d1fcdddc0be9bc3e35b370bc_e3c998b1-3645-4af9-b00c-3f696d356103.webp?v=1752649072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c955098a87ffc39d1fcdddc0be9bc3e35b370bc_e3c998b1-3645-4af9-b00c-3f696d356103.webp?v=1752649072","width":2000},{"alt":null,"id":25829697519715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ba769f281bacaa848eaa3b21eec334b7928b08_c83697f5-9798-4903-8ba8-3d8e6aaf4760.webp?v=1752649073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ba769f281bacaa848eaa3b21eec334b7928b08_c83697f5-9798-4903-8ba8-3d8e6aaf4760.webp?v=1752649073","width":2000},{"alt":null,"id":25829697781859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db36204a1ba0ddeb5ad271484c2752a3072c9eb_3536591f-3821-462d-bfb3-18bdada55fa7.webp?v=1752649074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db36204a1ba0ddeb5ad271484c2752a3072c9eb_3536591f-3821-462d-bfb3-18bdada55fa7.webp?v=1752649074","width":2000},{"alt":null,"id":25829697978467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53443d3ef32988a1bb65fe5e98acbe9685a34ca6_da883fc7-b8d3-4e9a-8883-2582c43b0e2a.webp?v=1752649074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53443d3ef32988a1bb65fe5e98acbe9685a34ca6_da883fc7-b8d3-4e9a-8883-2582c43b0e2a.webp?v=1752649074","width":2000},{"alt":null,"id":25829698175075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ca00497a924b71df5244d561eab896a3d390_effe5d4b-ef05-456f-8df8-9d5d122fb868.webp?v=1752649075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f647ca00497a924b71df5244d561eab896a3d390_effe5d4b-ef05-456f-8df8-9d5d122fb868.webp?v=1752649075","width":2000},{"alt":null,"id":25829698338915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626166508f9b7f754c0403dfcabf2298dfd1f923_e7ca1a74-f2da-48b5-9822-3817c2c814cd.webp?v=1752649076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626166508f9b7f754c0403dfcabf2298dfd1f923_e7ca1a74-f2da-48b5-9822-3817c2c814cd.webp?v=1752649076","width":2000},{"alt":null,"id":25829698502755,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f869da3e256d7a52234637684fe5ff9c26736b_9b1cdfa9-e650-4f80-9ce6-f4bdb6082721.webp?v=1752649076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f869da3e256d7a52234637684fe5ff9c26736b_9b1cdfa9-e650-4f80-9ce6-f4bdb6082721.webp?v=1752649076","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43305062334563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197066874979,"product_id":7770014351459,"position":5,"created_at":"2025-07-16T14:57:50+08:00","updated_at":"2025-07-16T14:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071","variant_ids":[43305062334563]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - 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-XF56","featured_media":{"alt":null,"id":25829696700515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43305062334563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197066874979,"product_id":7770014351459,"position":5,"created_at":"2025-07-16T14:57:50+08:00","updated_at":"2025-07-16T14:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071","variant_ids":[43305062334563]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - 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-XF56","featured_media":{"alt":null,"id":25829696700515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115def8a21fa0c23a55c50aebc0bae02644f71fb_707c49ed-9db2-409d-b7a5-37fa4c5eaa36.webp?v=1752649071"}},"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: "停產" }