$product = {"id":7408405872739,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列","handle":"iphone-12-pro-max-mod-nx-printable-pb84","description":null,"published_at":"2024-06-11T16:36:21+08:00","created_at":"2024-05-03T15:20:18+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":41885121544291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31472185114723,"product_id":7408405872739,"position":7,"created_at":"2024-05-03T15:20:35+08:00","updated_at":"2024-05-03T15:20:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835","variant_ids":[41885121544291]},"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-PB84","featured_media":{"alt":null,"id":23877100896355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2607620f166519483a8633e5800dba1c246124_95bb9972-3eda-493b-9faf-b9c42a2cdf7d.webp?v=1714720820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d07aaf29d3e00ef1dff1bad8f645c8682aed46_4320e996-adb5-4bcd-ae19-0d8446614f0c.webp?v=1714720823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5440082022a3cb45ad71682b23bf9bbe94fa2fd0_fd9ea382-e77e-43c6-b35d-a5a67d0e4d83.webp?v=1714720825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b5b2120005f6ffad4b5fe1d8112af2a9ccaf2_686d512a-d60a-4e7d-b389-c2a90ed7ed93.webp?v=1714720828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3755a44edcf31fcd4aa5a67037613b712a6b6a20_84148bb1-ee85-4d52-b5fe-5a993fbf215d.webp?v=1714720830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8155e47249984e4d16fb9f099c11d18a3d3b1e63_dced9f30-2919-4568-ba4b-d24b47c438f3.webp?v=1714720833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798138d3197bcbab600ca31ed86a832074822e9f_580cc6a4-75e8-4cd8-bd8a-9bc7da4779c8.webp?v=1714720837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121691c78aac5a6845fc436067ecd7d1cf56e67e_ae2fc343-7a5f-4c23-9e97-3cf36f5fcdf1.webp?v=1714720839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3767fedd1d6a3b9afeda49533893e9563e5445_a04504d4-f1a9-4c76-9b66-e9b69da141b6.webp?v=1714720842"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2607620f166519483a8633e5800dba1c246124_95bb9972-3eda-493b-9faf-b9c42a2cdf7d.webp?v=1714720820","options":["color"],"media":[{"alt":null,"id":23877096407139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2607620f166519483a8633e5800dba1c246124_95bb9972-3eda-493b-9faf-b9c42a2cdf7d.webp?v=1714720820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2607620f166519483a8633e5800dba1c246124_95bb9972-3eda-493b-9faf-b9c42a2cdf7d.webp?v=1714720820","width":2000},{"alt":null,"id":23877097193571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d07aaf29d3e00ef1dff1bad8f645c8682aed46_4320e996-adb5-4bcd-ae19-0d8446614f0c.webp?v=1714720823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d07aaf29d3e00ef1dff1bad8f645c8682aed46_4320e996-adb5-4bcd-ae19-0d8446614f0c.webp?v=1714720823","width":2000},{"alt":null,"id":23877097685091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5440082022a3cb45ad71682b23bf9bbe94fa2fd0_fd9ea382-e77e-43c6-b35d-a5a67d0e4d83.webp?v=1714720825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5440082022a3cb45ad71682b23bf9bbe94fa2fd0_fd9ea382-e77e-43c6-b35d-a5a67d0e4d83.webp?v=1714720825","width":2000},{"alt":null,"id":23877098340451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b5b2120005f6ffad4b5fe1d8112af2a9ccaf2_686d512a-d60a-4e7d-b389-c2a90ed7ed93.webp?v=1714720828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b5b2120005f6ffad4b5fe1d8112af2a9ccaf2_686d512a-d60a-4e7d-b389-c2a90ed7ed93.webp?v=1714720828","width":2000},{"alt":null,"id":23877098995811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3755a44edcf31fcd4aa5a67037613b712a6b6a20_84148bb1-ee85-4d52-b5fe-5a993fbf215d.webp?v=1714720830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3755a44edcf31fcd4aa5a67037613b712a6b6a20_84148bb1-ee85-4d52-b5fe-5a993fbf215d.webp?v=1714720830","width":2000},{"alt":null,"id":23877099880547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8155e47249984e4d16fb9f099c11d18a3d3b1e63_dced9f30-2919-4568-ba4b-d24b47c438f3.webp?v=1714720833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8155e47249984e4d16fb9f099c11d18a3d3b1e63_dced9f30-2919-4568-ba4b-d24b47c438f3.webp?v=1714720833","width":2000},{"alt":null,"id":23877100896355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835","width":2000},{"alt":null,"id":23877101748323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798138d3197bcbab600ca31ed86a832074822e9f_580cc6a4-75e8-4cd8-bd8a-9bc7da4779c8.webp?v=1714720837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798138d3197bcbab600ca31ed86a832074822e9f_580cc6a4-75e8-4cd8-bd8a-9bc7da4779c8.webp?v=1714720837","width":2000},{"alt":null,"id":23877102305379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121691c78aac5a6845fc436067ecd7d1cf56e67e_ae2fc343-7a5f-4c23-9e97-3cf36f5fcdf1.webp?v=1714720839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121691c78aac5a6845fc436067ecd7d1cf56e67e_ae2fc343-7a5f-4c23-9e97-3cf36f5fcdf1.webp?v=1714720839","width":2000},{"alt":null,"id":23877103091811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3767fedd1d6a3b9afeda49533893e9563e5445_a04504d4-f1a9-4c76-9b66-e9b69da141b6.webp?v=1714720842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3767fedd1d6a3b9afeda49533893e9563e5445_a04504d4-f1a9-4c76-9b66-e9b69da141b6.webp?v=1714720842","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885121544291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31472185114723,"product_id":7408405872739,"position":7,"created_at":"2024-05-03T15:20:35+08:00","updated_at":"2024-05-03T15:20:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835","variant_ids":[41885121544291]},"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-PB84","featured_media":{"alt":null,"id":23877100896355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885121544291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31472185114723,"product_id":7408405872739,"position":7,"created_at":"2024-05-03T15:20:35+08:00","updated_at":"2024-05-03T15:20:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835","variant_ids":[41885121544291]},"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-PB84","featured_media":{"alt":null,"id":23877100896355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79993b63739dd41cc6bf48e054b454452715619_c607a8b3-544c-4c27-bb71-4c36e2427ec3.webp?v=1714720835"}},"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: "停產" }