$product = {"id":7369180086371,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - Chill moment","handle":"iphone-14-plus-mod-nx-printable-pl58","description":null,"published_at":"2024-06-11T16:13:56+08:00","created_at":"2024-04-23T15:39:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","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":41793341784163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387000242275,"product_id":7369180086371,"position":9,"created_at":"2024-04-23T15:39:37+08:00","updated_at":"2024-04-23T15:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977","variant_ids":[41793341784163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0126124-PL58","featured_media":{"alt":null,"id":23789238747235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ba6fdf1f6fdfc33a304a2d8d254f69054355e2_b2ea5000-6f5e-465b-a437-0ea118932c7d.webp?v=1713857954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f047822735e00dd6c19ca3bc406a1252344d1ffb_137eb4b6-2117-4e70-aa76-15209e3786b3.webp?v=1713857956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb907f4eccdbf598856ae0efd25946a105b891db_40f1a741-cd86-4474-8387-70f772857322.webp?v=1713857958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6eef2ceabd7584d15fe8fd25d518e16f38d15d8_068ac7e8-02d6-4050-b83c-c689fa49d665.webp?v=1713857960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670c09a92df6cb50bd50ca131676c82923a7311c_43204684-c33d-4301-b837-e468d057dddf.webp?v=1713857963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda044ae79ffe5c944420f3d6bab45be41b5e71d_3e917df6-5664-4cff-b870-a83767dafb3b.webp?v=1713857970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c008106c0a8fa6633bc006b50f0b90f95cd1343_7ecb0f38-ad8f-47ed-804e-475a030351a0.webp?v=1713857973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb4130f516e43e6c3b5d8af2ab37cc36f86c2cc_d23bb47f-f398-4cc1-9dd0-5b675888d1db.webp?v=1713857975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae38f75d2b27b4f180880ec75181a95ed393561e_ce125b6c-520c-40c6-9f48-1e43d2072162.webp?v=1713857980"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ba6fdf1f6fdfc33a304a2d8d254f69054355e2_b2ea5000-6f5e-465b-a437-0ea118932c7d.webp?v=1713857954","options":["color"],"media":[{"alt":null,"id":23789232652387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ba6fdf1f6fdfc33a304a2d8d254f69054355e2_b2ea5000-6f5e-465b-a437-0ea118932c7d.webp?v=1713857954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ba6fdf1f6fdfc33a304a2d8d254f69054355e2_b2ea5000-6f5e-465b-a437-0ea118932c7d.webp?v=1713857954","width":2000},{"alt":null,"id":23789233111139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f047822735e00dd6c19ca3bc406a1252344d1ffb_137eb4b6-2117-4e70-aa76-15209e3786b3.webp?v=1713857956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f047822735e00dd6c19ca3bc406a1252344d1ffb_137eb4b6-2117-4e70-aa76-15209e3786b3.webp?v=1713857956","width":2000},{"alt":null,"id":23789233668195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb907f4eccdbf598856ae0efd25946a105b891db_40f1a741-cd86-4474-8387-70f772857322.webp?v=1713857958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb907f4eccdbf598856ae0efd25946a105b891db_40f1a741-cd86-4474-8387-70f772857322.webp?v=1713857958","width":2000},{"alt":null,"id":23789234225251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6eef2ceabd7584d15fe8fd25d518e16f38d15d8_068ac7e8-02d6-4050-b83c-c689fa49d665.webp?v=1713857960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6eef2ceabd7584d15fe8fd25d518e16f38d15d8_068ac7e8-02d6-4050-b83c-c689fa49d665.webp?v=1713857960","width":2000},{"alt":null,"id":23789235011683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670c09a92df6cb50bd50ca131676c82923a7311c_43204684-c33d-4301-b837-e468d057dddf.webp?v=1713857963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670c09a92df6cb50bd50ca131676c82923a7311c_43204684-c33d-4301-b837-e468d057dddf.webp?v=1713857963","width":2000},{"alt":null,"id":23789236748387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda044ae79ffe5c944420f3d6bab45be41b5e71d_3e917df6-5664-4cff-b870-a83767dafb3b.webp?v=1713857970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda044ae79ffe5c944420f3d6bab45be41b5e71d_3e917df6-5664-4cff-b870-a83767dafb3b.webp?v=1713857970","width":2000},{"alt":null,"id":23789237436515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c008106c0a8fa6633bc006b50f0b90f95cd1343_7ecb0f38-ad8f-47ed-804e-475a030351a0.webp?v=1713857973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c008106c0a8fa6633bc006b50f0b90f95cd1343_7ecb0f38-ad8f-47ed-804e-475a030351a0.webp?v=1713857973","width":2000},{"alt":null,"id":23789237960803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb4130f516e43e6c3b5d8af2ab37cc36f86c2cc_d23bb47f-f398-4cc1-9dd0-5b675888d1db.webp?v=1713857975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb4130f516e43e6c3b5d8af2ab37cc36f86c2cc_d23bb47f-f398-4cc1-9dd0-5b675888d1db.webp?v=1713857975","width":2000},{"alt":null,"id":23789238747235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977","width":2000},{"alt":null,"id":23789239337059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae38f75d2b27b4f180880ec75181a95ed393561e_ce125b6c-520c-40c6-9f48-1e43d2072162.webp?v=1713857980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae38f75d2b27b4f180880ec75181a95ed393561e_ce125b6c-520c-40c6-9f48-1e43d2072162.webp?v=1713857980","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793341784163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387000242275,"product_id":7369180086371,"position":9,"created_at":"2024-04-23T15:39:37+08:00","updated_at":"2024-04-23T15:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977","variant_ids":[41793341784163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0126124-PL58","featured_media":{"alt":null,"id":23789238747235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793341784163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387000242275,"product_id":7369180086371,"position":9,"created_at":"2024-04-23T15:39:37+08:00","updated_at":"2024-04-23T15:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977","variant_ids":[41793341784163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0126124-PL58","featured_media":{"alt":null,"id":23789238747235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef4a8dfb231934f8061c3155107403a4a854fc0_17945bff-3423-4992-87d2-269bc92bea37.webp?v=1713857977"}},"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: "停產" }