$product = {"id":7411039502435,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-15-plus-mod-nx-magsafe-printable-fz05","description":null,"published_at":"2024-06-11T17:34:42+08:00","created_at":"2024-05-04T22:31:33+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":41894366249059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479357997155,"product_id":7411039502435,"position":9,"created_at":"2024-05-04T22:31:53+08:00","updated_at":"2024-05-04T22:31:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113","variant_ids":[41894366249059]},"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-FZ05","featured_media":{"alt":null,"id":23884605390947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894366380131,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479354589283,"product_id":7411039502435,"position":3,"created_at":"2024-05-04T22:31:40+08:00","updated_at":"2024-05-04T22:31:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100","variant_ids":[41894366380131]},"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-FZ05","featured_media":{"alt":null,"id":23884601852003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b86ac2d32f5d97258c680289b092955e48f988_c959f84a-b444-4d74-8578-c93f8ef7e00d.webp?v=1714833095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129543a15805b7143d866ff712565af8c01e9379_d082751b-8c25-4be8-9f34-d401357ea95d.webp?v=1714833098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39bce74416146c15cda7dcb59c719c9c27029aae_b4246ca3-8f92-41c7-ac95-c9d5174d27e2.webp?v=1714833102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89b607c07021b2f5d7f1a3eee7a82d7d4521afb_87c03f35-5d3b-49bb-bd2b-c2e5e4bd9c1e.webp?v=1714833104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae8721a8b6a05cf880ecccdc8c1e9242b55b51f_819c848b-e846-4506-85f3-86b180e100c9.webp?v=1714833107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd20d50bb59623084039dba9a63d446de700af25_7c1c38f9-ddca-4523-91ea-a9dfcbce9e4b.webp?v=1714833109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0863d34a21cfc46ffc116c17a70620b92f7c47f5_22930ff1-1121-448b-bf7e-1abffae0e9bb.webp?v=1714833111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1f59a4230869e7c3d116bbb6f1aa791972d042_27d9eafc-dde4-4073-bd40-3eae4e268408.webp?v=1714833115"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b86ac2d32f5d97258c680289b092955e48f988_c959f84a-b444-4d74-8578-c93f8ef7e00d.webp?v=1714833095","options":["color"],"media":[{"alt":null,"id":23884600606819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b86ac2d32f5d97258c680289b092955e48f988_c959f84a-b444-4d74-8578-c93f8ef7e00d.webp?v=1714833095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b86ac2d32f5d97258c680289b092955e48f988_c959f84a-b444-4d74-8578-c93f8ef7e00d.webp?v=1714833095","width":2000},{"alt":null,"id":23884601098339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129543a15805b7143d866ff712565af8c01e9379_d082751b-8c25-4be8-9f34-d401357ea95d.webp?v=1714833098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129543a15805b7143d866ff712565af8c01e9379_d082751b-8c25-4be8-9f34-d401357ea95d.webp?v=1714833098","width":2000},{"alt":null,"id":23884601852003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100","width":2000},{"alt":null,"id":23884602310755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39bce74416146c15cda7dcb59c719c9c27029aae_b4246ca3-8f92-41c7-ac95-c9d5174d27e2.webp?v=1714833102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39bce74416146c15cda7dcb59c719c9c27029aae_b4246ca3-8f92-41c7-ac95-c9d5174d27e2.webp?v=1714833102","width":2000},{"alt":null,"id":23884602835043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89b607c07021b2f5d7f1a3eee7a82d7d4521afb_87c03f35-5d3b-49bb-bd2b-c2e5e4bd9c1e.webp?v=1714833104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89b607c07021b2f5d7f1a3eee7a82d7d4521afb_87c03f35-5d3b-49bb-bd2b-c2e5e4bd9c1e.webp?v=1714833104","width":2000},{"alt":null,"id":23884603293795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae8721a8b6a05cf880ecccdc8c1e9242b55b51f_819c848b-e846-4506-85f3-86b180e100c9.webp?v=1714833107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae8721a8b6a05cf880ecccdc8c1e9242b55b51f_819c848b-e846-4506-85f3-86b180e100c9.webp?v=1714833107","width":2000},{"alt":null,"id":23884603785315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd20d50bb59623084039dba9a63d446de700af25_7c1c38f9-ddca-4523-91ea-a9dfcbce9e4b.webp?v=1714833109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd20d50bb59623084039dba9a63d446de700af25_7c1c38f9-ddca-4523-91ea-a9dfcbce9e4b.webp?v=1714833109","width":2000},{"alt":null,"id":23884604801123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0863d34a21cfc46ffc116c17a70620b92f7c47f5_22930ff1-1121-448b-bf7e-1abffae0e9bb.webp?v=1714833111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0863d34a21cfc46ffc116c17a70620b92f7c47f5_22930ff1-1121-448b-bf7e-1abffae0e9bb.webp?v=1714833111","width":2000},{"alt":null,"id":23884605390947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113","width":2000},{"alt":null,"id":23884605948003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1f59a4230869e7c3d116bbb6f1aa791972d042_27d9eafc-dde4-4073-bd40-3eae4e268408.webp?v=1714833115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1f59a4230869e7c3d116bbb6f1aa791972d042_27d9eafc-dde4-4073-bd40-3eae4e268408.webp?v=1714833115","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894366249059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479357997155,"product_id":7411039502435,"position":9,"created_at":"2024-05-04T22:31:53+08:00","updated_at":"2024-05-04T22:31:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113","variant_ids":[41894366249059]},"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-FZ05","featured_media":{"alt":null,"id":23884605390947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894366380131,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479354589283,"product_id":7411039502435,"position":3,"created_at":"2024-05-04T22:31:40+08:00","updated_at":"2024-05-04T22:31:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100","variant_ids":[41894366380131]},"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-FZ05","featured_media":{"alt":null,"id":23884601852003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c94c63bd462f0d21e873caa0f13eb31f70bc13_57070d3e-e8d5-438f-981a-badbe07dac9f.webp?v=1714833100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894366249059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479357997155,"product_id":7411039502435,"position":9,"created_at":"2024-05-04T22:31:53+08:00","updated_at":"2024-05-04T22:31:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113","variant_ids":[41894366249059]},"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-FZ05","featured_media":{"alt":null,"id":23884605390947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a4a2ca3e7660fcc102ddc578da6ce7c87025b2_ac92efc6-6deb-488c-8e5f-db54083dfc42.webp?v=1714833113"}},"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: "停產" }