$product = {"id":7411328843875,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb44","description":null,"published_at":"2024-06-11T17:41:59+08:00","created_at":"2024-05-05T00:08:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41897512763491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480155996259,"product_id":7411328843875,"position":8,"created_at":"2024-05-05T00:08:57+08:00","updated_at":"2024-05-05T00:08:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937","variant_ids":[41897512763491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0126124-PB44","featured_media":{"alt":null,"id":23885406896227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf751f5ddd94670e2b5cae380f03562bb95889_62ef3027-398e-4b03-9e02-5cda3817155e.webp?v=1714838919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b781e1b70a6bafc347dc0f1d32970bef24f8436b_b039245b-2cdf-462a-99f1-f66b18a24c32.webp?v=1714838922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63a5a6a9eb0c2bbc3a06ea4e24a640208eb6cb9_902a9687-0dcc-423a-b70b-a9cacd02a33b.webp?v=1714838924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/663b0c80be40b814a0cea55aecd6b3b84789642a_98852b0d-2d4c-4513-982b-605e39f64e5e.webp?v=1714838927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ea009c63358e390d9233380f4134041745eb2b_000347a5-eeca-42db-9050-97974d332f1e.webp?v=1714838929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e897d345201c68c8cc82c5b7d62f4a3980679405_4687fe01-e076-46fc-9720-6364fb84229a.webp?v=1714838932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29aef7256c7e92fe5f26008d9c08f10b0342461d_ef5e5d84-e2d0-4b55-87fc-e766e932a023.webp?v=1714838935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/800c89bb2bf3cf82c38c36b8244eed5f9724de67_f81a6663-b50e-4142-8152-07b0c8504a54.webp?v=1714838940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c16d251730d464849d2adc72e78554f807dff9c_3c187dfc-1cb0-4c94-b759-2d2815e23934.webp?v=1714838942"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf751f5ddd94670e2b5cae380f03562bb95889_62ef3027-398e-4b03-9e02-5cda3817155e.webp?v=1714838919","options":["color"],"media":[{"alt":null,"id":23885403291747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf751f5ddd94670e2b5cae380f03562bb95889_62ef3027-398e-4b03-9e02-5cda3817155e.webp?v=1714838919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf751f5ddd94670e2b5cae380f03562bb95889_62ef3027-398e-4b03-9e02-5cda3817155e.webp?v=1714838919","width":2000},{"alt":null,"id":23885403717731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b781e1b70a6bafc347dc0f1d32970bef24f8436b_b039245b-2cdf-462a-99f1-f66b18a24c32.webp?v=1714838922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b781e1b70a6bafc347dc0f1d32970bef24f8436b_b039245b-2cdf-462a-99f1-f66b18a24c32.webp?v=1714838922","width":2000},{"alt":null,"id":23885404176483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63a5a6a9eb0c2bbc3a06ea4e24a640208eb6cb9_902a9687-0dcc-423a-b70b-a9cacd02a33b.webp?v=1714838924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63a5a6a9eb0c2bbc3a06ea4e24a640208eb6cb9_902a9687-0dcc-423a-b70b-a9cacd02a33b.webp?v=1714838924","width":2000},{"alt":null,"id":23885404733539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/663b0c80be40b814a0cea55aecd6b3b84789642a_98852b0d-2d4c-4513-982b-605e39f64e5e.webp?v=1714838927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/663b0c80be40b814a0cea55aecd6b3b84789642a_98852b0d-2d4c-4513-982b-605e39f64e5e.webp?v=1714838927","width":2000},{"alt":null,"id":23885405257827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ea009c63358e390d9233380f4134041745eb2b_000347a5-eeca-42db-9050-97974d332f1e.webp?v=1714838929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ea009c63358e390d9233380f4134041745eb2b_000347a5-eeca-42db-9050-97974d332f1e.webp?v=1714838929","width":2000},{"alt":null,"id":23885405782115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e897d345201c68c8cc82c5b7d62f4a3980679405_4687fe01-e076-46fc-9720-6364fb84229a.webp?v=1714838932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e897d345201c68c8cc82c5b7d62f4a3980679405_4687fe01-e076-46fc-9720-6364fb84229a.webp?v=1714838932","width":2000},{"alt":null,"id":23885406306403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29aef7256c7e92fe5f26008d9c08f10b0342461d_ef5e5d84-e2d0-4b55-87fc-e766e932a023.webp?v=1714838935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29aef7256c7e92fe5f26008d9c08f10b0342461d_ef5e5d84-e2d0-4b55-87fc-e766e932a023.webp?v=1714838935","width":2000},{"alt":null,"id":23885406896227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937","width":2000},{"alt":null,"id":23885407387747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/800c89bb2bf3cf82c38c36b8244eed5f9724de67_f81a6663-b50e-4142-8152-07b0c8504a54.webp?v=1714838940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/800c89bb2bf3cf82c38c36b8244eed5f9724de67_f81a6663-b50e-4142-8152-07b0c8504a54.webp?v=1714838940","width":2000},{"alt":null,"id":23885407944803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c16d251730d464849d2adc72e78554f807dff9c_3c187dfc-1cb0-4c94-b759-2d2815e23934.webp?v=1714838942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c16d251730d464849d2adc72e78554f807dff9c_3c187dfc-1cb0-4c94-b759-2d2815e23934.webp?v=1714838942","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897512763491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480155996259,"product_id":7411328843875,"position":8,"created_at":"2024-05-05T00:08:57+08:00","updated_at":"2024-05-05T00:08:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937","variant_ids":[41897512763491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0126124-PB44","featured_media":{"alt":null,"id":23885406896227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897512763491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480155996259,"product_id":7411328843875,"position":8,"created_at":"2024-05-05T00:08:57+08:00","updated_at":"2024-05-05T00:08:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937","variant_ids":[41897512763491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0126124-PB44","featured_media":{"alt":null,"id":23885406896227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af1986b2bd3bee425eb6e1e857e7a36c72301ab_bbf9898a-cbe0-49eb-871e-e0b0c14ceb3e.webp?v=1714838937"}},"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: "停產" }