$product = {"id":7415960404067,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 願傷疤開花(恆春)","handle":"iphone-xs-max-mod-nx-printable-ae01","description":null,"published_at":"2024-06-11T16:48:59+08:00","created_at":"2024-05-06T12:32:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone XS Max","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","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":41915954298979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490840920163,"product_id":7415960404067,"position":3,"created_at":"2024-05-06T12:32:34+08:00","updated_at":"2024-05-06T12:32:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954","variant_ids":[41915954298979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 願傷疤開花(恆春) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE01","featured_media":{"alt":null,"id":23896247861347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5acd292d2a472ad91277c74bbfac5bbe7f6f5ea_e7ddd65d-2751-4117-b31c-cec789da0a5c.webp?v=1714969950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bbd6e55b9bd782150f03b0f0a900344040112c_c5a302ed-7f90-459f-8af0-f114b329dba9.webp?v=1714969952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3e5d4069e6b925931655dde0f8944a5f5cab51_850edae2-7f04-4db8-a4ba-dd82ce5641cf.webp?v=1714969957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e54c9e72b3f6081642710ccc4f3951443d1d_b458e241-540d-4047-aaee-693cf06e8b7e.webp?v=1714969959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b105b34cd09c62635360b469db9193e389482c_06e3e264-7723-4e92-a92e-6d2d2c051ad9.webp?v=1714969962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41abeb18064f5f40d12917142f46c48a430827de_a79514bd-7c76-4552-8f0e-a7df8a7cd90e.webp?v=1714969964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4cafc395a076318051bf65a45356febb5e72e4_b313f001-7277-4b32-abe9-fd6b38bf93d6.webp?v=1714969967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd17a98e3de2cf3944e36718ce155ec571ed762a_10266d0c-88da-4ad9-8e55-eb93be1c11ce.webp?v=1714969969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d095a3bc2c65fbb7dcddee5f29da8515b12caee_848fb814-6a43-43e2-b781-e12e7351b3a3.webp?v=1714969971"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5acd292d2a472ad91277c74bbfac5bbe7f6f5ea_e7ddd65d-2751-4117-b31c-cec789da0a5c.webp?v=1714969950","options":["color"],"media":[{"alt":null,"id":23896246878307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5acd292d2a472ad91277c74bbfac5bbe7f6f5ea_e7ddd65d-2751-4117-b31c-cec789da0a5c.webp?v=1714969950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5acd292d2a472ad91277c74bbfac5bbe7f6f5ea_e7ddd65d-2751-4117-b31c-cec789da0a5c.webp?v=1714969950","width":2000},{"alt":null,"id":23896247304291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bbd6e55b9bd782150f03b0f0a900344040112c_c5a302ed-7f90-459f-8af0-f114b329dba9.webp?v=1714969952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bbd6e55b9bd782150f03b0f0a900344040112c_c5a302ed-7f90-459f-8af0-f114b329dba9.webp?v=1714969952","width":2000},{"alt":null,"id":23896247861347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954","width":2000},{"alt":null,"id":23896248254563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3e5d4069e6b925931655dde0f8944a5f5cab51_850edae2-7f04-4db8-a4ba-dd82ce5641cf.webp?v=1714969957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3e5d4069e6b925931655dde0f8944a5f5cab51_850edae2-7f04-4db8-a4ba-dd82ce5641cf.webp?v=1714969957","width":2000},{"alt":null,"id":23896249237603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e54c9e72b3f6081642710ccc4f3951443d1d_b458e241-540d-4047-aaee-693cf06e8b7e.webp?v=1714969959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8489e54c9e72b3f6081642710ccc4f3951443d1d_b458e241-540d-4047-aaee-693cf06e8b7e.webp?v=1714969959","width":2000},{"alt":null,"id":23896249598051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b105b34cd09c62635360b469db9193e389482c_06e3e264-7723-4e92-a92e-6d2d2c051ad9.webp?v=1714969962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3b105b34cd09c62635360b469db9193e389482c_06e3e264-7723-4e92-a92e-6d2d2c051ad9.webp?v=1714969962","width":2000},{"alt":null,"id":23896250056803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41abeb18064f5f40d12917142f46c48a430827de_a79514bd-7c76-4552-8f0e-a7df8a7cd90e.webp?v=1714969964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41abeb18064f5f40d12917142f46c48a430827de_a79514bd-7c76-4552-8f0e-a7df8a7cd90e.webp?v=1714969964","width":2000},{"alt":null,"id":23896250613859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4cafc395a076318051bf65a45356febb5e72e4_b313f001-7277-4b32-abe9-fd6b38bf93d6.webp?v=1714969967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4cafc395a076318051bf65a45356febb5e72e4_b313f001-7277-4b32-abe9-fd6b38bf93d6.webp?v=1714969967","width":2000},{"alt":null,"id":23896251138147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd17a98e3de2cf3944e36718ce155ec571ed762a_10266d0c-88da-4ad9-8e55-eb93be1c11ce.webp?v=1714969969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd17a98e3de2cf3944e36718ce155ec571ed762a_10266d0c-88da-4ad9-8e55-eb93be1c11ce.webp?v=1714969969","width":2000},{"alt":null,"id":23896251564131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d095a3bc2c65fbb7dcddee5f29da8515b12caee_848fb814-6a43-43e2-b781-e12e7351b3a3.webp?v=1714969971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d095a3bc2c65fbb7dcddee5f29da8515b12caee_848fb814-6a43-43e2-b781-e12e7351b3a3.webp?v=1714969971","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915954298979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490840920163,"product_id":7415960404067,"position":3,"created_at":"2024-05-06T12:32:34+08:00","updated_at":"2024-05-06T12:32:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954","variant_ids":[41915954298979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 願傷疤開花(恆春) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE01","featured_media":{"alt":null,"id":23896247861347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915954298979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490840920163,"product_id":7415960404067,"position":3,"created_at":"2024-05-06T12:32:34+08:00","updated_at":"2024-05-06T12:32:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954","variant_ids":[41915954298979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 願傷疤開花(恆春) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE01","featured_media":{"alt":null,"id":23896247861347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee4763e504cddab4f505966b86e2995ff9f89803_7954c774-886b-457a-9bbd-e94360d0dd53.webp?v=1714969954"}},"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: "停產" }