$product = {"id":7830917480547,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅)","handle":"iphone-14-pro-mod-nx-magsafe-bumper-original-design-dk02","description":null,"published_at":"2025-07-04T10:03:29+08:00","created_at":"2025-07-03T16:16:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-valentines-day-collection","device-iPhone 14 Pro","discountable-item","merge","original-design","reseller-valentines-day-collection"],"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":43507500122211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116789665891,"product_id":7830917480547,"position":5,"created_at":"2025-07-03T16:16:23+08:00","updated_at":"2025-07-03T16:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585","variant_ids":[43507500122211]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅) - 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":"MPB01262J5-DK02","featured_media":{"alt":null,"id":25769646719075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507500318819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116793073763,"product_id":7830917480547,"position":10,"created_at":"2025-07-03T16:16:26+08:00","updated_at":"2025-07-03T16:16:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588","variant_ids":[43507500318819]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DK02","featured_media":{"alt":null,"id":25769648259171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507500417123,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116788289635,"product_id":7830917480547,"position":2,"created_at":"2025-07-03T16:16:22+08:00","updated_at":"2025-07-03T16:16:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584","variant_ids":[43507500417123]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅) - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-DK02","featured_media":{"alt":null,"id":25769646030947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f490f16c5cdba0933cbb9303a34b3a89a86a59c3.webp?v=1751530583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8666895efd5b87978b622f920ff07bf33833ecde.webp?v=1751530584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac40af528168acbec57cbcf8a8cb52f802ce1e6d.webp?v=1751530585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ccab510074f6c3bceb96db12110e21e3712a94.webp?v=1751530586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb977e71e24be827249d1bbba848f4a774906f3.webp?v=1751530586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/692958e2f319c79e3216bdae67c14da60a2b6035.webp?v=1751530587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254eb8b08f75797a271b3a723c065674526ee2b1.webp?v=1751530588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdf37d8e574236267a4bc5d067665f0653bb0e2.webp?v=1751530589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437b58b6731a1c99028e37b32bd01c87b4dd68b0.webp?v=1751530589"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f490f16c5cdba0933cbb9303a34b3a89a86a59c3.webp?v=1751530583","options":["color"],"media":[{"alt":null,"id":25769645768803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f490f16c5cdba0933cbb9303a34b3a89a86a59c3.webp?v=1751530583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f490f16c5cdba0933cbb9303a34b3a89a86a59c3.webp?v=1751530583","width":2000},{"alt":null,"id":25769646030947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584","width":2000},{"alt":null,"id":25769646260323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8666895efd5b87978b622f920ff07bf33833ecde.webp?v=1751530584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8666895efd5b87978b622f920ff07bf33833ecde.webp?v=1751530584","width":2000},{"alt":null,"id":25769646456931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac40af528168acbec57cbcf8a8cb52f802ce1e6d.webp?v=1751530585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac40af528168acbec57cbcf8a8cb52f802ce1e6d.webp?v=1751530585","width":2000},{"alt":null,"id":25769646719075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585","width":2000},{"alt":null,"id":25769646981219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ccab510074f6c3bceb96db12110e21e3712a94.webp?v=1751530586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ccab510074f6c3bceb96db12110e21e3712a94.webp?v=1751530586","width":2000},{"alt":null,"id":25769647276131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb977e71e24be827249d1bbba848f4a774906f3.webp?v=1751530586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb977e71e24be827249d1bbba848f4a774906f3.webp?v=1751530586","width":2000},{"alt":null,"id":25769647538275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/692958e2f319c79e3216bdae67c14da60a2b6035.webp?v=1751530587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/692958e2f319c79e3216bdae67c14da60a2b6035.webp?v=1751530587","width":2000},{"alt":null,"id":25769647865955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254eb8b08f75797a271b3a723c065674526ee2b1.webp?v=1751530588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254eb8b08f75797a271b3a723c065674526ee2b1.webp?v=1751530588","width":2000},{"alt":null,"id":25769648259171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588","width":2000},{"alt":null,"id":25769648488547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdf37d8e574236267a4bc5d067665f0653bb0e2.webp?v=1751530589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdf37d8e574236267a4bc5d067665f0653bb0e2.webp?v=1751530589","width":2000},{"alt":null,"id":25769649111139,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437b58b6731a1c99028e37b32bd01c87b4dd68b0.webp?v=1751530589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437b58b6731a1c99028e37b32bd01c87b4dd68b0.webp?v=1751530589","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43507500122211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116789665891,"product_id":7830917480547,"position":5,"created_at":"2025-07-03T16:16:23+08:00","updated_at":"2025-07-03T16:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585","variant_ids":[43507500122211]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅) - 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":"MPB01262J5-DK02","featured_media":{"alt":null,"id":25769646719075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507500318819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116793073763,"product_id":7830917480547,"position":10,"created_at":"2025-07-03T16:16:26+08:00","updated_at":"2025-07-03T16:16:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588","variant_ids":[43507500318819]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DK02","featured_media":{"alt":null,"id":25769648259171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5d66098deb736106ea9da24e0c84869fa9b599.webp?v=1751530588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507500417123,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116788289635,"product_id":7830917480547,"position":2,"created_at":"2025-07-03T16:16:22+08:00","updated_at":"2025-07-03T16:16:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584","variant_ids":[43507500417123]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅) - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-DK02","featured_media":{"alt":null,"id":25769646030947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc89e1e7f6ddc1b8df7c4cb4254615c404986af.webp?v=1751530584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43507500122211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK02","requires_shipping":true,"taxable":true,"featured_image":{"id":34116789665891,"product_id":7830917480547,"position":5,"created_at":"2025-07-03T16:16:23+08:00","updated_at":"2025-07-03T16:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585","variant_ids":[43507500122211]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心跳(紅) - 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":"MPB01262J5-DK02","featured_media":{"alt":null,"id":25769646719075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cc926b7459567b1e4efbab099263fe2b59c5e0e.webp?v=1751530585"}},"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: "停產" }