$product = {"id":7407582085219,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-15-plus-mod-nx-printable-pc11","description":null,"published_at":"2024-06-11T16:19:44+08:00","created_at":"2024-05-03T10:14:33+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":41876496449635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31469954695267,"product_id":7407582085219,"position":4,"created_at":"2024-05-03T10:14:43+08:00","updated_at":"2024-05-03T10:14:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483","variant_ids":[41876496449635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC11","featured_media":{"alt":null,"id":23874856517731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876496580707,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31469954138211,"product_id":7407582085219,"position":3,"created_at":"2024-05-03T10:14:40+08:00","updated_at":"2024-05-03T10:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480","variant_ids":[41876496580707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC11","featured_media":{"alt":null,"id":23874855895139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd235ebf17ef6d6b6c448164eb8832c24aaeea79_66010486-a77f-4b73-95a4-e8fead915560.webp?v=1714702475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a18f42ef67dea88f28016102e846c3d16465f7a_5f6056f5-f368-4538-a5d0-3b0718bdc436.webp?v=1714702478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9256e87a39b8a1e1493c148d71cff4b061a2249_d1a2638b-5bc5-448e-906e-fd901696cf5b.webp?v=1714702485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/195be9bfd80c9f0bac63121274cde9734c4a66b4_e8f655ba-da76-4035-9d45-dd75d5b9b1ca.webp?v=1714702487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ee41666c778e86b6a76ba1e97c2ed0326f7cd0_4e2345ce-e2e8-4f2e-9e7e-dcd28577c3d6.webp?v=1714702490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3c78f34415d681a60a79034208ac767f7023a_680b70b2-d2ab-4277-9ebc-917530ce3cbb.webp?v=1714702492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056c8c9aac81811e76bc3c84a9f8fdda263b6101_a7f673b5-cdea-4811-bb48-6a59ba38cbad.webp?v=1714702494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d693ebe33eb203909c95db4b083c33f74cedf6d_5754e71a-22e3-4128-ba94-58c1845d74e6.webp?v=1714702497"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd235ebf17ef6d6b6c448164eb8832c24aaeea79_66010486-a77f-4b73-95a4-e8fead915560.webp?v=1714702475","options":["color"],"media":[{"alt":null,"id":23874854781027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd235ebf17ef6d6b6c448164eb8832c24aaeea79_66010486-a77f-4b73-95a4-e8fead915560.webp?v=1714702475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd235ebf17ef6d6b6c448164eb8832c24aaeea79_66010486-a77f-4b73-95a4-e8fead915560.webp?v=1714702475","width":2000},{"alt":null,"id":23874855567459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a18f42ef67dea88f28016102e846c3d16465f7a_5f6056f5-f368-4538-a5d0-3b0718bdc436.webp?v=1714702478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a18f42ef67dea88f28016102e846c3d16465f7a_5f6056f5-f368-4538-a5d0-3b0718bdc436.webp?v=1714702478","width":2000},{"alt":null,"id":23874855895139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480","width":2000},{"alt":null,"id":23874856517731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483","width":2000},{"alt":null,"id":23874856779875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9256e87a39b8a1e1493c148d71cff4b061a2249_d1a2638b-5bc5-448e-906e-fd901696cf5b.webp?v=1714702485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9256e87a39b8a1e1493c148d71cff4b061a2249_d1a2638b-5bc5-448e-906e-fd901696cf5b.webp?v=1714702485","width":2000},{"alt":null,"id":23874857631843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/195be9bfd80c9f0bac63121274cde9734c4a66b4_e8f655ba-da76-4035-9d45-dd75d5b9b1ca.webp?v=1714702487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/195be9bfd80c9f0bac63121274cde9734c4a66b4_e8f655ba-da76-4035-9d45-dd75d5b9b1ca.webp?v=1714702487","width":2000},{"alt":null,"id":23874858123363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ee41666c778e86b6a76ba1e97c2ed0326f7cd0_4e2345ce-e2e8-4f2e-9e7e-dcd28577c3d6.webp?v=1714702490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ee41666c778e86b6a76ba1e97c2ed0326f7cd0_4e2345ce-e2e8-4f2e-9e7e-dcd28577c3d6.webp?v=1714702490","width":2000},{"alt":null,"id":23874858614883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3c78f34415d681a60a79034208ac767f7023a_680b70b2-d2ab-4277-9ebc-917530ce3cbb.webp?v=1714702492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3c78f34415d681a60a79034208ac767f7023a_680b70b2-d2ab-4277-9ebc-917530ce3cbb.webp?v=1714702492","width":2000},{"alt":null,"id":23874859270243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056c8c9aac81811e76bc3c84a9f8fdda263b6101_a7f673b5-cdea-4811-bb48-6a59ba38cbad.webp?v=1714702494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056c8c9aac81811e76bc3c84a9f8fdda263b6101_a7f673b5-cdea-4811-bb48-6a59ba38cbad.webp?v=1714702494","width":2000},{"alt":null,"id":23874859565155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d693ebe33eb203909c95db4b083c33f74cedf6d_5754e71a-22e3-4128-ba94-58c1845d74e6.webp?v=1714702497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d693ebe33eb203909c95db4b083c33f74cedf6d_5754e71a-22e3-4128-ba94-58c1845d74e6.webp?v=1714702497","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876496449635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31469954695267,"product_id":7407582085219,"position":4,"created_at":"2024-05-03T10:14:43+08:00","updated_at":"2024-05-03T10:14:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483","variant_ids":[41876496449635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC11","featured_media":{"alt":null,"id":23874856517731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876496580707,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31469954138211,"product_id":7407582085219,"position":3,"created_at":"2024-05-03T10:14:40+08:00","updated_at":"2024-05-03T10:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480","variant_ids":[41876496580707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC11","featured_media":{"alt":null,"id":23874855895139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0a932de30a88906f4569abdf27d1d3755b731c_cdb09b65-84ac-43bf-8751-4edbb6bc8895.webp?v=1714702480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876496449635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31469954695267,"product_id":7407582085219,"position":4,"created_at":"2024-05-03T10:14:43+08:00","updated_at":"2024-05-03T10:14:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483","variant_ids":[41876496449635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC11","featured_media":{"alt":null,"id":23874856517731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10e02e0efeb3f985f5281540b8441b25471ab3cf_82613c64-f15d-4abf-995b-c3fa4cd3c7c4.webp?v=1714702483"}},"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: "停產" }