$product = {"id":7937615724643,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓","handle":"iphone-12-pro-mod-nx-magsafe-cjy04","description":null,"published_at":"2025-12-12T09:39:45+08:00","created_at":"2025-12-11T10:01:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 12 Pro","merge","reseller-jychoioioi"],"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":43883186061411,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112542307,"product_id":7937615724643,"position":7,"created_at":"2025-12-11T10:02:05+08:00","updated_at":"2025-12-11T10:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527","variant_ids":[43883186061411]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-CJY04","featured_media":{"alt":null,"id":26493486858339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883188977763,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931113263203,"product_id":7937615724643,"position":11,"created_at":"2025-12-11T10:02:07+08:00","updated_at":"2025-12-11T10:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529","variant_ids":[43883188977763]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-CJY04","featured_media":{"alt":null,"id":26493487579235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189010531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931113066595,"product_id":7937615724643,"position":10,"created_at":"2025-12-11T10:02:07+08:00","updated_at":"2025-12-11T10:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529","variant_ids":[43883189010531]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-CJY04","featured_media":{"alt":null,"id":26493487382627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189141603,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112181859,"product_id":7937615724643,"position":5,"created_at":"2025-12-11T10:02:04+08:00","updated_at":"2025-12-11T10:02:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526","variant_ids":[43883189141603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-CJY04","featured_media":{"alt":null,"id":26493486465123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189174371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112345699,"product_id":7937615724643,"position":6,"created_at":"2025-12-11T10:02:05+08:00","updated_at":"2025-12-11T10:02:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526","variant_ids":[43883189174371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-CJY04","featured_media":{"alt":null,"id":26493486661731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e83e06d9e2e8e88acdfdb59700ee183882382d.webp?v=1765418522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f949838db1a65817072a6981b72b3aa2fd38ff63.webp?v=1765418522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be19a3c547ef0f0220dc4dd6d3e19c2f5af91dc.webp?v=1765418525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb70d2d8bab3a0adf1087cb15e339d09a83fc09c.webp?v=1765418525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf282f5c5f19a632de47a922e9969eb3216d09de.webp?v=1765418527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd66d6419b5d73e02c5b39d476b167b753819f54.webp?v=1765418528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e83e06d9e2e8e88acdfdb59700ee183882382d.webp?v=1765418522","options":["color"],"media":[{"alt":null,"id":26493485482083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e83e06d9e2e8e88acdfdb59700ee183882382d.webp?v=1765418522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e83e06d9e2e8e88acdfdb59700ee183882382d.webp?v=1765418522","width":2000},{"alt":null,"id":26493485613155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f949838db1a65817072a6981b72b3aa2fd38ff63.webp?v=1765418522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f949838db1a65817072a6981b72b3aa2fd38ff63.webp?v=1765418522","width":2000},{"alt":null,"id":26493486071907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be19a3c547ef0f0220dc4dd6d3e19c2f5af91dc.webp?v=1765418525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be19a3c547ef0f0220dc4dd6d3e19c2f5af91dc.webp?v=1765418525","width":2000},{"alt":null,"id":26493486268515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb70d2d8bab3a0adf1087cb15e339d09a83fc09c.webp?v=1765418525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb70d2d8bab3a0adf1087cb15e339d09a83fc09c.webp?v=1765418525","width":2000},{"alt":null,"id":26493486465123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526","width":2000},{"alt":null,"id":26493486661731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526","width":2000},{"alt":null,"id":26493486858339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527","width":2000},{"alt":null,"id":26493487022179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf282f5c5f19a632de47a922e9969eb3216d09de.webp?v=1765418527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf282f5c5f19a632de47a922e9969eb3216d09de.webp?v=1765418527","width":2000},{"alt":null,"id":26493487186019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd66d6419b5d73e02c5b39d476b167b753819f54.webp?v=1765418528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd66d6419b5d73e02c5b39d476b167b753819f54.webp?v=1765418528","width":2000},{"alt":null,"id":26493487382627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529","width":2000},{"alt":null,"id":26493487579235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43883186061411,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112542307,"product_id":7937615724643,"position":7,"created_at":"2025-12-11T10:02:05+08:00","updated_at":"2025-12-11T10:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527","variant_ids":[43883186061411]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-CJY04","featured_media":{"alt":null,"id":26493486858339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883188977763,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931113263203,"product_id":7937615724643,"position":11,"created_at":"2025-12-11T10:02:07+08:00","updated_at":"2025-12-11T10:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529","variant_ids":[43883188977763]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-CJY04","featured_media":{"alt":null,"id":26493487579235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4867d2c4c5901319021fcca7546ab09491c1ac.webp?v=1765418529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189010531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931113066595,"product_id":7937615724643,"position":10,"created_at":"2025-12-11T10:02:07+08:00","updated_at":"2025-12-11T10:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529","variant_ids":[43883189010531]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-CJY04","featured_media":{"alt":null,"id":26493487382627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cebe6713df5753c5dbbfdf362fab11cf9f92cd6.webp?v=1765418529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189141603,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112181859,"product_id":7937615724643,"position":5,"created_at":"2025-12-11T10:02:04+08:00","updated_at":"2025-12-11T10:02:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526","variant_ids":[43883189141603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-CJY04","featured_media":{"alt":null,"id":26493486465123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78059468bee8bf8ba8d5c35d9153d944602ac8.webp?v=1765418526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883189174371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112345699,"product_id":7937615724643,"position":6,"created_at":"2025-12-11T10:02:05+08:00","updated_at":"2025-12-11T10:02:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526","variant_ids":[43883189174371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-CJY04","featured_media":{"alt":null,"id":26493486661731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0de6596837b1ced9200e77fec715c40f17e246bc.webp?v=1765418526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883186061411,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY04","requires_shipping":true,"taxable":true,"featured_image":{"id":34931112542307,"product_id":7937615724643,"position":7,"created_at":"2025-12-11T10:02:05+08:00","updated_at":"2025-12-11T10:02:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527","variant_ids":[43883186061411]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 擁抱長貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-CJY04","featured_media":{"alt":null,"id":26493486858339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae23f99c3bc9befe7c144617b1887d4f0802929.webp?v=1765418527"}},"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: "停產" }