$product = {"id":7416383012963,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille","handle":"iphone-8-mod-nx-printable-hq05","description":null,"published_at":"2024-06-11T16:57:34+08:00","created_at":"2024-05-06T14:46:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41919138037859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491995041891,"product_id":7416383012963,"position":9,"created_at":"2024-05-06T14:46:34+08:00","updated_at":"2024-05-06T14:46:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994","variant_ids":[41919138037859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0105424-HQ05","featured_media":{"alt":null,"id":23897408569443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68b2ca772db05588c193b08fce3d5e001628806_c1ee8b0a-10c4-4ba8-ac39-de16d5a53b61.webp?v=1714977976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d538cd69fe8570204e8af5ff415170412e1c51b2_5f5bcfa9-2308-45fd-8b8a-53a7cd95325a.webp?v=1714977978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb953059da3b892e0d90e79476a6f62598be90f_e699845f-a94c-4f37-bc0f-2e18197e8d46.webp?v=1714977980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f4814c5a3b42cafd183833a961841d769c1371_8c9751fe-2e58-4c4d-86e4-9f914362db36.webp?v=1714977982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103e17baa8ebbccbdf37bc0d5154cff17cba3bf4_c26214ff-b712-46f8-afcd-8ad39dccd677.webp?v=1714977985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31f8e06f00988d9f040a9440cee0078ff6b09c9d_73ffab0a-773c-41be-9478-751df815f5d4.webp?v=1714977987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d00991e8cd71cb027cbe5b818c4a54ffdef9d4_cf3e58cd-5707-4de5-91a3-245ef59dddbd.webp?v=1714977989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611ad06abb488e029083995c25958f7bd5bd94c_59aee326-0a48-4781-b65e-bc09392bce73.webp?v=1714977992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e7a7d63790f5d12176fa8f37c0e0f93c500bd_ec0f8c0d-3741-41b6-986d-c4253ecd6061.webp?v=1714977996"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68b2ca772db05588c193b08fce3d5e001628806_c1ee8b0a-10c4-4ba8-ac39-de16d5a53b61.webp?v=1714977976","options":["color"],"media":[{"alt":null,"id":23897403949155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68b2ca772db05588c193b08fce3d5e001628806_c1ee8b0a-10c4-4ba8-ac39-de16d5a53b61.webp?v=1714977976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68b2ca772db05588c193b08fce3d5e001628806_c1ee8b0a-10c4-4ba8-ac39-de16d5a53b61.webp?v=1714977976","width":2000},{"alt":null,"id":23897404375139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d538cd69fe8570204e8af5ff415170412e1c51b2_5f5bcfa9-2308-45fd-8b8a-53a7cd95325a.webp?v=1714977978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d538cd69fe8570204e8af5ff415170412e1c51b2_5f5bcfa9-2308-45fd-8b8a-53a7cd95325a.webp?v=1714977978","width":2000},{"alt":null,"id":23897404964963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb953059da3b892e0d90e79476a6f62598be90f_e699845f-a94c-4f37-bc0f-2e18197e8d46.webp?v=1714977980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb953059da3b892e0d90e79476a6f62598be90f_e699845f-a94c-4f37-bc0f-2e18197e8d46.webp?v=1714977980","width":2000},{"alt":null,"id":23897405390947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f4814c5a3b42cafd183833a961841d769c1371_8c9751fe-2e58-4c4d-86e4-9f914362db36.webp?v=1714977982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f4814c5a3b42cafd183833a961841d769c1371_8c9751fe-2e58-4c4d-86e4-9f914362db36.webp?v=1714977982","width":2000},{"alt":null,"id":23897406177379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103e17baa8ebbccbdf37bc0d5154cff17cba3bf4_c26214ff-b712-46f8-afcd-8ad39dccd677.webp?v=1714977985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103e17baa8ebbccbdf37bc0d5154cff17cba3bf4_c26214ff-b712-46f8-afcd-8ad39dccd677.webp?v=1714977985","width":2000},{"alt":null,"id":23897406898275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31f8e06f00988d9f040a9440cee0078ff6b09c9d_73ffab0a-773c-41be-9478-751df815f5d4.webp?v=1714977987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31f8e06f00988d9f040a9440cee0078ff6b09c9d_73ffab0a-773c-41be-9478-751df815f5d4.webp?v=1714977987","width":2000},{"alt":null,"id":23897407291491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d00991e8cd71cb027cbe5b818c4a54ffdef9d4_cf3e58cd-5707-4de5-91a3-245ef59dddbd.webp?v=1714977989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d00991e8cd71cb027cbe5b818c4a54ffdef9d4_cf3e58cd-5707-4de5-91a3-245ef59dddbd.webp?v=1714977989","width":2000},{"alt":null,"id":23897407914083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611ad06abb488e029083995c25958f7bd5bd94c_59aee326-0a48-4781-b65e-bc09392bce73.webp?v=1714977992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611ad06abb488e029083995c25958f7bd5bd94c_59aee326-0a48-4781-b65e-bc09392bce73.webp?v=1714977992","width":2000},{"alt":null,"id":23897408569443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994","width":2000},{"alt":null,"id":23897409126499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e7a7d63790f5d12176fa8f37c0e0f93c500bd_ec0f8c0d-3741-41b6-986d-c4253ecd6061.webp?v=1714977996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e7a7d63790f5d12176fa8f37c0e0f93c500bd_ec0f8c0d-3741-41b6-986d-c4253ecd6061.webp?v=1714977996","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919138037859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491995041891,"product_id":7416383012963,"position":9,"created_at":"2024-05-06T14:46:34+08:00","updated_at":"2024-05-06T14:46:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994","variant_ids":[41919138037859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0105424-HQ05","featured_media":{"alt":null,"id":23897408569443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919138037859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491995041891,"product_id":7416383012963,"position":9,"created_at":"2024-05-06T14:46:34+08:00","updated_at":"2024-05-06T14:46:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994","variant_ids":[41919138037859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0105424-HQ05","featured_media":{"alt":null,"id":23897408569443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d55ccd9cf8465d4da4711ae2a1a76f75c60c54a_7d11e850-f1a6-443d-85cb-2d09dd6a12bc.webp?v=1714977994"}},"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: "停產" }