$product = {"id":7416075747427,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 願傷疤開花(花蓮)","handle":"iphone-xs-max-mod-nx-printable-ae02","description":null,"published_at":"2024-06-11T16:52:04+08:00","created_at":"2024-05-06T12:53:30+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":41917181132899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491155198051,"product_id":7416075747427,"position":4,"created_at":"2024-05-06T12:53:40+08:00","updated_at":"2024-05-06T12:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220","variant_ids":[41917181132899]},"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-AE02","featured_media":{"alt":null,"id":23896562630755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/572685a0e4aa144635182cb2c13b2e4712e34546_fd5451ae-7907-4689-b389-df2a9328f882.webp?v=1714971213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4556bbfefbe3c35ee42c631b5ae1b7a7aed65715_59614b81-0e6f-41d2-9f5f-e2ec7b37d752.webp?v=1714971215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b35c798e451e76fd42f6de8289e2416baf9c4a_915f7ecf-8864-4424-80b8-8e1594d23059.webp?v=1714971218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a415cdaf0d5747eeca8221f6e58f23fcc205982b_25635d2f-2465-4489-b80e-4abfc8d4499d.webp?v=1714971222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6981eb725bdb03181f2ff410e0d7d40bafce85f9_20484355-a2c4-4b2d-91a2-9f7f3b74a030.webp?v=1714971225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141a8ad0abbbd9e49e58b73cb367bc8a0a73d1f_f4a96ab1-69f2-48d3-8a06-f7e5fe079561.webp?v=1714971227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb802b6a248381024931ab5633144649d7fd6ec7_612e246f-11df-4247-801e-f38f81f448f9.webp?v=1714971229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316b43f2a1f8c8d047462260614ee0279f40af3a_6a7d4767-adff-4d16-b644-1b69532c434f.webp?v=1714971232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5689de6bac9f90f3d0af9129043806a72de1104_3bf4c2eb-91ff-4e81-8cfe-8030cc8e8b74.webp?v=1714971234"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/572685a0e4aa144635182cb2c13b2e4712e34546_fd5451ae-7907-4689-b389-df2a9328f882.webp?v=1714971213","options":["color"],"media":[{"alt":null,"id":23896560599139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/572685a0e4aa144635182cb2c13b2e4712e34546_fd5451ae-7907-4689-b389-df2a9328f882.webp?v=1714971213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/572685a0e4aa144635182cb2c13b2e4712e34546_fd5451ae-7907-4689-b389-df2a9328f882.webp?v=1714971213","width":2000},{"alt":null,"id":23896561123427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4556bbfefbe3c35ee42c631b5ae1b7a7aed65715_59614b81-0e6f-41d2-9f5f-e2ec7b37d752.webp?v=1714971215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4556bbfefbe3c35ee42c631b5ae1b7a7aed65715_59614b81-0e6f-41d2-9f5f-e2ec7b37d752.webp?v=1714971215","width":2000},{"alt":null,"id":23896562106467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b35c798e451e76fd42f6de8289e2416baf9c4a_915f7ecf-8864-4424-80b8-8e1594d23059.webp?v=1714971218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b35c798e451e76fd42f6de8289e2416baf9c4a_915f7ecf-8864-4424-80b8-8e1594d23059.webp?v=1714971218","width":2000},{"alt":null,"id":23896562630755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220","width":2000},{"alt":null,"id":23896563417187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a415cdaf0d5747eeca8221f6e58f23fcc205982b_25635d2f-2465-4489-b80e-4abfc8d4499d.webp?v=1714971222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a415cdaf0d5747eeca8221f6e58f23fcc205982b_25635d2f-2465-4489-b80e-4abfc8d4499d.webp?v=1714971222","width":2000},{"alt":null,"id":23896563974243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6981eb725bdb03181f2ff410e0d7d40bafce85f9_20484355-a2c4-4b2d-91a2-9f7f3b74a030.webp?v=1714971225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6981eb725bdb03181f2ff410e0d7d40bafce85f9_20484355-a2c4-4b2d-91a2-9f7f3b74a030.webp?v=1714971225","width":2000},{"alt":null,"id":23896564465763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141a8ad0abbbd9e49e58b73cb367bc8a0a73d1f_f4a96ab1-69f2-48d3-8a06-f7e5fe079561.webp?v=1714971227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141a8ad0abbbd9e49e58b73cb367bc8a0a73d1f_f4a96ab1-69f2-48d3-8a06-f7e5fe079561.webp?v=1714971227","width":2000},{"alt":null,"id":23896565514339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb802b6a248381024931ab5633144649d7fd6ec7_612e246f-11df-4247-801e-f38f81f448f9.webp?v=1714971229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb802b6a248381024931ab5633144649d7fd6ec7_612e246f-11df-4247-801e-f38f81f448f9.webp?v=1714971229","width":2000},{"alt":null,"id":23896566169699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316b43f2a1f8c8d047462260614ee0279f40af3a_6a7d4767-adff-4d16-b644-1b69532c434f.webp?v=1714971232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316b43f2a1f8c8d047462260614ee0279f40af3a_6a7d4767-adff-4d16-b644-1b69532c434f.webp?v=1714971232","width":2000},{"alt":null,"id":23896566693987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5689de6bac9f90f3d0af9129043806a72de1104_3bf4c2eb-91ff-4e81-8cfe-8030cc8e8b74.webp?v=1714971234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5689de6bac9f90f3d0af9129043806a72de1104_3bf4c2eb-91ff-4e81-8cfe-8030cc8e8b74.webp?v=1714971234","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917181132899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491155198051,"product_id":7416075747427,"position":4,"created_at":"2024-05-06T12:53:40+08:00","updated_at":"2024-05-06T12:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220","variant_ids":[41917181132899]},"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-AE02","featured_media":{"alt":null,"id":23896562630755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917181132899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491155198051,"product_id":7416075747427,"position":4,"created_at":"2024-05-06T12:53:40+08:00","updated_at":"2024-05-06T12:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220","variant_ids":[41917181132899]},"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-AE02","featured_media":{"alt":null,"id":23896562630755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea9eba684bf0b2877d9447127b5963aec33588b_9d62f628-45cd-4d0f-8e2e-b58f85386ea2.webp?v=1714971220"}},"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: "停產" }