$product = {"id":7408405971043,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 超級可愛大王","handle":"iphone-12-pro-max-mod-nx-printable-eo01","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專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41885124001891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472180887651,"product_id":7408405971043,"position":1,"created_at":"2024-05-03T15:20:21+08:00","updated_at":"2024-05-03T15:20:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","variant_ids":[41885124001891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - 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":"NPB0118724-EO01","featured_media":{"alt":null,"id":23877096505443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787935e2bf6ed4b776bb540e482b27763eef1a0d_c3bccd6b-8a8c-43d7-b96e-680060ce6bea.webp?v=1714720823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9510f6a8407c1e18a6ab7a42d6c67ab2e5c7c615_27b82089-a062-4830-a154-2a2410db9c54.webp?v=1714720826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac756b7c322e1b76bebf65db8ea8b40bf95f224e_c65f4f2a-aceb-4dca-a7f9-4563d3fbdf1e.webp?v=1714720828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a37ade7aa357d3cac20f18cb99c2c6e58a7f01_d451765c-cf28-4372-8d2e-19ce4c1f4a8c.webp?v=1714720831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef70a88de01616b5415b3ab5d57a69a6423cd365_7954495a-382f-400e-8d1d-8565ea0e733d.webp?v=1714720834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e702970557abb2e09cf2753792e37828e5a83c83_827bd174-d4fa-4d9e-8a9d-7a0f2b7e2711.webp?v=1714720836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf4994955ab5a536fb35afb0124bee06803e67b0_6c3add47-5771-4313-a1ba-f5528ffe11ae.webp?v=1714720839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5afd7f305440ccd4e2ae966ee39c42372013eb8_72edc363-34c1-42aa-85eb-fd1ea462f024.webp?v=1714720842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5530d59a54a45afad320eb98a0b2ad329b6f478c_6697f832-9bc3-46f1-94dc-71ef58e43f65.webp?v=1714720844"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","options":["color"],"media":[{"alt":null,"id":23877096505443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","width":2000},{"alt":null,"id":23877097324643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787935e2bf6ed4b776bb540e482b27763eef1a0d_c3bccd6b-8a8c-43d7-b96e-680060ce6bea.webp?v=1714720823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787935e2bf6ed4b776bb540e482b27763eef1a0d_c3bccd6b-8a8c-43d7-b96e-680060ce6bea.webp?v=1714720823","width":2000},{"alt":null,"id":23877097816163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9510f6a8407c1e18a6ab7a42d6c67ab2e5c7c615_27b82089-a062-4830-a154-2a2410db9c54.webp?v=1714720826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9510f6a8407c1e18a6ab7a42d6c67ab2e5c7c615_27b82089-a062-4830-a154-2a2410db9c54.webp?v=1714720826","width":2000},{"alt":null,"id":23877098504291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac756b7c322e1b76bebf65db8ea8b40bf95f224e_c65f4f2a-aceb-4dca-a7f9-4563d3fbdf1e.webp?v=1714720828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac756b7c322e1b76bebf65db8ea8b40bf95f224e_c65f4f2a-aceb-4dca-a7f9-4563d3fbdf1e.webp?v=1714720828","width":2000},{"alt":null,"id":23877099126883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a37ade7aa357d3cac20f18cb99c2c6e58a7f01_d451765c-cf28-4372-8d2e-19ce4c1f4a8c.webp?v=1714720831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a37ade7aa357d3cac20f18cb99c2c6e58a7f01_d451765c-cf28-4372-8d2e-19ce4c1f4a8c.webp?v=1714720831","width":2000},{"alt":null,"id":23877100306531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef70a88de01616b5415b3ab5d57a69a6423cd365_7954495a-382f-400e-8d1d-8565ea0e733d.webp?v=1714720834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef70a88de01616b5415b3ab5d57a69a6423cd365_7954495a-382f-400e-8d1d-8565ea0e733d.webp?v=1714720834","width":2000},{"alt":null,"id":23877101355107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e702970557abb2e09cf2753792e37828e5a83c83_827bd174-d4fa-4d9e-8a9d-7a0f2b7e2711.webp?v=1714720836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e702970557abb2e09cf2753792e37828e5a83c83_827bd174-d4fa-4d9e-8a9d-7a0f2b7e2711.webp?v=1714720836","width":2000},{"alt":null,"id":23877102272611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf4994955ab5a536fb35afb0124bee06803e67b0_6c3add47-5771-4313-a1ba-f5528ffe11ae.webp?v=1714720839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf4994955ab5a536fb35afb0124bee06803e67b0_6c3add47-5771-4313-a1ba-f5528ffe11ae.webp?v=1714720839","width":2000},{"alt":null,"id":23877103059043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5afd7f305440ccd4e2ae966ee39c42372013eb8_72edc363-34c1-42aa-85eb-fd1ea462f024.webp?v=1714720842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5afd7f305440ccd4e2ae966ee39c42372013eb8_72edc363-34c1-42aa-85eb-fd1ea462f024.webp?v=1714720842","width":2000},{"alt":null,"id":23877103648867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5530d59a54a45afad320eb98a0b2ad329b6f478c_6697f832-9bc3-46f1-94dc-71ef58e43f65.webp?v=1714720844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5530d59a54a45afad320eb98a0b2ad329b6f478c_6697f832-9bc3-46f1-94dc-71ef58e43f65.webp?v=1714720844","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885124001891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472180887651,"product_id":7408405971043,"position":1,"created_at":"2024-05-03T15:20:21+08:00","updated_at":"2024-05-03T15:20:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","variant_ids":[41885124001891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - 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":"NPB0118724-EO01","featured_media":{"alt":null,"id":23877096505443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885124001891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472180887651,"product_id":7408405971043,"position":1,"created_at":"2024-05-03T15:20:21+08:00","updated_at":"2024-05-03T15:20:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821","variant_ids":[41885124001891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - 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":"NPB0118724-EO01","featured_media":{"alt":null,"id":23877096505443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9705e0ab02cc222eef0ad07b1bf9780de8811f9d_bdab076e-d838-4a98-afab-7c3cb190c4a7.webp?v=1714720821"}},"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: "停產" }