$product = {"id":7408525869155,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-12-mini-mod-nx-printable-fz05","description":null,"published_at":"2024-06-11T16:39:42+08:00","created_at":"2024-05-03T15:43:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41886488592483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472502800483,"product_id":7408525869155,"position":3,"created_at":"2024-05-03T15:44:01+08:00","updated_at":"2024-05-03T15:44:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241","variant_ids":[41886488592483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0118424-FZ05","featured_media":{"alt":null,"id":23877420056675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c85f50a370664bf9aa97287bcdd177b2a10f5195_bf8f7e10-27d3-4618-84a0-1a58407369c5.webp?v=1714722236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53adb6b08c2446558d3f98ba09ba5fe212183ff_7da84194-904e-4d29-b14b-e5ffa70d80cf.webp?v=1714722239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63353f509a6f491d2adeea1539c3476c26c15a96_a842beee-cbd3-453d-97b9-2af466b70dd6.webp?v=1714722243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d2179250ce45cb4e2dcd8ecc3892e4e919a5ff_8fb33035-622e-42a9-afb3-e940ab1a710c.webp?v=1714722245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2668281e427b9de17f73f5f3685db5b315ef564a_9d12622b-c98d-4f8b-a13b-6be8f43e2bc0.webp?v=1714722247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ffc73bca60d432ac9256150749644090a1fc63_fa2a47a6-b8d3-47d8-8fd7-ddb7eafb62fe.webp?v=1714722250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693563c51dc8d75c51e160a97c85388040e20082_73055f69-c40a-45bd-802a-178aa0382351.webp?v=1714722252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc011a034fd811d9678aecfdf543413baaa62cda_b313a46b-5414-4833-a81b-b2e5e41c5fea.webp?v=1714722254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1a5ceba72705de86945bb8de117cd7f9cea9cb9_228c3928-8b5a-4392-ba16-50f94dcaf09c.webp?v=1714722257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26b67c5a2c66b76a32c73bad6812c4baa6b9ca2_556b8574-7b77-46ec-bd12-52db4bc9f415.webp?v=1714722259"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c85f50a370664bf9aa97287bcdd177b2a10f5195_bf8f7e10-27d3-4618-84a0-1a58407369c5.webp?v=1714722236","options":["color"],"media":[{"alt":null,"id":23877419270243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c85f50a370664bf9aa97287bcdd177b2a10f5195_bf8f7e10-27d3-4618-84a0-1a58407369c5.webp?v=1714722236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c85f50a370664bf9aa97287bcdd177b2a10f5195_bf8f7e10-27d3-4618-84a0-1a58407369c5.webp?v=1714722236","width":2000},{"alt":null,"id":23877419696227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53adb6b08c2446558d3f98ba09ba5fe212183ff_7da84194-904e-4d29-b14b-e5ffa70d80cf.webp?v=1714722239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53adb6b08c2446558d3f98ba09ba5fe212183ff_7da84194-904e-4d29-b14b-e5ffa70d80cf.webp?v=1714722239","width":2000},{"alt":null,"id":23877420056675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241","width":2000},{"alt":null,"id":23877420515427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63353f509a6f491d2adeea1539c3476c26c15a96_a842beee-cbd3-453d-97b9-2af466b70dd6.webp?v=1714722243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63353f509a6f491d2adeea1539c3476c26c15a96_a842beee-cbd3-453d-97b9-2af466b70dd6.webp?v=1714722243","width":2000},{"alt":null,"id":23877420908643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d2179250ce45cb4e2dcd8ecc3892e4e919a5ff_8fb33035-622e-42a9-afb3-e940ab1a710c.webp?v=1714722245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d2179250ce45cb4e2dcd8ecc3892e4e919a5ff_8fb33035-622e-42a9-afb3-e940ab1a710c.webp?v=1714722245","width":2000},{"alt":null,"id":23877421432931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2668281e427b9de17f73f5f3685db5b315ef564a_9d12622b-c98d-4f8b-a13b-6be8f43e2bc0.webp?v=1714722247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2668281e427b9de17f73f5f3685db5b315ef564a_9d12622b-c98d-4f8b-a13b-6be8f43e2bc0.webp?v=1714722247","width":2000},{"alt":null,"id":23877421760611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ffc73bca60d432ac9256150749644090a1fc63_fa2a47a6-b8d3-47d8-8fd7-ddb7eafb62fe.webp?v=1714722250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ffc73bca60d432ac9256150749644090a1fc63_fa2a47a6-b8d3-47d8-8fd7-ddb7eafb62fe.webp?v=1714722250","width":2000},{"alt":null,"id":23877422350435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693563c51dc8d75c51e160a97c85388040e20082_73055f69-c40a-45bd-802a-178aa0382351.webp?v=1714722252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/693563c51dc8d75c51e160a97c85388040e20082_73055f69-c40a-45bd-802a-178aa0382351.webp?v=1714722252","width":2000},{"alt":null,"id":23877422678115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc011a034fd811d9678aecfdf543413baaa62cda_b313a46b-5414-4833-a81b-b2e5e41c5fea.webp?v=1714722254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc011a034fd811d9678aecfdf543413baaa62cda_b313a46b-5414-4833-a81b-b2e5e41c5fea.webp?v=1714722254","width":2000},{"alt":null,"id":23877423202403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1a5ceba72705de86945bb8de117cd7f9cea9cb9_228c3928-8b5a-4392-ba16-50f94dcaf09c.webp?v=1714722257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1a5ceba72705de86945bb8de117cd7f9cea9cb9_228c3928-8b5a-4392-ba16-50f94dcaf09c.webp?v=1714722257","width":2000},{"alt":null,"id":23877423497315,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26b67c5a2c66b76a32c73bad6812c4baa6b9ca2_556b8574-7b77-46ec-bd12-52db4bc9f415.webp?v=1714722259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26b67c5a2c66b76a32c73bad6812c4baa6b9ca2_556b8574-7b77-46ec-bd12-52db4bc9f415.webp?v=1714722259","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886488592483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472502800483,"product_id":7408525869155,"position":3,"created_at":"2024-05-03T15:44:01+08:00","updated_at":"2024-05-03T15:44:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241","variant_ids":[41886488592483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0118424-FZ05","featured_media":{"alt":null,"id":23877420056675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886488592483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472502800483,"product_id":7408525869155,"position":3,"created_at":"2024-05-03T15:44:01+08:00","updated_at":"2024-05-03T15:44:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241","variant_ids":[41886488592483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0118424-FZ05","featured_media":{"alt":null,"id":23877420056675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906833737601b35b2f95ae563de3e663c19fd44_d8482174-0fce-4d0c-9705-edfc04b34e65.webp?v=1714722241"}},"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: "停產" }