$product = {"id":7411090423907,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-15-plus-mod-nx-magsafe-printable-fz04","description":null,"published_at":"2024-06-11T17:36:02+08:00","created_at":"2024-05-04T22:41:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41894872776803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479484416099,"product_id":7411090423907,"position":2,"created_at":"2024-05-04T22:41:04+08:00","updated_at":"2024-05-04T22:41:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664","variant_ids":[41894872776803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-FZ04","featured_media":{"alt":null,"id":23884732006499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894872907875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479485399139,"product_id":7411090423907,"position":4,"created_at":"2024-05-04T22:41:09+08:00","updated_at":"2024-05-04T22:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669","variant_ids":[41894872907875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-FZ04","featured_media":{"alt":null,"id":23884732924003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728250c60ecfbc70d7c8fb0dd8c9230bfbb41572_a78497f0-f88d-4835-bd1d-8b25b5b2d8a3.webp?v=1714833662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d840f2353b1c46a696085e5d369c2efd094d64b_1c0b09a4-3ce1-4df6-8bb4-b0a20000600b.webp?v=1714833667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56641e472c25e457c4d03db26aef27cdec348962_625650bb-01d9-4ada-9c92-9e264751754a.webp?v=1714833671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490b5142079079c3928d9320cd6d362c271b3df9_63814b7a-4576-4e01-849e-cc6574bf956f.webp?v=1714833673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6ee660b7b4f26c24b28335b9452d26b6d6a5bf_a5b54486-abf7-4a2f-a9a0-c742afdc3b58.webp?v=1714833676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c19bcf5017c9a0a1b1d279b13842139794df94_672e4584-152b-4778-b27f-c78e2ea5f67a.webp?v=1714833678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e145e87809331643e79c5fcff5f67054ca73e6f_a60641f8-92dc-430d-8dbc-27a44155889d.webp?v=1714833680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8d5b0ea747d57ba82911874b3c06216fa1ed8a_b03bd994-e37a-483a-98a9-d49517463ac3.webp?v=1714833682"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728250c60ecfbc70d7c8fb0dd8c9230bfbb41572_a78497f0-f88d-4835-bd1d-8b25b5b2d8a3.webp?v=1714833662","options":["color"],"media":[{"alt":null,"id":23884731514979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728250c60ecfbc70d7c8fb0dd8c9230bfbb41572_a78497f0-f88d-4835-bd1d-8b25b5b2d8a3.webp?v=1714833662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728250c60ecfbc70d7c8fb0dd8c9230bfbb41572_a78497f0-f88d-4835-bd1d-8b25b5b2d8a3.webp?v=1714833662","width":2000},{"alt":null,"id":23884732006499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664","width":2000},{"alt":null,"id":23884732465251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d840f2353b1c46a696085e5d369c2efd094d64b_1c0b09a4-3ce1-4df6-8bb4-b0a20000600b.webp?v=1714833667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d840f2353b1c46a696085e5d369c2efd094d64b_1c0b09a4-3ce1-4df6-8bb4-b0a20000600b.webp?v=1714833667","width":2000},{"alt":null,"id":23884732924003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669","width":2000},{"alt":null,"id":23884733546595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56641e472c25e457c4d03db26aef27cdec348962_625650bb-01d9-4ada-9c92-9e264751754a.webp?v=1714833671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56641e472c25e457c4d03db26aef27cdec348962_625650bb-01d9-4ada-9c92-9e264751754a.webp?v=1714833671","width":2000},{"alt":null,"id":23884734005347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490b5142079079c3928d9320cd6d362c271b3df9_63814b7a-4576-4e01-849e-cc6574bf956f.webp?v=1714833673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490b5142079079c3928d9320cd6d362c271b3df9_63814b7a-4576-4e01-849e-cc6574bf956f.webp?v=1714833673","width":2000},{"alt":null,"id":23884734464099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6ee660b7b4f26c24b28335b9452d26b6d6a5bf_a5b54486-abf7-4a2f-a9a0-c742afdc3b58.webp?v=1714833676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6ee660b7b4f26c24b28335b9452d26b6d6a5bf_a5b54486-abf7-4a2f-a9a0-c742afdc3b58.webp?v=1714833676","width":2000},{"alt":null,"id":23884735021155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c19bcf5017c9a0a1b1d279b13842139794df94_672e4584-152b-4778-b27f-c78e2ea5f67a.webp?v=1714833678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c19bcf5017c9a0a1b1d279b13842139794df94_672e4584-152b-4778-b27f-c78e2ea5f67a.webp?v=1714833678","width":2000},{"alt":null,"id":23884735479907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e145e87809331643e79c5fcff5f67054ca73e6f_a60641f8-92dc-430d-8dbc-27a44155889d.webp?v=1714833680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e145e87809331643e79c5fcff5f67054ca73e6f_a60641f8-92dc-430d-8dbc-27a44155889d.webp?v=1714833680","width":2000},{"alt":null,"id":23884736200803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8d5b0ea747d57ba82911874b3c06216fa1ed8a_b03bd994-e37a-483a-98a9-d49517463ac3.webp?v=1714833682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8d5b0ea747d57ba82911874b3c06216fa1ed8a_b03bd994-e37a-483a-98a9-d49517463ac3.webp?v=1714833682","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41894872776803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479484416099,"product_id":7411090423907,"position":2,"created_at":"2024-05-04T22:41:04+08:00","updated_at":"2024-05-04T22:41:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664","variant_ids":[41894872776803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-FZ04","featured_media":{"alt":null,"id":23884732006499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894872907875,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479485399139,"product_id":7411090423907,"position":4,"created_at":"2024-05-04T22:41:09+08:00","updated_at":"2024-05-04T22:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669","variant_ids":[41894872907875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-FZ04","featured_media":{"alt":null,"id":23884732924003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209d69d6750938f6be89cd8157c76db0894a7819_9cc1275b-38b1-4664-be48-99f8d9702aee.webp?v=1714833669"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894872776803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479484416099,"product_id":7411090423907,"position":2,"created_at":"2024-05-04T22:41:04+08:00","updated_at":"2024-05-04T22:41:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664","variant_ids":[41894872776803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-FZ04","featured_media":{"alt":null,"id":23884732006499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6bf5babd10e03e72f523c7565b9fc3045ee4f63_98e4fdc5-8eeb-4775-97c2-455a9ea6ab85.webp?v=1714833664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }