$product = {"id":7408473866339,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列","handle":"iphone-12-pro-max-mod-nx-printable-pb71","description":null,"published_at":"2024-06-11T16:38:14+08:00","created_at":"2024-05-03T15:33:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41885883564131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31472370942051,"product_id":7408473866339,"position":10,"created_at":"2024-05-03T15:34:01+08:00","updated_at":"2024-05-03T15:34:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641","variant_ids":[41885883564131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列 - 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":"NPB0118724-PB71","featured_media":{"alt":null,"id":23877287805027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30985ab993564ccba67fe1ac82a9909083fad93d_cbcbfa87-9d0e-4881-a4fa-a5ea017dafb3.webp?v=1714721620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb88b8fe11385c1bf916856a276f5bc3629640_4eee3623-f062-4cf7-8829-a2e95ae1329e.webp?v=1714721622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e534a84ead801950f1111e1f0509b7df3eeb6f24_3a603cd8-e249-4aa1-b4fd-6620ea909431.webp?v=1714721625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7281b7d664097322c3f156cfd04f25549dc27436_6c08d1bf-c7fb-4193-8a74-d2f967d03125.webp?v=1714721627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae8c52f129844952bb338ccadb58ef41f31e70f_d7f35ec0-28fc-4b42-bbde-7c14b67d92a1.webp?v=1714721629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347c0279a6f781bddbdcf2f0de5eae42b032807e_14649ff7-217e-4ea7-963c-fdbc0a9c7a13.webp?v=1714721632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb70802de32c9f53761dee01224a3630ea4662b2_8fb08155-549d-47e9-a29a-eee86d50779c.webp?v=1714721634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ca0a8557d39ff1d496c714209e91fafe515093_77e89712-aef5-47b2-a481-20af2b564866.webp?v=1714721636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6231c436f206d4aa954788c79bac0ff199666a94_f126653a-1a07-44f4-9a6d-c6b7e6347a7c.webp?v=1714721638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30985ab993564ccba67fe1ac82a9909083fad93d_cbcbfa87-9d0e-4881-a4fa-a5ea017dafb3.webp?v=1714721620","options":["color"],"media":[{"alt":null,"id":23877283741795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30985ab993564ccba67fe1ac82a9909083fad93d_cbcbfa87-9d0e-4881-a4fa-a5ea017dafb3.webp?v=1714721620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30985ab993564ccba67fe1ac82a9909083fad93d_cbcbfa87-9d0e-4881-a4fa-a5ea017dafb3.webp?v=1714721620","width":2000},{"alt":null,"id":23877284298851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb88b8fe11385c1bf916856a276f5bc3629640_4eee3623-f062-4cf7-8829-a2e95ae1329e.webp?v=1714721622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb88b8fe11385c1bf916856a276f5bc3629640_4eee3623-f062-4cf7-8829-a2e95ae1329e.webp?v=1714721622","width":2000},{"alt":null,"id":23877284790371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e534a84ead801950f1111e1f0509b7df3eeb6f24_3a603cd8-e249-4aa1-b4fd-6620ea909431.webp?v=1714721625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e534a84ead801950f1111e1f0509b7df3eeb6f24_3a603cd8-e249-4aa1-b4fd-6620ea909431.webp?v=1714721625","width":2000},{"alt":null,"id":23877285183587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7281b7d664097322c3f156cfd04f25549dc27436_6c08d1bf-c7fb-4193-8a74-d2f967d03125.webp?v=1714721627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7281b7d664097322c3f156cfd04f25549dc27436_6c08d1bf-c7fb-4193-8a74-d2f967d03125.webp?v=1714721627","width":2000},{"alt":null,"id":23877285838947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae8c52f129844952bb338ccadb58ef41f31e70f_d7f35ec0-28fc-4b42-bbde-7c14b67d92a1.webp?v=1714721629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae8c52f129844952bb338ccadb58ef41f31e70f_d7f35ec0-28fc-4b42-bbde-7c14b67d92a1.webp?v=1714721629","width":2000},{"alt":null,"id":23877286166627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347c0279a6f781bddbdcf2f0de5eae42b032807e_14649ff7-217e-4ea7-963c-fdbc0a9c7a13.webp?v=1714721632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347c0279a6f781bddbdcf2f0de5eae42b032807e_14649ff7-217e-4ea7-963c-fdbc0a9c7a13.webp?v=1714721632","width":2000},{"alt":null,"id":23877286658147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb70802de32c9f53761dee01224a3630ea4662b2_8fb08155-549d-47e9-a29a-eee86d50779c.webp?v=1714721634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb70802de32c9f53761dee01224a3630ea4662b2_8fb08155-549d-47e9-a29a-eee86d50779c.webp?v=1714721634","width":2000},{"alt":null,"id":23877287018595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ca0a8557d39ff1d496c714209e91fafe515093_77e89712-aef5-47b2-a481-20af2b564866.webp?v=1714721636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ca0a8557d39ff1d496c714209e91fafe515093_77e89712-aef5-47b2-a481-20af2b564866.webp?v=1714721636","width":2000},{"alt":null,"id":23877287510115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6231c436f206d4aa954788c79bac0ff199666a94_f126653a-1a07-44f4-9a6d-c6b7e6347a7c.webp?v=1714721638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6231c436f206d4aa954788c79bac0ff199666a94_f126653a-1a07-44f4-9a6d-c6b7e6347a7c.webp?v=1714721638","width":2000},{"alt":null,"id":23877287805027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885883564131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31472370942051,"product_id":7408473866339,"position":10,"created_at":"2024-05-03T15:34:01+08:00","updated_at":"2024-05-03T15:34:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641","variant_ids":[41885883564131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列 - 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":"NPB0118724-PB71","featured_media":{"alt":null,"id":23877287805027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885883564131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31472370942051,"product_id":7408473866339,"position":10,"created_at":"2024-05-03T15:34:01+08:00","updated_at":"2024-05-03T15:34:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641","variant_ids":[41885883564131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列 - 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":"NPB0118724-PB71","featured_media":{"alt":null,"id":23877287805027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cbdd7d4b5a76cc89beeb83a8cfba62d2026c86_75b42165-19c9-4047-beb5-977819e3c81d.webp?v=1714721641"}},"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: "停產" }