$product = {"id":7407863726179,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop","handle":"iphone-14-plus-mod-nx-printable-hq04","description":null,"published_at":"2024-06-11T16:24:57+08:00","created_at":"2024-05-03T11:05:01+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 14 Plus","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":41879786422371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470566899811,"product_id":7407863726179,"position":6,"created_at":"2024-05-03T11:05:15+08:00","updated_at":"2024-05-03T11:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515","variant_ids":[41879786422371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23875470753891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729d17073aeb4eb21f8731dff62e683c281fea6c_a4447e40-5e5b-47dd-a289-3c7cfccc51bd.webp?v=1714705503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9df2a1a146da178ab7fbcdd2d3f435e06b0722d_687285c5-5a13-4092-a776-e64db43294ec.webp?v=1714705506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f2cd5402eae8ca200a37486568516fa365f916_dd9bfc63-0c06-41ad-ac8c-79d60bf48c15.webp?v=1714705508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d818f74a82bb573f91a8a4fed5059f1b3daf68d_18a52dec-244d-41f4-8369-b71df6a0e337.webp?v=1714705511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/306156fd3f947a2994facc7950f0a2b1e521f990_098a849a-b23d-4a2a-9ce3-724b545d3b29.webp?v=1714705513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb20fdbd7e2a08b86a8f168dd542726bc1ea3fd_e4ac38f1-065b-465f-afb1-4c5057554da0.webp?v=1714705518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce62ca05cba8889b14d412f70e978e4785eb9c1f_f16e99b1-a172-40a1-85b6-83c0fd544b07.webp?v=1714705520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153382b63940266e5725f6fa845e4159e93ba174_c4922304-24be-45c8-9f83-41d73c0582ca.webp?v=1714705522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f8b9ffbe8fc01645f82858676f7019e49401ba_fad88632-e54e-49ef-aaea-c4fc847c509d.webp?v=1714705525"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729d17073aeb4eb21f8731dff62e683c281fea6c_a4447e40-5e5b-47dd-a289-3c7cfccc51bd.webp?v=1714705503","options":["color"],"media":[{"alt":null,"id":23875468197987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729d17073aeb4eb21f8731dff62e683c281fea6c_a4447e40-5e5b-47dd-a289-3c7cfccc51bd.webp?v=1714705503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729d17073aeb4eb21f8731dff62e683c281fea6c_a4447e40-5e5b-47dd-a289-3c7cfccc51bd.webp?v=1714705503","width":2000},{"alt":null,"id":23875468755043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9df2a1a146da178ab7fbcdd2d3f435e06b0722d_687285c5-5a13-4092-a776-e64db43294ec.webp?v=1714705506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9df2a1a146da178ab7fbcdd2d3f435e06b0722d_687285c5-5a13-4092-a776-e64db43294ec.webp?v=1714705506","width":2000},{"alt":null,"id":23875469312099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f2cd5402eae8ca200a37486568516fa365f916_dd9bfc63-0c06-41ad-ac8c-79d60bf48c15.webp?v=1714705508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f2cd5402eae8ca200a37486568516fa365f916_dd9bfc63-0c06-41ad-ac8c-79d60bf48c15.webp?v=1714705508","width":2000},{"alt":null,"id":23875469803619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d818f74a82bb573f91a8a4fed5059f1b3daf68d_18a52dec-244d-41f4-8369-b71df6a0e337.webp?v=1714705511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d818f74a82bb573f91a8a4fed5059f1b3daf68d_18a52dec-244d-41f4-8369-b71df6a0e337.webp?v=1714705511","width":2000},{"alt":null,"id":23875470229603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/306156fd3f947a2994facc7950f0a2b1e521f990_098a849a-b23d-4a2a-9ce3-724b545d3b29.webp?v=1714705513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/306156fd3f947a2994facc7950f0a2b1e521f990_098a849a-b23d-4a2a-9ce3-724b545d3b29.webp?v=1714705513","width":2000},{"alt":null,"id":23875470753891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515","width":2000},{"alt":null,"id":23875471147107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb20fdbd7e2a08b86a8f168dd542726bc1ea3fd_e4ac38f1-065b-465f-afb1-4c5057554da0.webp?v=1714705518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb20fdbd7e2a08b86a8f168dd542726bc1ea3fd_e4ac38f1-065b-465f-afb1-4c5057554da0.webp?v=1714705518","width":2000},{"alt":null,"id":23875471671395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce62ca05cba8889b14d412f70e978e4785eb9c1f_f16e99b1-a172-40a1-85b6-83c0fd544b07.webp?v=1714705520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce62ca05cba8889b14d412f70e978e4785eb9c1f_f16e99b1-a172-40a1-85b6-83c0fd544b07.webp?v=1714705520","width":2000},{"alt":null,"id":23875472097379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153382b63940266e5725f6fa845e4159e93ba174_c4922304-24be-45c8-9f83-41d73c0582ca.webp?v=1714705522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153382b63940266e5725f6fa845e4159e93ba174_c4922304-24be-45c8-9f83-41d73c0582ca.webp?v=1714705522","width":2000},{"alt":null,"id":23875472588899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f8b9ffbe8fc01645f82858676f7019e49401ba_fad88632-e54e-49ef-aaea-c4fc847c509d.webp?v=1714705525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f8b9ffbe8fc01645f82858676f7019e49401ba_fad88632-e54e-49ef-aaea-c4fc847c509d.webp?v=1714705525","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879786422371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470566899811,"product_id":7407863726179,"position":6,"created_at":"2024-05-03T11:05:15+08:00","updated_at":"2024-05-03T11:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515","variant_ids":[41879786422371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23875470753891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879786422371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470566899811,"product_id":7407863726179,"position":6,"created_at":"2024-05-03T11:05:15+08:00","updated_at":"2024-05-03T11:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515","variant_ids":[41879786422371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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-HQ04","featured_media":{"alt":null,"id":23875470753891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecdacf0b22566908cd730899466519c66c2258d_619ad4a0-2774-4dc9-8fe4-c8239eaaf3a7.webp?v=1714705515"}},"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: "停產" }