$product = {"id":7407673507939,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - We are together","handle":"iphone-14-plus-mod-nx-printable-yb14","description":null,"published_at":"2024-06-11T16:21:48+08:00","created_at":"2024-05-03T10:40:05+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 14 Plus","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":41877480898659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470194589795,"product_id":7407673507939,"position":4,"created_at":"2024-05-03T10:40:16+08:00","updated_at":"2024-05-03T10:40:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016","variant_ids":[41877480898659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - We are together - 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-YB14","featured_media":{"alt":null,"id":23875097591907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f29ae731e23f887f941062deffc4f76e89d861_ec76572e-12f4-47d4-9712-6cb2c3368775.webp?v=1714704008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e3ed432c0b32f4b99091426af3b64bfafe24ed_458ff25d-4a39-4ec4-8b68-fb85095b6deb.webp?v=1714704011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c29071e18c74a3f7059c35a710bbf952cc48ab5_5566d1c7-a7d6-4256-b6d9-226fe7186014.webp?v=1714704013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc60171ea6d42f5241ba200af56d1ac3e471409f_34f8bb83-689e-4e47-a66e-6423e2e22a24.webp?v=1714704019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f908fa2af4dcc9c7bbd6bad007821ab0ca377beb_21867d71-093d-483b-93c5-03500d96a990.webp?v=1714704021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5392b14b9e488d0fff102f996459771fe52257b_c24ff334-ec41-4673-9777-aca933d7fc1c.webp?v=1714704024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d817711eb7403126960b10e50a3ca78fadc73d_7c1d1fdf-971c-40ed-a628-41edf531bc80.webp?v=1714704026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1183e433826fa0739e674a4e2ce40a9283cfffc_b271e0f2-2dd3-48a7-9b1a-d1231e83096e.webp?v=1714704028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595a88c21f4f7b099711ee1f2326229d65610ad3_3ec90a2b-e894-4b3e-8229-ceb3bee0818c.webp?v=1714704031"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f29ae731e23f887f941062deffc4f76e89d861_ec76572e-12f4-47d4-9712-6cb2c3368775.webp?v=1714704008","options":["color"],"media":[{"alt":null,"id":23875095691363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f29ae731e23f887f941062deffc4f76e89d861_ec76572e-12f4-47d4-9712-6cb2c3368775.webp?v=1714704008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f29ae731e23f887f941062deffc4f76e89d861_ec76572e-12f4-47d4-9712-6cb2c3368775.webp?v=1714704008","width":2000},{"alt":null,"id":23875096182883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e3ed432c0b32f4b99091426af3b64bfafe24ed_458ff25d-4a39-4ec4-8b68-fb85095b6deb.webp?v=1714704011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e3ed432c0b32f4b99091426af3b64bfafe24ed_458ff25d-4a39-4ec4-8b68-fb85095b6deb.webp?v=1714704011","width":2000},{"alt":null,"id":23875097067619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c29071e18c74a3f7059c35a710bbf952cc48ab5_5566d1c7-a7d6-4256-b6d9-226fe7186014.webp?v=1714704013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c29071e18c74a3f7059c35a710bbf952cc48ab5_5566d1c7-a7d6-4256-b6d9-226fe7186014.webp?v=1714704013","width":2000},{"alt":null,"id":23875097591907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016","width":2000},{"alt":null,"id":23875098083427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc60171ea6d42f5241ba200af56d1ac3e471409f_34f8bb83-689e-4e47-a66e-6423e2e22a24.webp?v=1714704019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc60171ea6d42f5241ba200af56d1ac3e471409f_34f8bb83-689e-4e47-a66e-6423e2e22a24.webp?v=1714704019","width":2000},{"alt":null,"id":23875098968163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f908fa2af4dcc9c7bbd6bad007821ab0ca377beb_21867d71-093d-483b-93c5-03500d96a990.webp?v=1714704021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f908fa2af4dcc9c7bbd6bad007821ab0ca377beb_21867d71-093d-483b-93c5-03500d96a990.webp?v=1714704021","width":2000},{"alt":null,"id":23875099394147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5392b14b9e488d0fff102f996459771fe52257b_c24ff334-ec41-4673-9777-aca933d7fc1c.webp?v=1714704024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5392b14b9e488d0fff102f996459771fe52257b_c24ff334-ec41-4673-9777-aca933d7fc1c.webp?v=1714704024","width":2000},{"alt":null,"id":23875100016739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d817711eb7403126960b10e50a3ca78fadc73d_7c1d1fdf-971c-40ed-a628-41edf531bc80.webp?v=1714704026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d817711eb7403126960b10e50a3ca78fadc73d_7c1d1fdf-971c-40ed-a628-41edf531bc80.webp?v=1714704026","width":2000},{"alt":null,"id":23875100672099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1183e433826fa0739e674a4e2ce40a9283cfffc_b271e0f2-2dd3-48a7-9b1a-d1231e83096e.webp?v=1714704028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1183e433826fa0739e674a4e2ce40a9283cfffc_b271e0f2-2dd3-48a7-9b1a-d1231e83096e.webp?v=1714704028","width":2000},{"alt":null,"id":23875101229155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595a88c21f4f7b099711ee1f2326229d65610ad3_3ec90a2b-e894-4b3e-8229-ceb3bee0818c.webp?v=1714704031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/595a88c21f4f7b099711ee1f2326229d65610ad3_3ec90a2b-e894-4b3e-8229-ceb3bee0818c.webp?v=1714704031","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877480898659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470194589795,"product_id":7407673507939,"position":4,"created_at":"2024-05-03T10:40:16+08:00","updated_at":"2024-05-03T10:40:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016","variant_ids":[41877480898659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - We are together - 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-YB14","featured_media":{"alt":null,"id":23875097591907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877480898659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470194589795,"product_id":7407673507939,"position":4,"created_at":"2024-05-03T10:40:16+08:00","updated_at":"2024-05-03T10:40:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016","variant_ids":[41877480898659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - We are together - 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-YB14","featured_media":{"alt":null,"id":23875097591907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0854c8d0b69b31be5bfd9c550c1260234cb3d16e_a826f116-8b3f-4a21-9898-eb3b8cbbe7a9.webp?v=1714704016"}},"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: "停產" }