$product = {"id":7415967219811,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-xs-max-mod-nx-printable-fz04","description":null,"published_at":"2024-06-11T16:49:10+08:00","created_at":"2024-05-06T12:33:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","Top50","type-Mod NX Printable"],"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":41916025798755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31490861531235,"product_id":7415967219811,"position":10,"created_at":"2024-05-06T12:34:03+08:00","updated_at":"2024-05-06T12:34:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043","variant_ids":[41916025798755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-FZ04","featured_media":{"alt":null,"id":23896268603491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d594fa6f93e3555c07c19315a5d416d71a5c4d28_9aeff6ae-e434-49a9-ace9-39ad2609c106.webp?v=1714970023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7c92b272950c02c38636eee06ad838a24af2a2_5e7c823a-fd93-4d1a-8658-c4572fbcecc5.webp?v=1714970025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fcf770d64db2509453ebc1466fa142153588499_1c53e8af-f3b3-4b5e-82b2-ab48ca5fa64a.webp?v=1714970027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c64b69cf2066689ba3f2775c2c772e6adbbedae_237e1e6a-4e91-4375-90cd-21a311ed9128.webp?v=1714970030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2498fd2bae97f84e1450707ee363471f9d6be1_fbc68a1c-d0fb-4c30-9fb5-9785801e2335.webp?v=1714970032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae214b376157ad60ba66d498a860059a6740651_84bd32a2-cf5a-45f8-9246-6f0adaad7b5d.webp?v=1714970034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f82d213b63f63e4c3d7c357f85ce11acc4f87a_600c29b1-9df3-4987-88a5-41fdc3cf2b20.webp?v=1714970036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6ff442c225f34a450b258b983fc9b9a8994869_28287796-8a90-48d4-9437-1628758f5e64.webp?v=1714970038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615e90e15d741847297fb379fbac1d8cd9914ae_dc55e8a5-4cc4-4572-8735-0da16d591cb9.webp?v=1714970041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d594fa6f93e3555c07c19315a5d416d71a5c4d28_9aeff6ae-e434-49a9-ace9-39ad2609c106.webp?v=1714970023","options":["color"],"media":[{"alt":null,"id":23896264147043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d594fa6f93e3555c07c19315a5d416d71a5c4d28_9aeff6ae-e434-49a9-ace9-39ad2609c106.webp?v=1714970023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d594fa6f93e3555c07c19315a5d416d71a5c4d28_9aeff6ae-e434-49a9-ace9-39ad2609c106.webp?v=1714970023","width":2000},{"alt":null,"id":23896264573027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7c92b272950c02c38636eee06ad838a24af2a2_5e7c823a-fd93-4d1a-8658-c4572fbcecc5.webp?v=1714970025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7c92b272950c02c38636eee06ad838a24af2a2_5e7c823a-fd93-4d1a-8658-c4572fbcecc5.webp?v=1714970025","width":2000},{"alt":null,"id":23896264900707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fcf770d64db2509453ebc1466fa142153588499_1c53e8af-f3b3-4b5e-82b2-ab48ca5fa64a.webp?v=1714970027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fcf770d64db2509453ebc1466fa142153588499_1c53e8af-f3b3-4b5e-82b2-ab48ca5fa64a.webp?v=1714970027","width":2000},{"alt":null,"id":23896265326691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c64b69cf2066689ba3f2775c2c772e6adbbedae_237e1e6a-4e91-4375-90cd-21a311ed9128.webp?v=1714970030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c64b69cf2066689ba3f2775c2c772e6adbbedae_237e1e6a-4e91-4375-90cd-21a311ed9128.webp?v=1714970030","width":2000},{"alt":null,"id":23896265687139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2498fd2bae97f84e1450707ee363471f9d6be1_fbc68a1c-d0fb-4c30-9fb5-9785801e2335.webp?v=1714970032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2498fd2bae97f84e1450707ee363471f9d6be1_fbc68a1c-d0fb-4c30-9fb5-9785801e2335.webp?v=1714970032","width":2000},{"alt":null,"id":23896266178659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae214b376157ad60ba66d498a860059a6740651_84bd32a2-cf5a-45f8-9246-6f0adaad7b5d.webp?v=1714970034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae214b376157ad60ba66d498a860059a6740651_84bd32a2-cf5a-45f8-9246-6f0adaad7b5d.webp?v=1714970034","width":2000},{"alt":null,"id":23896267227235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f82d213b63f63e4c3d7c357f85ce11acc4f87a_600c29b1-9df3-4987-88a5-41fdc3cf2b20.webp?v=1714970036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f82d213b63f63e4c3d7c357f85ce11acc4f87a_600c29b1-9df3-4987-88a5-41fdc3cf2b20.webp?v=1714970036","width":2000},{"alt":null,"id":23896267620451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6ff442c225f34a450b258b983fc9b9a8994869_28287796-8a90-48d4-9437-1628758f5e64.webp?v=1714970038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6ff442c225f34a450b258b983fc9b9a8994869_28287796-8a90-48d4-9437-1628758f5e64.webp?v=1714970038","width":2000},{"alt":null,"id":23896268046435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615e90e15d741847297fb379fbac1d8cd9914ae_dc55e8a5-4cc4-4572-8735-0da16d591cb9.webp?v=1714970041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615e90e15d741847297fb379fbac1d8cd9914ae_dc55e8a5-4cc4-4572-8735-0da16d591cb9.webp?v=1714970041","width":2000},{"alt":null,"id":23896268603491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916025798755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31490861531235,"product_id":7415967219811,"position":10,"created_at":"2024-05-06T12:34:03+08:00","updated_at":"2024-05-06T12:34:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043","variant_ids":[41916025798755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-FZ04","featured_media":{"alt":null,"id":23896268603491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916025798755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31490861531235,"product_id":7415967219811,"position":10,"created_at":"2024-05-06T12:34:03+08:00","updated_at":"2024-05-06T12:34:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043","variant_ids":[41916025798755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-FZ04","featured_media":{"alt":null,"id":23896268603491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff392d11ff8f3ea302dc3a2157d741a512c26a_513c51fe-8219-46db-98d4-2d5f30f8ece1.webp?v=1714970043"}},"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: "停產" }