$product = {"id":7407458254947,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-15-plus-mod-nx-printable-pb82","description":null,"published_at":"2024-06-11T16:16:33+08:00","created_at":"2024-05-03T09:52:58+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":41875354976355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634945123,"product_id":7407458254947,"position":4,"created_at":"2024-05-03T09:53:08+08:00","updated_at":"2024-05-03T09:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188","variant_ids":[41875354976355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23874536702051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875355107427,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634453603,"product_id":7407458254947,"position":3,"created_at":"2024-05-03T09:53:06+08:00","updated_at":"2024-05-03T09:53:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186","variant_ids":[41875355107427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23874535686243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68f5788644cd7a2e962cf9b3268e573d3a844068_f39b32eb-4f27-412c-956a-4ea39b4529cc.webp?v=1714701181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df125a1b5a0c663628795e58522d58638b0d96db_eac243db-d0a5-459a-939a-0d42eae9eca9.webp?v=1714701183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc1e70635059a6e648c3001d4dc19e4232fc9e_67cc57b1-96dc-447a-a98a-9dae1614ac78.webp?v=1714701191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55c32ae672e82e9b6e828cab0eaee549f3a3ca12_c6e70dc8-eff7-49b5-99e0-671868dc5448.webp?v=1714701195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0584f67b99101d388c3f17a89f794ed5d059e923_700ae27e-bca9-4cc2-b77e-262e2a6b76ef.webp?v=1714701197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e612efd5102421baa9c1fa866bb790ae70061e6f_8e86f012-77b9-4d90-b6e5-23f97c377c41.webp?v=1714701200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf6571d765e77bc322829b7a9010607fc2f2a1e_be5edebc-b566-44d5-af1e-738800f04524.webp?v=1714701202"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68f5788644cd7a2e962cf9b3268e573d3a844068_f39b32eb-4f27-412c-956a-4ea39b4529cc.webp?v=1714701181","options":["color"],"media":[{"alt":null,"id":23874534178915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68f5788644cd7a2e962cf9b3268e573d3a844068_f39b32eb-4f27-412c-956a-4ea39b4529cc.webp?v=1714701181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68f5788644cd7a2e962cf9b3268e573d3a844068_f39b32eb-4f27-412c-956a-4ea39b4529cc.webp?v=1714701181","width":2000},{"alt":null,"id":23874535096419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df125a1b5a0c663628795e58522d58638b0d96db_eac243db-d0a5-459a-939a-0d42eae9eca9.webp?v=1714701183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df125a1b5a0c663628795e58522d58638b0d96db_eac243db-d0a5-459a-939a-0d42eae9eca9.webp?v=1714701183","width":2000},{"alt":null,"id":23874535686243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186","width":2000},{"alt":null,"id":23874536702051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188","width":2000},{"alt":null,"id":23874537554019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc1e70635059a6e648c3001d4dc19e4232fc9e_67cc57b1-96dc-447a-a98a-9dae1614ac78.webp?v=1714701191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc1e70635059a6e648c3001d4dc19e4232fc9e_67cc57b1-96dc-447a-a98a-9dae1614ac78.webp?v=1714701191","width":2000},{"alt":null,"id":23874539356259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55c32ae672e82e9b6e828cab0eaee549f3a3ca12_c6e70dc8-eff7-49b5-99e0-671868dc5448.webp?v=1714701195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55c32ae672e82e9b6e828cab0eaee549f3a3ca12_c6e70dc8-eff7-49b5-99e0-671868dc5448.webp?v=1714701195","width":2000},{"alt":null,"id":23874539880547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0584f67b99101d388c3f17a89f794ed5d059e923_700ae27e-bca9-4cc2-b77e-262e2a6b76ef.webp?v=1714701197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0584f67b99101d388c3f17a89f794ed5d059e923_700ae27e-bca9-4cc2-b77e-262e2a6b76ef.webp?v=1714701197","width":2000},{"alt":null,"id":23874540437603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e612efd5102421baa9c1fa866bb790ae70061e6f_8e86f012-77b9-4d90-b6e5-23f97c377c41.webp?v=1714701200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e612efd5102421baa9c1fa866bb790ae70061e6f_8e86f012-77b9-4d90-b6e5-23f97c377c41.webp?v=1714701200","width":2000},{"alt":null,"id":23874541256803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf6571d765e77bc322829b7a9010607fc2f2a1e_be5edebc-b566-44d5-af1e-738800f04524.webp?v=1714701202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf6571d765e77bc322829b7a9010607fc2f2a1e_be5edebc-b566-44d5-af1e-738800f04524.webp?v=1714701202","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41875354976355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634945123,"product_id":7407458254947,"position":4,"created_at":"2024-05-03T09:53:08+08:00","updated_at":"2024-05-03T09:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188","variant_ids":[41875354976355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23874536702051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875355107427,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634453603,"product_id":7407458254947,"position":3,"created_at":"2024-05-03T09:53:06+08:00","updated_at":"2024-05-03T09:53:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186","variant_ids":[41875355107427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23874535686243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e925ba739d1e0d2a968e3200a37ce05e993786b_4c2e1bdf-45ff-40e4-8352-723e41169959.webp?v=1714701186"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41875354976355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634945123,"product_id":7407458254947,"position":4,"created_at":"2024-05-03T09:53:08+08:00","updated_at":"2024-05-03T09:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188","variant_ids":[41875354976355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23874536702051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cf81bff0b119f0d26adc6e60c1466c2086592c_fb11c47a-68eb-46f1-aa43-840d325fec65.webp?v=1714701188"}},"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: "停產" }