$product = {"id":7407538602083,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-15-plus-mod-nx-printable-pb109","description":null,"published_at":"2024-06-11T16:18:37+08:00","created_at":"2024-05-03T10:06:51+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 15 Plus","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":41876096712803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31469843120227,"product_id":7407538602083,"position":8,"created_at":"2024-05-03T10:07:10+08:00","updated_at":"2024-05-03T10:07:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030","variant_ids":[41876096712803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0129624-PB109","featured_media":{"alt":null,"id":23874744713315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876096843875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31469843906659,"product_id":7407538602083,"position":9,"created_at":"2024-05-03T10:07:13+08:00","updated_at":"2024-05-03T10:07:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033","variant_ids":[41876096843875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0129657-PB109","featured_media":{"alt":null,"id":23874745434211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35db5f8c8fa2fbc56405641348e7c9a40ecddbc7_7a34a940-be44-49b0-bbdd-0c2f5f698d77.webp?v=1714702013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d45a215712032827bfe5666119c8d1627eae7b9_59a549e4-f7ba-4a51-9337-941e46d8ff65.webp?v=1714702016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de13f2719589371b5657d40846241df25be0ca2d_baaf8377-6399-4b8b-876c-1cff327359d2.webp?v=1714702018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e254fa88a0a614d9f1fd7e274d89da718be131a4_b22265e4-797f-41e3-88a9-5b72daf3b0fc.webp?v=1714702021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7728f99bb76b3a648d784fb924bf0fb64e8d6c_ae151b6a-4ad2-47fa-bb2d-1e5ece439ce9.webp?v=1714702023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db748742c5e283e99de5fd4ad8aa2b742cd271f_467f63c1-0733-49b0-be17-6c9dda13d751.webp?v=1714702026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730e6a66d34a42a64e0ec07c653605a4513c24c8_94bc9bb7-0244-41c5-908a-6b6b1b2493c3.webp?v=1714702028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e43b01d38d04252fffdd14f9ced2ecbbac0786_f45550a5-82a2-4868-a71a-d94de3cf5308.webp?v=1714702035"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35db5f8c8fa2fbc56405641348e7c9a40ecddbc7_7a34a940-be44-49b0-bbdd-0c2f5f698d77.webp?v=1714702013","options":["color"],"media":[{"alt":null,"id":23874740748387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35db5f8c8fa2fbc56405641348e7c9a40ecddbc7_7a34a940-be44-49b0-bbdd-0c2f5f698d77.webp?v=1714702013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35db5f8c8fa2fbc56405641348e7c9a40ecddbc7_7a34a940-be44-49b0-bbdd-0c2f5f698d77.webp?v=1714702013","width":2000},{"alt":null,"id":23874741207139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d45a215712032827bfe5666119c8d1627eae7b9_59a549e4-f7ba-4a51-9337-941e46d8ff65.webp?v=1714702016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d45a215712032827bfe5666119c8d1627eae7b9_59a549e4-f7ba-4a51-9337-941e46d8ff65.webp?v=1714702016","width":2000},{"alt":null,"id":23874741731427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de13f2719589371b5657d40846241df25be0ca2d_baaf8377-6399-4b8b-876c-1cff327359d2.webp?v=1714702018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de13f2719589371b5657d40846241df25be0ca2d_baaf8377-6399-4b8b-876c-1cff327359d2.webp?v=1714702018","width":2000},{"alt":null,"id":23874742255715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e254fa88a0a614d9f1fd7e274d89da718be131a4_b22265e4-797f-41e3-88a9-5b72daf3b0fc.webp?v=1714702021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e254fa88a0a614d9f1fd7e274d89da718be131a4_b22265e4-797f-41e3-88a9-5b72daf3b0fc.webp?v=1714702021","width":2000},{"alt":null,"id":23874742714467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7728f99bb76b3a648d784fb924bf0fb64e8d6c_ae151b6a-4ad2-47fa-bb2d-1e5ece439ce9.webp?v=1714702023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7728f99bb76b3a648d784fb924bf0fb64e8d6c_ae151b6a-4ad2-47fa-bb2d-1e5ece439ce9.webp?v=1714702023","width":2000},{"alt":null,"id":23874743500899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db748742c5e283e99de5fd4ad8aa2b742cd271f_467f63c1-0733-49b0-be17-6c9dda13d751.webp?v=1714702026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db748742c5e283e99de5fd4ad8aa2b742cd271f_467f63c1-0733-49b0-be17-6c9dda13d751.webp?v=1714702026","width":2000},{"alt":null,"id":23874744025187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730e6a66d34a42a64e0ec07c653605a4513c24c8_94bc9bb7-0244-41c5-908a-6b6b1b2493c3.webp?v=1714702028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730e6a66d34a42a64e0ec07c653605a4513c24c8_94bc9bb7-0244-41c5-908a-6b6b1b2493c3.webp?v=1714702028","width":2000},{"alt":null,"id":23874744713315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030","width":2000},{"alt":null,"id":23874745434211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033","width":2000},{"alt":null,"id":23874745827427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e43b01d38d04252fffdd14f9ced2ecbbac0786_f45550a5-82a2-4868-a71a-d94de3cf5308.webp?v=1714702035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e43b01d38d04252fffdd14f9ced2ecbbac0786_f45550a5-82a2-4868-a71a-d94de3cf5308.webp?v=1714702035","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876096712803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31469843120227,"product_id":7407538602083,"position":8,"created_at":"2024-05-03T10:07:10+08:00","updated_at":"2024-05-03T10:07:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030","variant_ids":[41876096712803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0129624-PB109","featured_media":{"alt":null,"id":23874744713315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876096843875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31469843906659,"product_id":7407538602083,"position":9,"created_at":"2024-05-03T10:07:13+08:00","updated_at":"2024-05-03T10:07:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033","variant_ids":[41876096843875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0129657-PB109","featured_media":{"alt":null,"id":23874745434211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdf021ebaf021d378f3eee3737b3ac153da7d7_c16bc425-b14d-454d-a84a-5b4821b2a6f2.webp?v=1714702033"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876096712803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31469843120227,"product_id":7407538602083,"position":8,"created_at":"2024-05-03T10:07:10+08:00","updated_at":"2024-05-03T10:07:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030","variant_ids":[41876096712803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0129624-PB109","featured_media":{"alt":null,"id":23874744713315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a31d87529c4a2dc2a241e9eb7b77ecec0753b7_21cb4a76-db21-4350-9aba-9faf187f2e73.webp?v=1714702030"}},"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: "停產" }