$product = {"id":7408445718627,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 春夏犬の時裝週","handle":"iphone-12-mini-mod-nx-printable-b071","description":null,"published_at":"2024-06-11T16:37:25+08:00","created_at":"2024-05-03T15:27:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 12 mini","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-original-design","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":41885559128163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31472296886371,"product_id":7408445718627,"position":2,"created_at":"2024-05-03T15:27:57+08:00","updated_at":"2024-05-03T15:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277","variant_ids":[41885559128163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 春夏犬の時裝週 - 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-B071","featured_media":{"alt":null,"id":23877213225059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee045f0eda692ca12eee98de70b6203b0df690_483ed022-7f12-444b-85dd-e34cf975cf41.webp?v=1714721275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ef7492d9cca3ce6bad233e5c429cd7e56de77_f9d4f29f-46e6-4377-b87d-50632a3b3618.webp?v=1714721280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324696d6a6fc9063fba65c21dfc76fb759bcd8e1_c834661a-ee41-42c0-a9d9-18a6490eaca8.webp?v=1714721282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c243dbb0d3a705dd601bb8f17824e59fe64dbe_4214f434-f1f3-478f-bff0-2164a02ac942.webp?v=1714721284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26870e71be6c6157ee4e0a2ba714702e5131bc0_b61c6118-cdc1-4ede-91a9-23007f87784e.webp?v=1714721287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119a9b64916ff6779b5d0de3d1625e74601f5964_b72a2345-21a8-4521-901a-51c2a0e252c6.webp?v=1714721289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01b9092a5154193a8a3c8bed2e386bc0d6f88d_ddcca063-f2e1-44d9-8286-32cf012dbc13.webp?v=1714721291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070aaa825574ff7bcd329bec790192bcccbe01eb_6b7acff7-0eff-4eb3-b8ac-0c9dd08b6aab.webp?v=1714721294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f22326172179756df5fcd57869a0fb4cf36b8e5_28b68620-fefd-4568-9b70-c9d39952b38a.webp?v=1714721296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce70fe903ff8b3b23fffd6ae92cb8de711a73f3a_e69f1514-2e4f-4ccb-8b45-e48de1ff2324.webp?v=1714721298"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee045f0eda692ca12eee98de70b6203b0df690_483ed022-7f12-444b-85dd-e34cf975cf41.webp?v=1714721275","options":["color"],"media":[{"alt":null,"id":23877212799075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee045f0eda692ca12eee98de70b6203b0df690_483ed022-7f12-444b-85dd-e34cf975cf41.webp?v=1714721275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee045f0eda692ca12eee98de70b6203b0df690_483ed022-7f12-444b-85dd-e34cf975cf41.webp?v=1714721275","width":2000},{"alt":null,"id":23877213225059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277","width":2000},{"alt":null,"id":23877213618275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ef7492d9cca3ce6bad233e5c429cd7e56de77_f9d4f29f-46e6-4377-b87d-50632a3b3618.webp?v=1714721280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ef7492d9cca3ce6bad233e5c429cd7e56de77_f9d4f29f-46e6-4377-b87d-50632a3b3618.webp?v=1714721280","width":2000},{"alt":null,"id":23877214175331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324696d6a6fc9063fba65c21dfc76fb759bcd8e1_c834661a-ee41-42c0-a9d9-18a6490eaca8.webp?v=1714721282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324696d6a6fc9063fba65c21dfc76fb759bcd8e1_c834661a-ee41-42c0-a9d9-18a6490eaca8.webp?v=1714721282","width":2000},{"alt":null,"id":23877214634083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c243dbb0d3a705dd601bb8f17824e59fe64dbe_4214f434-f1f3-478f-bff0-2164a02ac942.webp?v=1714721284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c243dbb0d3a705dd601bb8f17824e59fe64dbe_4214f434-f1f3-478f-bff0-2164a02ac942.webp?v=1714721284","width":2000},{"alt":null,"id":23877215223907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26870e71be6c6157ee4e0a2ba714702e5131bc0_b61c6118-cdc1-4ede-91a9-23007f87784e.webp?v=1714721287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26870e71be6c6157ee4e0a2ba714702e5131bc0_b61c6118-cdc1-4ede-91a9-23007f87784e.webp?v=1714721287","width":2000},{"alt":null,"id":23877215780963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119a9b64916ff6779b5d0de3d1625e74601f5964_b72a2345-21a8-4521-901a-51c2a0e252c6.webp?v=1714721289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119a9b64916ff6779b5d0de3d1625e74601f5964_b72a2345-21a8-4521-901a-51c2a0e252c6.webp?v=1714721289","width":2000},{"alt":null,"id":23877216239715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01b9092a5154193a8a3c8bed2e386bc0d6f88d_ddcca063-f2e1-44d9-8286-32cf012dbc13.webp?v=1714721291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01b9092a5154193a8a3c8bed2e386bc0d6f88d_ddcca063-f2e1-44d9-8286-32cf012dbc13.webp?v=1714721291","width":2000},{"alt":null,"id":23877216698467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070aaa825574ff7bcd329bec790192bcccbe01eb_6b7acff7-0eff-4eb3-b8ac-0c9dd08b6aab.webp?v=1714721294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070aaa825574ff7bcd329bec790192bcccbe01eb_6b7acff7-0eff-4eb3-b8ac-0c9dd08b6aab.webp?v=1714721294","width":2000},{"alt":null,"id":23877217288291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f22326172179756df5fcd57869a0fb4cf36b8e5_28b68620-fefd-4568-9b70-c9d39952b38a.webp?v=1714721296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f22326172179756df5fcd57869a0fb4cf36b8e5_28b68620-fefd-4568-9b70-c9d39952b38a.webp?v=1714721296","width":2000},{"alt":null,"id":23877217812579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce70fe903ff8b3b23fffd6ae92cb8de711a73f3a_e69f1514-2e4f-4ccb-8b45-e48de1ff2324.webp?v=1714721298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce70fe903ff8b3b23fffd6ae92cb8de711a73f3a_e69f1514-2e4f-4ccb-8b45-e48de1ff2324.webp?v=1714721298","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885559128163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31472296886371,"product_id":7408445718627,"position":2,"created_at":"2024-05-03T15:27:57+08:00","updated_at":"2024-05-03T15:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277","variant_ids":[41885559128163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 春夏犬の時裝週 - 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-B071","featured_media":{"alt":null,"id":23877213225059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885559128163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31472296886371,"product_id":7408445718627,"position":2,"created_at":"2024-05-03T15:27:57+08:00","updated_at":"2024-05-03T15:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277","variant_ids":[41885559128163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 春夏犬の時裝週 - 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-B071","featured_media":{"alt":null,"id":23877213225059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cdb145ab8a5397bdc30e24aae38bed059098863_e43a17dd-244e-4f15-a4b1-522bfde1f4c7.webp?v=1714721277"}},"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: "停產" }