$product = {"id":7847998685283,"title":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop","handle":"iphone-15-plus-mod-nx-magsafe-bumper-crossover-design-fv62","description":null,"published_at":"2025-08-07T09:29:39+08:00","created_at":"2025-08-05T09:31:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 15 Plus","merge","reseller-hijohnnn"],"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":43562707124323,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34287503769699,"product_id":7847998685283,"position":5,"created_at":"2025-08-05T09:31:52+08:00","updated_at":"2025-08-05T09:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514","variant_ids":[43562707124323]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-FV62","featured_media":{"alt":null,"id":25888700629091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562707288163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34287503409251,"product_id":7847998685283,"position":4,"created_at":"2025-08-05T09:31:51+08:00","updated_at":"2025-08-05T09:31:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513","variant_ids":[43562707288163]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-FV62","featured_media":{"alt":null,"id":25888700498019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2f06c1b75b1a0105093f51d0d18060b445428e.webp?v=1754357512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee153fd2703975006f0393f55a72dc268f055d8.webp?v=1754357513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e712c75d5c8ed53b3507ccebf83b9826444e29.webp?v=1754357513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcb31c1315f29cbcb6180ed1aa8eeadb91d33737.webp?v=1754357515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b1bbe67717023428ad24cd09a2e0b6d280886e.webp?v=1754357515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e4d487a628d489973a65d5aff2d4ad7752e702.webp?v=1754357516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84c7fa13b5ad8fac73eca9148b43ca70a37689a.webp?v=1754357517"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2f06c1b75b1a0105093f51d0d18060b445428e.webp?v=1754357512","options":["color"],"media":[{"alt":null,"id":25888700006499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2f06c1b75b1a0105093f51d0d18060b445428e.webp?v=1754357512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2f06c1b75b1a0105093f51d0d18060b445428e.webp?v=1754357512","width":2000},{"alt":null,"id":25888700170339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee153fd2703975006f0393f55a72dc268f055d8.webp?v=1754357513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee153fd2703975006f0393f55a72dc268f055d8.webp?v=1754357513","width":2000},{"alt":null,"id":25888700366947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e712c75d5c8ed53b3507ccebf83b9826444e29.webp?v=1754357513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e712c75d5c8ed53b3507ccebf83b9826444e29.webp?v=1754357513","width":2000},{"alt":null,"id":25888700498019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513","width":2000},{"alt":null,"id":25888700629091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514","width":2000},{"alt":null,"id":25888700858467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcb31c1315f29cbcb6180ed1aa8eeadb91d33737.webp?v=1754357515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcb31c1315f29cbcb6180ed1aa8eeadb91d33737.webp?v=1754357515","width":2000},{"alt":null,"id":25888700956771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b1bbe67717023428ad24cd09a2e0b6d280886e.webp?v=1754357515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b1bbe67717023428ad24cd09a2e0b6d280886e.webp?v=1754357515","width":2000},{"alt":null,"id":25888701087843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e4d487a628d489973a65d5aff2d4ad7752e702.webp?v=1754357516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e4d487a628d489973a65d5aff2d4ad7752e702.webp?v=1754357516","width":2000},{"alt":null,"id":25888701186147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84c7fa13b5ad8fac73eca9148b43ca70a37689a.webp?v=1754357517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84c7fa13b5ad8fac73eca9148b43ca70a37689a.webp?v=1754357517","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562707124323,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34287503769699,"product_id":7847998685283,"position":5,"created_at":"2025-08-05T09:31:52+08:00","updated_at":"2025-08-05T09:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514","variant_ids":[43562707124323]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-FV62","featured_media":{"alt":null,"id":25888700629091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562707288163,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34287503409251,"product_id":7847998685283,"position":4,"created_at":"2025-08-05T09:31:51+08:00","updated_at":"2025-08-05T09:31:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513","variant_ids":[43562707288163]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-FV62","featured_media":{"alt":null,"id":25888700498019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032c01aa6f3eff04704df42df7999c099a115b37.webp?v=1754357513"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562707124323,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34287503769699,"product_id":7847998685283,"position":5,"created_at":"2025-08-05T09:31:52+08:00","updated_at":"2025-08-05T09:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514","variant_ids":[43562707124323]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 嗨小強 Party Pop - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-FV62","featured_media":{"alt":null,"id":25888700629091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db34b1d5c9f1e65d6df1b81feb3ced55f4b4dbe9.webp?v=1754357514"}},"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: "停產" }