$product = {"id":7408563847267,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-12-pro-max-mod-nx-printable-pb70","description":null,"published_at":"2024-06-11T16:40:50+08:00","created_at":"2024-05-03T15:51:35+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":41886924079203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31472601104483,"product_id":7408563847267,"position":3,"created_at":"2024-05-03T15:51:43+08:00","updated_at":"2024-05-03T15:51:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703","variant_ids":[41886924079203]},"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-PB70","featured_media":{"alt":null,"id":23877518688355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510ddd429b3e4bafe77230cc7eb202b32040aaa2_e728e8d7-f62b-4e77-8006-29d1cc44fe23.webp?v=1714722697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c29dbe4f45f9ba2b9a16f19eb3d54d5f8fd812_b11ffbb8-97f6-4da9-8d2d-e06e921d4d4b.webp?v=1714722700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467d4db03770ecb533494a84321493fb55fa3cc2_10a30845-1181-417a-9226-83fc0ec02a66.webp?v=1714722705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1268e973f0f4b0828a82c60e36205cfc43daa8_8ae13d3b-060e-47e1-9af2-bd1c1f41af9b.webp?v=1714722708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7616eb4a4f96ea2c67f871b4df2b0eb135446_da9a534f-1710-4775-b2cb-1b5b5ccf4535.webp?v=1714722711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4eae4171cd9b081eb4173ae83f98fef499562b0_e0c0c0d1-0e7e-4fec-a2be-7edee9a82269.webp?v=1714722713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2563d5a894f0ddb05ed6b83299a0f88104e1e50_df5a59fd-431c-4275-908b-4f6751b84316.webp?v=1714722715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928eb98fb015390c7a7410b6f81dec437e7ee42_1963d071-663b-479f-bc6c-177481cbe708.webp?v=1714722717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123ea42076f1dd3012c671eed105e92d34d1c63f_f80f7783-5547-4b7c-8edd-f6a4b81dd86d.webp?v=1714722720"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510ddd429b3e4bafe77230cc7eb202b32040aaa2_e728e8d7-f62b-4e77-8006-29d1cc44fe23.webp?v=1714722697","options":["color"],"media":[{"alt":null,"id":23877517574243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510ddd429b3e4bafe77230cc7eb202b32040aaa2_e728e8d7-f62b-4e77-8006-29d1cc44fe23.webp?v=1714722697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510ddd429b3e4bafe77230cc7eb202b32040aaa2_e728e8d7-f62b-4e77-8006-29d1cc44fe23.webp?v=1714722697","width":2000},{"alt":null,"id":23877518032995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c29dbe4f45f9ba2b9a16f19eb3d54d5f8fd812_b11ffbb8-97f6-4da9-8d2d-e06e921d4d4b.webp?v=1714722700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c29dbe4f45f9ba2b9a16f19eb3d54d5f8fd812_b11ffbb8-97f6-4da9-8d2d-e06e921d4d4b.webp?v=1714722700","width":2000},{"alt":null,"id":23877518688355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703","width":2000},{"alt":null,"id":23877519147107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467d4db03770ecb533494a84321493fb55fa3cc2_10a30845-1181-417a-9226-83fc0ec02a66.webp?v=1714722705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/467d4db03770ecb533494a84321493fb55fa3cc2_10a30845-1181-417a-9226-83fc0ec02a66.webp?v=1714722705","width":2000},{"alt":null,"id":23877519704163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1268e973f0f4b0828a82c60e36205cfc43daa8_8ae13d3b-060e-47e1-9af2-bd1c1f41af9b.webp?v=1714722708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1268e973f0f4b0828a82c60e36205cfc43daa8_8ae13d3b-060e-47e1-9af2-bd1c1f41af9b.webp?v=1714722708","width":2000},{"alt":null,"id":23877520064611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7616eb4a4f96ea2c67f871b4df2b0eb135446_da9a534f-1710-4775-b2cb-1b5b5ccf4535.webp?v=1714722711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7616eb4a4f96ea2c67f871b4df2b0eb135446_da9a534f-1710-4775-b2cb-1b5b5ccf4535.webp?v=1714722711","width":2000},{"alt":null,"id":23877520588899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4eae4171cd9b081eb4173ae83f98fef499562b0_e0c0c0d1-0e7e-4fec-a2be-7edee9a82269.webp?v=1714722713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4eae4171cd9b081eb4173ae83f98fef499562b0_e0c0c0d1-0e7e-4fec-a2be-7edee9a82269.webp?v=1714722713","width":2000},{"alt":null,"id":23877520851043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2563d5a894f0ddb05ed6b83299a0f88104e1e50_df5a59fd-431c-4275-908b-4f6751b84316.webp?v=1714722715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2563d5a894f0ddb05ed6b83299a0f88104e1e50_df5a59fd-431c-4275-908b-4f6751b84316.webp?v=1714722715","width":2000},{"alt":null,"id":23877521440867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928eb98fb015390c7a7410b6f81dec437e7ee42_1963d071-663b-479f-bc6c-177481cbe708.webp?v=1714722717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2928eb98fb015390c7a7410b6f81dec437e7ee42_1963d071-663b-479f-bc6c-177481cbe708.webp?v=1714722717","width":2000},{"alt":null,"id":23877521670243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123ea42076f1dd3012c671eed105e92d34d1c63f_f80f7783-5547-4b7c-8edd-f6a4b81dd86d.webp?v=1714722720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123ea42076f1dd3012c671eed105e92d34d1c63f_f80f7783-5547-4b7c-8edd-f6a4b81dd86d.webp?v=1714722720","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886924079203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31472601104483,"product_id":7408563847267,"position":3,"created_at":"2024-05-03T15:51:43+08:00","updated_at":"2024-05-03T15:51:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703","variant_ids":[41886924079203]},"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-PB70","featured_media":{"alt":null,"id":23877518688355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886924079203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31472601104483,"product_id":7408563847267,"position":3,"created_at":"2024-05-03T15:51:43+08:00","updated_at":"2024-05-03T15:51:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703","variant_ids":[41886924079203]},"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-PB70","featured_media":{"alt":null,"id":23877518688355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b182a00c1ea9bb0d1014355e4dc1d2fa600a11b_1531f8e5-db7e-4f84-9b9a-aa462a35a874.webp?v=1714722703"}},"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: "停產" }