$product = {"id":7410987139171,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人","handle":"iphone-15-plus-mod-nx-magsafe-printable-yf10","description":null,"published_at":"2024-06-11T17:33:19+08:00","created_at":"2024-05-04T22:21:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","Top50","type-Mod NX Printable MagSafe Printable"],"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":41893849759843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479220076643,"product_id":7410987139171,"position":3,"created_at":"2024-05-04T22:21:57+08:00","updated_at":"2024-05-04T22:21:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517","variant_ids":[41893849759843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-YF10","featured_media":{"alt":null,"id":23884467241059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893849890915,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221518435,"product_id":7410987139171,"position":6,"created_at":"2024-05-04T22:22:04+08:00","updated_at":"2024-05-04T22:22:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524","variant_ids":[41893849890915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-YF10","featured_media":{"alt":null,"id":23884468781155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b2369dadba5d92398258cfb1ca279c14ea64f0_4a45a35b-7bfc-4a49-bc07-c25317834f9c.webp?v=1714832513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e422fb7fd444c8912d3a36439aa77588200a7ff3_d2593272-3eb6-4e53-8cb1-c31bce107e44.webp?v=1714832515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e78650364f85e34470cb77cc2ee8fb87668c008_09408db6-8289-44e0-b40f-05335039d1bf.webp?v=1714832520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4014ae284c5810f4a83f5006a7318a0b7436705_0890912a-f169-4b7a-8694-1e219a1322ab.webp?v=1714832522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f858daa2b07e2dc21f0c6222f51baeb93a08ec_89af2001-ac06-4a42-939f-6038ee50259f.webp?v=1714832527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fa3431364e09df86984933aa2190ac00228b73_27945537-c5ab-44d9-98b3-1d82651aaea7.webp?v=1714832529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9c25a561d6052480608c2ece0146a4e51ee3de_4ec05c5a-7f4e-4551-846b-00d414c19838.webp?v=1714832532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83de533589772f8ed7f826a04196060a573c9e4_f2a296b8-99fc-4716-8af8-69f52e9b6e8a.webp?v=1714832534"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b2369dadba5d92398258cfb1ca279c14ea64f0_4a45a35b-7bfc-4a49-bc07-c25317834f9c.webp?v=1714832513","options":["color"],"media":[{"alt":null,"id":23884466323555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b2369dadba5d92398258cfb1ca279c14ea64f0_4a45a35b-7bfc-4a49-bc07-c25317834f9c.webp?v=1714832513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b2369dadba5d92398258cfb1ca279c14ea64f0_4a45a35b-7bfc-4a49-bc07-c25317834f9c.webp?v=1714832513","width":2000},{"alt":null,"id":23884466815075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e422fb7fd444c8912d3a36439aa77588200a7ff3_d2593272-3eb6-4e53-8cb1-c31bce107e44.webp?v=1714832515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e422fb7fd444c8912d3a36439aa77588200a7ff3_d2593272-3eb6-4e53-8cb1-c31bce107e44.webp?v=1714832515","width":2000},{"alt":null,"id":23884467241059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517","width":2000},{"alt":null,"id":23884467699811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e78650364f85e34470cb77cc2ee8fb87668c008_09408db6-8289-44e0-b40f-05335039d1bf.webp?v=1714832520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e78650364f85e34470cb77cc2ee8fb87668c008_09408db6-8289-44e0-b40f-05335039d1bf.webp?v=1714832520","width":2000},{"alt":null,"id":23884468125795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4014ae284c5810f4a83f5006a7318a0b7436705_0890912a-f169-4b7a-8694-1e219a1322ab.webp?v=1714832522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4014ae284c5810f4a83f5006a7318a0b7436705_0890912a-f169-4b7a-8694-1e219a1322ab.webp?v=1714832522","width":2000},{"alt":null,"id":23884468781155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524","width":2000},{"alt":null,"id":23884469502051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f858daa2b07e2dc21f0c6222f51baeb93a08ec_89af2001-ac06-4a42-939f-6038ee50259f.webp?v=1714832527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f858daa2b07e2dc21f0c6222f51baeb93a08ec_89af2001-ac06-4a42-939f-6038ee50259f.webp?v=1714832527","width":2000},{"alt":null,"id":23884470026339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fa3431364e09df86984933aa2190ac00228b73_27945537-c5ab-44d9-98b3-1d82651aaea7.webp?v=1714832529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fa3431364e09df86984933aa2190ac00228b73_27945537-c5ab-44d9-98b3-1d82651aaea7.webp?v=1714832529","width":2000},{"alt":null,"id":23884470583395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9c25a561d6052480608c2ece0146a4e51ee3de_4ec05c5a-7f4e-4551-846b-00d414c19838.webp?v=1714832532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9c25a561d6052480608c2ece0146a4e51ee3de_4ec05c5a-7f4e-4551-846b-00d414c19838.webp?v=1714832532","width":2000},{"alt":null,"id":23884471173219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83de533589772f8ed7f826a04196060a573c9e4_f2a296b8-99fc-4716-8af8-69f52e9b6e8a.webp?v=1714832534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83de533589772f8ed7f826a04196060a573c9e4_f2a296b8-99fc-4716-8af8-69f52e9b6e8a.webp?v=1714832534","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41893849759843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479220076643,"product_id":7410987139171,"position":3,"created_at":"2024-05-04T22:21:57+08:00","updated_at":"2024-05-04T22:21:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517","variant_ids":[41893849759843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-YF10","featured_media":{"alt":null,"id":23884467241059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893849890915,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221518435,"product_id":7410987139171,"position":6,"created_at":"2024-05-04T22:22:04+08:00","updated_at":"2024-05-04T22:22:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524","variant_ids":[41893849890915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-YF10","featured_media":{"alt":null,"id":23884468781155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363b7dc0e63fbce270812adfc4c1d9ce0b069d5c_0bbeaa96-0a0e-4af1-b754-5ddcaebcea72.webp?v=1714832524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41893849759843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31479220076643,"product_id":7410987139171,"position":3,"created_at":"2024-05-04T22:21:57+08:00","updated_at":"2024-05-04T22:21:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517","variant_ids":[41893849759843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-YF10","featured_media":{"alt":null,"id":23884467241059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7420429f3ad26d34d8857374231fa72980f852a9_45a38a6d-ac38-432d-ae2a-a75296e3ac24.webp?v=1714832517"}},"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: "停產" }