$product = {"id":7892669497443,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Boy","handle":"iphone-14-plus-mod-nx-magsafe-printable-aar01","description":null,"published_at":"2025-10-03T09:42:53+08:00","created_at":"2025-10-02T10:06:37+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":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":43756710494307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543761326179,"product_id":7892669497443,"position":2,"created_at":"2025-10-02T10:06:43+08:00","updated_at":"2025-10-02T10:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805","variant_ids":[43756710494307]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Boy - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AAR01","featured_media":{"alt":null,"id":26113516208227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5b8405168fa61af01576e1a7202151d661ac76.webp?v=1759370805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dee21927a230148c005762109b00a261eff85f1.webp?v=1759370806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3976423890a9737872b4f67cd686118553298a24.webp?v=1759370806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77fd22df2c016e1dd73e1f63587cc7afc195d1e9.webp?v=1759370807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a91ac4d23ed969418f604043a0a1d670b9d4bc.webp?v=1759370808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2189e9b917380f380303efb63314950ad5d33715.webp?v=1759370809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dd71fe5f87b1a61452f25a4ea7b5e41914a90c.webp?v=1759370810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3834d74d7251291e04f33893f1969abb7bd3f2.webp?v=1759370811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb3160de7676b0c35132938a926954a61c301be.webp?v=1759370811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26dc4bedeb2211755ce6dd56171badf876501b7.webp?v=1759370812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d206a25026adba98e977a1ff94d9c323bd4cc023.webp?v=1759370813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2221794dbcdc9df138ae460416a2218637fa681.webp?v=1759370815"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5b8405168fa61af01576e1a7202151d661ac76.webp?v=1759370805","options":["color"],"media":[{"alt":null,"id":26113515978851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5b8405168fa61af01576e1a7202151d661ac76.webp?v=1759370805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5b8405168fa61af01576e1a7202151d661ac76.webp?v=1759370805","width":2000},{"alt":null,"id":26113516208227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805","width":2000},{"alt":null,"id":26113516372067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dee21927a230148c005762109b00a261eff85f1.webp?v=1759370806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dee21927a230148c005762109b00a261eff85f1.webp?v=1759370806","width":2000},{"alt":null,"id":26113516503139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3976423890a9737872b4f67cd686118553298a24.webp?v=1759370806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3976423890a9737872b4f67cd686118553298a24.webp?v=1759370806","width":2000},{"alt":null,"id":26113516666979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77fd22df2c016e1dd73e1f63587cc7afc195d1e9.webp?v=1759370807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77fd22df2c016e1dd73e1f63587cc7afc195d1e9.webp?v=1759370807","width":2000},{"alt":null,"id":26113516994659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a91ac4d23ed969418f604043a0a1d670b9d4bc.webp?v=1759370808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a91ac4d23ed969418f604043a0a1d670b9d4bc.webp?v=1759370808","width":2000},{"alt":null,"id":26113517322339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2189e9b917380f380303efb63314950ad5d33715.webp?v=1759370809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2189e9b917380f380303efb63314950ad5d33715.webp?v=1759370809","width":2000},{"alt":null,"id":26113517584483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dd71fe5f87b1a61452f25a4ea7b5e41914a90c.webp?v=1759370810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17dd71fe5f87b1a61452f25a4ea7b5e41914a90c.webp?v=1759370810","width":2000},{"alt":null,"id":26113517781091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3834d74d7251291e04f33893f1969abb7bd3f2.webp?v=1759370811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3834d74d7251291e04f33893f1969abb7bd3f2.webp?v=1759370811","width":2000},{"alt":null,"id":26113517977699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb3160de7676b0c35132938a926954a61c301be.webp?v=1759370811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb3160de7676b0c35132938a926954a61c301be.webp?v=1759370811","width":2000},{"alt":null,"id":26113518141539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26dc4bedeb2211755ce6dd56171badf876501b7.webp?v=1759370812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26dc4bedeb2211755ce6dd56171badf876501b7.webp?v=1759370812","width":2000},{"alt":null,"id":26113518338147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d206a25026adba98e977a1ff94d9c323bd4cc023.webp?v=1759370813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d206a25026adba98e977a1ff94d9c323bd4cc023.webp?v=1759370813","width":2000},{"alt":null,"id":26113518403683,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2221794dbcdc9df138ae460416a2218637fa681.webp?v=1759370815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2221794dbcdc9df138ae460416a2218637fa681.webp?v=1759370815","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756710494307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543761326179,"product_id":7892669497443,"position":2,"created_at":"2025-10-02T10:06:43+08:00","updated_at":"2025-10-02T10:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805","variant_ids":[43756710494307]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Boy - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AAR01","featured_media":{"alt":null,"id":26113516208227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756710494307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543761326179,"product_id":7892669497443,"position":2,"created_at":"2025-10-02T10:06:43+08:00","updated_at":"2025-10-02T10:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805","variant_ids":[43756710494307]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Boy - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AAR01","featured_media":{"alt":null,"id":26113516208227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4add3e23c25e9b112c30758ddeeb2eee257a5343.webp?v=1759370805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }