$product = {"id":7407818014819,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - J個好","handle":"iphone-14-plus-mod-nx-printable-iv08","description":null,"published_at":"2024-06-11T16:23:41+08:00","created_at":"2024-05-03T10:55:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41879191093347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470445133923,"product_id":7407818014819,"position":10,"created_at":"2024-05-03T10:55:55+08:00","updated_at":"2024-05-03T10:55:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955","variant_ids":[41879191093347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - J個好 - 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":"NPB0126124-IV08","featured_media":{"alt":null,"id":23875348529251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ad165cc0d7c10bdd1244b325b0d8d57f0a9c62_5d03bca9-4e6c-49ca-ab1e-7eb7abfc6b6f.webp?v=1714704934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51cc54a93685c597fd5a45f9f76489e501d57a1_8799e2a2-d745-41bf-9f81-29309c44c212.webp?v=1714704936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76c5b616bb57845644f67343bcf7b0034a5818f_f31a8091-0fca-4328-a512-4c8e19e72373.webp?v=1714704939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49163e922f8a0736dccf1dd328a9a16e6b40c842_a413fd01-1341-4f72-bdfe-5f6e778cbc26.webp?v=1714704941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aada372cad0af81a7f2fd5ef9a6ea47283d9e71e_a87677fb-8a2e-4bb8-b3ce-f350793df640.webp?v=1714704943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f7dd11fb7bea9520ccb06a4b7c01fcfb9e5bfa_a3be4472-e420-44f5-8158-e11675da8f25.webp?v=1714704946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf13a547f1e2ad905ff16eef0a6cb460b59b3f4_2951c14b-9971-4af0-a1b0-376f8a46eab8.webp?v=1714704948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2efb2d67226a6017a484d5290954b3d711f1ade8_5c8a05e8-f310-44b8-b738-08a7cb68b06a.webp?v=1714704951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31922c33617f55cfd5f7d204d0045f98ab4cbdf7_37987826-13b9-4332-96ab-4ad05d773c65.webp?v=1714704953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ad165cc0d7c10bdd1244b325b0d8d57f0a9c62_5d03bca9-4e6c-49ca-ab1e-7eb7abfc6b6f.webp?v=1714704934","options":["color"],"media":[{"alt":null,"id":23875343941731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ad165cc0d7c10bdd1244b325b0d8d57f0a9c62_5d03bca9-4e6c-49ca-ab1e-7eb7abfc6b6f.webp?v=1714704934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ad165cc0d7c10bdd1244b325b0d8d57f0a9c62_5d03bca9-4e6c-49ca-ab1e-7eb7abfc6b6f.webp?v=1714704934","width":2000},{"alt":null,"id":23875344269411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51cc54a93685c597fd5a45f9f76489e501d57a1_8799e2a2-d745-41bf-9f81-29309c44c212.webp?v=1714704936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51cc54a93685c597fd5a45f9f76489e501d57a1_8799e2a2-d745-41bf-9f81-29309c44c212.webp?v=1714704936","width":2000},{"alt":null,"id":23875344793699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76c5b616bb57845644f67343bcf7b0034a5818f_f31a8091-0fca-4328-a512-4c8e19e72373.webp?v=1714704939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76c5b616bb57845644f67343bcf7b0034a5818f_f31a8091-0fca-4328-a512-4c8e19e72373.webp?v=1714704939","width":2000},{"alt":null,"id":23875345055843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49163e922f8a0736dccf1dd328a9a16e6b40c842_a413fd01-1341-4f72-bdfe-5f6e778cbc26.webp?v=1714704941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49163e922f8a0736dccf1dd328a9a16e6b40c842_a413fd01-1341-4f72-bdfe-5f6e778cbc26.webp?v=1714704941","width":2000},{"alt":null,"id":23875345580131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aada372cad0af81a7f2fd5ef9a6ea47283d9e71e_a87677fb-8a2e-4bb8-b3ce-f350793df640.webp?v=1714704943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aada372cad0af81a7f2fd5ef9a6ea47283d9e71e_a87677fb-8a2e-4bb8-b3ce-f350793df640.webp?v=1714704943","width":2000},{"alt":null,"id":23875346104419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f7dd11fb7bea9520ccb06a4b7c01fcfb9e5bfa_a3be4472-e420-44f5-8158-e11675da8f25.webp?v=1714704946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f7dd11fb7bea9520ccb06a4b7c01fcfb9e5bfa_a3be4472-e420-44f5-8158-e11675da8f25.webp?v=1714704946","width":2000},{"alt":null,"id":23875346595939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf13a547f1e2ad905ff16eef0a6cb460b59b3f4_2951c14b-9971-4af0-a1b0-376f8a46eab8.webp?v=1714704948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf13a547f1e2ad905ff16eef0a6cb460b59b3f4_2951c14b-9971-4af0-a1b0-376f8a46eab8.webp?v=1714704948","width":2000},{"alt":null,"id":23875347087459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2efb2d67226a6017a484d5290954b3d711f1ade8_5c8a05e8-f310-44b8-b738-08a7cb68b06a.webp?v=1714704951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2efb2d67226a6017a484d5290954b3d711f1ade8_5c8a05e8-f310-44b8-b738-08a7cb68b06a.webp?v=1714704951","width":2000},{"alt":null,"id":23875347480675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31922c33617f55cfd5f7d204d0045f98ab4cbdf7_37987826-13b9-4332-96ab-4ad05d773c65.webp?v=1714704953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31922c33617f55cfd5f7d204d0045f98ab4cbdf7_37987826-13b9-4332-96ab-4ad05d773c65.webp?v=1714704953","width":2000},{"alt":null,"id":23875348529251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879191093347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470445133923,"product_id":7407818014819,"position":10,"created_at":"2024-05-03T10:55:55+08:00","updated_at":"2024-05-03T10:55:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955","variant_ids":[41879191093347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - J個好 - 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":"NPB0126124-IV08","featured_media":{"alt":null,"id":23875348529251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879191093347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470445133923,"product_id":7407818014819,"position":10,"created_at":"2024-05-03T10:55:55+08:00","updated_at":"2024-05-03T10:55:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955","variant_ids":[41879191093347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - J個好 - 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":"NPB0126124-IV08","featured_media":{"alt":null,"id":23875348529251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6cd66fff4c2fe46c243008daf9949039ed9a27_4fe7d0e0-d20a-4d79-a734-917c7423da62.webp?v=1714704955"}},"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: "停產" }