$product = {"id":7769561596003,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-8-mod-nx-printable-xf47","description":null,"published_at":"2025-07-16T17:23:37+08:00","created_at":"2025-04-15T17:46:35+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 8","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":43302935527523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197260927075,"product_id":7769561596003,"position":3,"created_at":"2025-07-16T15:02:11+08:00","updated_at":"2025-07-16T15:02:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333","variant_ids":[43302935527523]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF47","featured_media":{"alt":null,"id":25829802344547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f2d174ce6977b7795ea853d5dd6de0b40bbadb.webp?v=1744710401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aefeb75ad5482f7845d126e55bac4fc5060152a_7b9105f3-d450-4836-b1b0-eed4f000b6ec.webp?v=1752649332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5154bf2c8068cddd1a46e29d1b874c7504266baf_7c79b1cf-18d8-4652-aeb3-091bb7fe2480.webp?v=1752649333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed18474584c7548aafd6f97bc8e53d2fc189acf_a4e58cb1-7a3d-4a41-a0c7-b243c73ef712.webp?v=1752649334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcac3bfdcf62dbdec14b976da7e9ae423606516_02d1a520-36ac-4a73-bf34-a8ce010e4485.webp?v=1752649334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcc98361d04d0d53c69933e3494336503992415_bf8c4c31-f44a-496a-a922-d65da85512ab.webp?v=1752649334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3263d449a0768909620145e9d1688c07fc71e185_6ac724af-b19a-4280-bd18-ec969726c861.webp?v=1752649335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875834a559af088b49c6a42c60ce0c877766c2_686d437d-5ceb-4fb3-9957-3d2cd72a2a0b.webp?v=1752649336"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f2d174ce6977b7795ea853d5dd6de0b40bbadb.webp?v=1744710401","options":["color"],"media":[{"alt":null,"id":25495812407395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f2d174ce6977b7795ea853d5dd6de0b40bbadb.webp?v=1744710401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f2d174ce6977b7795ea853d5dd6de0b40bbadb.webp?v=1744710401","width":2000},{"alt":null,"id":25829802147939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aefeb75ad5482f7845d126e55bac4fc5060152a_7b9105f3-d450-4836-b1b0-eed4f000b6ec.webp?v=1752649332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aefeb75ad5482f7845d126e55bac4fc5060152a_7b9105f3-d450-4836-b1b0-eed4f000b6ec.webp?v=1752649332","width":2000},{"alt":null,"id":25829802344547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333","width":2000},{"alt":null,"id":25829802508387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5154bf2c8068cddd1a46e29d1b874c7504266baf_7c79b1cf-18d8-4652-aeb3-091bb7fe2480.webp?v=1752649333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5154bf2c8068cddd1a46e29d1b874c7504266baf_7c79b1cf-18d8-4652-aeb3-091bb7fe2480.webp?v=1752649333","width":2000},{"alt":null,"id":25829802836067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed18474584c7548aafd6f97bc8e53d2fc189acf_a4e58cb1-7a3d-4a41-a0c7-b243c73ef712.webp?v=1752649334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed18474584c7548aafd6f97bc8e53d2fc189acf_a4e58cb1-7a3d-4a41-a0c7-b243c73ef712.webp?v=1752649334","width":2000},{"alt":null,"id":25829802999907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcac3bfdcf62dbdec14b976da7e9ae423606516_02d1a520-36ac-4a73-bf34-a8ce010e4485.webp?v=1752649334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcac3bfdcf62dbdec14b976da7e9ae423606516_02d1a520-36ac-4a73-bf34-a8ce010e4485.webp?v=1752649334","width":2000},{"alt":null,"id":25829803163747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcc98361d04d0d53c69933e3494336503992415_bf8c4c31-f44a-496a-a922-d65da85512ab.webp?v=1752649334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bcc98361d04d0d53c69933e3494336503992415_bf8c4c31-f44a-496a-a922-d65da85512ab.webp?v=1752649334","width":2000},{"alt":null,"id":25829803327587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3263d449a0768909620145e9d1688c07fc71e185_6ac724af-b19a-4280-bd18-ec969726c861.webp?v=1752649335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3263d449a0768909620145e9d1688c07fc71e185_6ac724af-b19a-4280-bd18-ec969726c861.webp?v=1752649335","width":2000},{"alt":null,"id":25829803524195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875834a559af088b49c6a42c60ce0c877766c2_686d437d-5ceb-4fb3-9957-3d2cd72a2a0b.webp?v=1752649336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875834a559af088b49c6a42c60ce0c877766c2_686d437d-5ceb-4fb3-9957-3d2cd72a2a0b.webp?v=1752649336","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302935527523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197260927075,"product_id":7769561596003,"position":3,"created_at":"2025-07-16T15:02:11+08:00","updated_at":"2025-07-16T15:02:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333","variant_ids":[43302935527523]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF47","featured_media":{"alt":null,"id":25829802344547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302935527523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197260927075,"product_id":7769561596003,"position":3,"created_at":"2025-07-16T15:02:11+08:00","updated_at":"2025-07-16T15:02:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333","variant_ids":[43302935527523]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF47","featured_media":{"alt":null,"id":25829802344547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f180099c8778cb0a31bf19b8e98ff43931d07f_962d0356-15e1-4110-890e-3a260f6e6f21.webp?v=1752649333"}},"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: "停產" }