$product = {"id":7415894507619,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 熊滿星空","handle":"iphone-xs-max-mod-nx-printable-yb09","description":null,"published_at":"2024-06-11T16:47:17+08:00","created_at":"2024-05-06T12:20:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41915284193379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31490679734371,"product_id":7415894507619,"position":8,"created_at":"2024-05-06T12:20:30+08:00","updated_at":"2024-05-06T12:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230","variant_ids":[41915284193379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23896086446179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c4de170c95f827279cfddf2ed2f90b0274655e_aca5d4eb-4d61-4d7d-8901-5c16a8efb0fc.webp?v=1714969212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e5fa36d611589338f79d6fd478a5dcad384e5_432c2222-1064-4889-9e68-e6bf9363be70.webp?v=1714969215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a49099484fcc1b8dc71588a2ba6490bdf36664b_2fc7fa65-3507-46bc-8fca-b7ea6a485fce.webp?v=1714969217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2df8128e13663321a5bc96908857d9c389f1a_092e3c47-f620-49b5-ba44-548bac21ae6b.webp?v=1714969220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf710d17a7f3b3087f04bbe47c540ef73d93e2ca_074dee11-ea8a-4d30-bf47-a36683d1553d.webp?v=1714969222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9421f8e7813b0ff5815c34deefc657195c2a20_ca2b86d3-a250-4cd2-bc0e-c509186b4191.webp?v=1714969224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ccaf45e9c8c4958a5dc763f11efb3ad9ed3437_02219c43-094d-4dbd-b9ad-96e95ed8776c.webp?v=1714969227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b355f30c1a0509b36779ddf5bb8eafc6ff40ea_1965cfe3-2a38-4f8d-81a9-992086280067.webp?v=1714969232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f4af1da1b9e18df2f4b67b3db0058e477a6ab2_a7b5922b-d43b-4c3a-b889-af7cf9c32e01.webp?v=1714969235"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c4de170c95f827279cfddf2ed2f90b0274655e_aca5d4eb-4d61-4d7d-8901-5c16a8efb0fc.webp?v=1714969212","options":["color"],"media":[{"alt":null,"id":23896083365987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c4de170c95f827279cfddf2ed2f90b0274655e_aca5d4eb-4d61-4d7d-8901-5c16a8efb0fc.webp?v=1714969212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c4de170c95f827279cfddf2ed2f90b0274655e_aca5d4eb-4d61-4d7d-8901-5c16a8efb0fc.webp?v=1714969212","width":2000},{"alt":null,"id":23896083857507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e5fa36d611589338f79d6fd478a5dcad384e5_432c2222-1064-4889-9e68-e6bf9363be70.webp?v=1714969215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e5fa36d611589338f79d6fd478a5dcad384e5_432c2222-1064-4889-9e68-e6bf9363be70.webp?v=1714969215","width":2000},{"alt":null,"id":23896084119651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a49099484fcc1b8dc71588a2ba6490bdf36664b_2fc7fa65-3507-46bc-8fca-b7ea6a485fce.webp?v=1714969217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a49099484fcc1b8dc71588a2ba6490bdf36664b_2fc7fa65-3507-46bc-8fca-b7ea6a485fce.webp?v=1714969217","width":2000},{"alt":null,"id":23896084611171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2df8128e13663321a5bc96908857d9c389f1a_092e3c47-f620-49b5-ba44-548bac21ae6b.webp?v=1714969220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb2df8128e13663321a5bc96908857d9c389f1a_092e3c47-f620-49b5-ba44-548bac21ae6b.webp?v=1714969220","width":2000},{"alt":null,"id":23896084938851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf710d17a7f3b3087f04bbe47c540ef73d93e2ca_074dee11-ea8a-4d30-bf47-a36683d1553d.webp?v=1714969222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf710d17a7f3b3087f04bbe47c540ef73d93e2ca_074dee11-ea8a-4d30-bf47-a36683d1553d.webp?v=1714969222","width":2000},{"alt":null,"id":23896085561443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9421f8e7813b0ff5815c34deefc657195c2a20_ca2b86d3-a250-4cd2-bc0e-c509186b4191.webp?v=1714969224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9421f8e7813b0ff5815c34deefc657195c2a20_ca2b86d3-a250-4cd2-bc0e-c509186b4191.webp?v=1714969224","width":2000},{"alt":null,"id":23896085954659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ccaf45e9c8c4958a5dc763f11efb3ad9ed3437_02219c43-094d-4dbd-b9ad-96e95ed8776c.webp?v=1714969227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ccaf45e9c8c4958a5dc763f11efb3ad9ed3437_02219c43-094d-4dbd-b9ad-96e95ed8776c.webp?v=1714969227","width":2000},{"alt":null,"id":23896086446179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230","width":2000},{"alt":null,"id":23896086970467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b355f30c1a0509b36779ddf5bb8eafc6ff40ea_1965cfe3-2a38-4f8d-81a9-992086280067.webp?v=1714969232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b355f30c1a0509b36779ddf5bb8eafc6ff40ea_1965cfe3-2a38-4f8d-81a9-992086280067.webp?v=1714969232","width":2000},{"alt":null,"id":23896087363683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f4af1da1b9e18df2f4b67b3db0058e477a6ab2_a7b5922b-d43b-4c3a-b889-af7cf9c32e01.webp?v=1714969235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f4af1da1b9e18df2f4b67b3db0058e477a6ab2_a7b5922b-d43b-4c3a-b889-af7cf9c32e01.webp?v=1714969235","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915284193379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31490679734371,"product_id":7415894507619,"position":8,"created_at":"2024-05-06T12:20:30+08:00","updated_at":"2024-05-06T12:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230","variant_ids":[41915284193379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23896086446179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915284193379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31490679734371,"product_id":7415894507619,"position":8,"created_at":"2024-05-06T12:20:30+08:00","updated_at":"2024-05-06T12:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230","variant_ids":[41915284193379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23896086446179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22186be5cc885de271b7337a01a12d6cd399d8a_e1a19d1b-f5dc-40c8-99e6-c7975404010a.webp?v=1714969230"}},"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: "停產" }