$product = {"id":7921124311139,"title":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂","handle":"iphone-14-pro-mod-nx-hd69","description":null,"published_at":"2025-11-13T09:50:29+08:00","created_at":"2025-11-11T09:39:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 14 Pro","merge","reseller-incrediville"],"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":43830858023011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786039562339,"product_id":7921124311139,"position":1,"created_at":"2025-11-11T09:39:51+08:00","updated_at":"2025-11-11T09:39:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","variant_ids":[43830858023011]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD69","featured_media":{"alt":null,"id":26351496724579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830858186851,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786041823331,"product_id":7921124311139,"position":10,"created_at":"2025-11-11T09:39:58+08:00","updated_at":"2025-11-11T09:39:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199","variant_ids":[43830858186851]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-HD69","featured_media":{"alt":null,"id":26351498952803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830858350691,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786040119395,"product_id":7921124311139,"position":4,"created_at":"2025-11-11T09:39:53+08:00","updated_at":"2025-11-11T09:39:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195","variant_ids":[43830858350691]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-HD69","featured_media":{"alt":null,"id":26351497379939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0335b132318cf65d8f7894054199053894832f8.webp?v=1762825194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3236e5b9b3aaafdd30126ec57006f8f8c9bc2e3.webp?v=1762825195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8fbe09d5b9b7d560aa22a6c6dd4e733613b07b.webp?v=1762825196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079975a2d0f7e7a9445f79f6a5b8a958fda15f4c.webp?v=1762825197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0649312b2d6f1d53c45b9f0e78563f84b11f3da.webp?v=1762825197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d18379a7795b1e5229fb5fba9dfb864fd0245e.webp?v=1762825198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe865703164d3c5174b1d22fd907a65638c675b.webp?v=1762825199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba8c283003dd36f72e7a8de5b0d537179ad48.webp?v=1762825200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b2067d0195e33fd98302d4d3a7acbfe1932aa4.webp?v=1762825201"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","options":["color"],"media":[{"alt":null,"id":26351496724579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","width":2000},{"alt":null,"id":26351496855651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0335b132318cf65d8f7894054199053894832f8.webp?v=1762825194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0335b132318cf65d8f7894054199053894832f8.webp?v=1762825194","width":2000},{"alt":null,"id":26351497117795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3236e5b9b3aaafdd30126ec57006f8f8c9bc2e3.webp?v=1762825195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3236e5b9b3aaafdd30126ec57006f8f8c9bc2e3.webp?v=1762825195","width":2000},{"alt":null,"id":26351497379939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195","width":2000},{"alt":null,"id":26351497707619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8fbe09d5b9b7d560aa22a6c6dd4e733613b07b.webp?v=1762825196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8fbe09d5b9b7d560aa22a6c6dd4e733613b07b.webp?v=1762825196","width":2000},{"alt":null,"id":26351497969763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079975a2d0f7e7a9445f79f6a5b8a958fda15f4c.webp?v=1762825197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/079975a2d0f7e7a9445f79f6a5b8a958fda15f4c.webp?v=1762825197","width":2000},{"alt":null,"id":26351498231907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0649312b2d6f1d53c45b9f0e78563f84b11f3da.webp?v=1762825197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0649312b2d6f1d53c45b9f0e78563f84b11f3da.webp?v=1762825197","width":2000},{"alt":null,"id":26351498362979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d18379a7795b1e5229fb5fba9dfb864fd0245e.webp?v=1762825198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d18379a7795b1e5229fb5fba9dfb864fd0245e.webp?v=1762825198","width":2000},{"alt":null,"id":26351498625123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe865703164d3c5174b1d22fd907a65638c675b.webp?v=1762825199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe865703164d3c5174b1d22fd907a65638c675b.webp?v=1762825199","width":2000},{"alt":null,"id":26351498952803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199","width":2000},{"alt":null,"id":26351499149411,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba8c283003dd36f72e7a8de5b0d537179ad48.webp?v=1762825200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0ba8c283003dd36f72e7a8de5b0d537179ad48.webp?v=1762825200","width":2000},{"alt":null,"id":26351499313251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b2067d0195e33fd98302d4d3a7acbfe1932aa4.webp?v=1762825201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b2067d0195e33fd98302d4d3a7acbfe1932aa4.webp?v=1762825201","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830858023011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786039562339,"product_id":7921124311139,"position":1,"created_at":"2025-11-11T09:39:51+08:00","updated_at":"2025-11-11T09:39:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","variant_ids":[43830858023011]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD69","featured_media":{"alt":null,"id":26351496724579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830858186851,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786041823331,"product_id":7921124311139,"position":10,"created_at":"2025-11-11T09:39:58+08:00","updated_at":"2025-11-11T09:39:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199","variant_ids":[43830858186851]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-HD69","featured_media":{"alt":null,"id":26351498952803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1785c594e9d4f4d05aa7f6c65c8103859a377b8.webp?v=1762825199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830858350691,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786040119395,"product_id":7921124311139,"position":4,"created_at":"2025-11-11T09:39:53+08:00","updated_at":"2025-11-11T09:39:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195","variant_ids":[43830858350691]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-HD69","featured_media":{"alt":null,"id":26351497379939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d61fe02a256b37607461f85715e906b2e5fb3db.webp?v=1762825195"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830858023011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34786039562339,"product_id":7921124311139,"position":1,"created_at":"2025-11-11T09:39:51+08:00","updated_at":"2025-11-11T09:39:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193","variant_ids":[43830858023011]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD69","featured_media":{"alt":null,"id":26351496724579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f851dec72d5520394aba17000e417fa3d3f2e.webp?v=1762825193"}},"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: "停產" }