$product = {"id":7892636368995,"title":"iPhone 14 Plus Mod NX Aaron Chang Yin\u0026Yang","handle":"iphone-14-plus-mod-nx-printable-aar04","description":null,"published_at":"2025-10-03T09:48:15+08:00","created_at":"2025-10-02T09:57:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"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":43756580864099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543629303907,"product_id":7892636368995,"position":2,"created_at":"2025-10-02T09:57:28+08:00","updated_at":"2025-10-02T09:57:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250","variant_ids":[43756580864099]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Yin\u0026Yang - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR04","featured_media":{"alt":null,"id":26113384185955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb3f68569f06c8988a46ff00188ff9120e15151.webp?v=1759370249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16982d4108c5741375b14777d90835b35ae90daf.webp?v=1759370251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3299f58debe99abc974d5c84bdc3aedcfc6234cc.webp?v=1759370252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08365acd858f4701fc3473a8029165b6efd4146.webp?v=1759370252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21b7f288a8480d08c5e06ae86129b26c7558c5.webp?v=1759370253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8ae06f7f360b40aea66cc5bde503670ce262ed.webp?v=1759370254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef46fe0c5b37d90691ee14a1313a6624c07bbd0.webp?v=1759370256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4718e2933b4d8e3e9391d30085172af6e8039393.webp?v=1759370257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b392d4504cd6949ccf29200742cf24c0bb2a6433.webp?v=1759370258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1823eeed1c43fdf7f01d52368cee150bdd9151.webp?v=1759370258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d843b7543e5f545663b768afb274685586be73a.webp?v=1759370259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65c8a5c3bbb1aa8973e6fdf06bfdc09d24bceaf.webp?v=1759370260"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb3f68569f06c8988a46ff00188ff9120e15151.webp?v=1759370249","options":["color"],"media":[{"alt":null,"id":26113383989347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb3f68569f06c8988a46ff00188ff9120e15151.webp?v=1759370249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb3f68569f06c8988a46ff00188ff9120e15151.webp?v=1759370249","width":2000},{"alt":null,"id":26113384185955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250","width":2000},{"alt":null,"id":26113384317027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16982d4108c5741375b14777d90835b35ae90daf.webp?v=1759370251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16982d4108c5741375b14777d90835b35ae90daf.webp?v=1759370251","width":2000},{"alt":null,"id":26113384480867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3299f58debe99abc974d5c84bdc3aedcfc6234cc.webp?v=1759370252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3299f58debe99abc974d5c84bdc3aedcfc6234cc.webp?v=1759370252","width":2000},{"alt":null,"id":26113384579171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08365acd858f4701fc3473a8029165b6efd4146.webp?v=1759370252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08365acd858f4701fc3473a8029165b6efd4146.webp?v=1759370252","width":2000},{"alt":null,"id":26113385005155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21b7f288a8480d08c5e06ae86129b26c7558c5.webp?v=1759370253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21b7f288a8480d08c5e06ae86129b26c7558c5.webp?v=1759370253","width":2000},{"alt":null,"id":26113385201763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8ae06f7f360b40aea66cc5bde503670ce262ed.webp?v=1759370254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8ae06f7f360b40aea66cc5bde503670ce262ed.webp?v=1759370254","width":2000},{"alt":null,"id":26113385398371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef46fe0c5b37d90691ee14a1313a6624c07bbd0.webp?v=1759370256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef46fe0c5b37d90691ee14a1313a6624c07bbd0.webp?v=1759370256","width":2000},{"alt":null,"id":26113385693283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4718e2933b4d8e3e9391d30085172af6e8039393.webp?v=1759370257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4718e2933b4d8e3e9391d30085172af6e8039393.webp?v=1759370257","width":2000},{"alt":null,"id":26113386020963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b392d4504cd6949ccf29200742cf24c0bb2a6433.webp?v=1759370258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b392d4504cd6949ccf29200742cf24c0bb2a6433.webp?v=1759370258","width":2000},{"alt":null,"id":26113386446947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1823eeed1c43fdf7f01d52368cee150bdd9151.webp?v=1759370258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1823eeed1c43fdf7f01d52368cee150bdd9151.webp?v=1759370258","width":2000},{"alt":null,"id":26113387004003,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d843b7543e5f545663b768afb274685586be73a.webp?v=1759370259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d843b7543e5f545663b768afb274685586be73a.webp?v=1759370259","width":2000},{"alt":null,"id":26113387233379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65c8a5c3bbb1aa8973e6fdf06bfdc09d24bceaf.webp?v=1759370260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65c8a5c3bbb1aa8973e6fdf06bfdc09d24bceaf.webp?v=1759370260","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756580864099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543629303907,"product_id":7892636368995,"position":2,"created_at":"2025-10-02T09:57:28+08:00","updated_at":"2025-10-02T09:57:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250","variant_ids":[43756580864099]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Yin\u0026Yang - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR04","featured_media":{"alt":null,"id":26113384185955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756580864099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34543629303907,"product_id":7892636368995,"position":2,"created_at":"2025-10-02T09:57:28+08:00","updated_at":"2025-10-02T09:57:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250","variant_ids":[43756580864099]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Yin\u0026Yang - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AAR04","featured_media":{"alt":null,"id":26113384185955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37ae9f62956704b6e2403f6720f42a737f5399c8.webp?v=1759370250"}},"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: "停產" }