$product = {"id":7411017154659,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb82","description":null,"published_at":"2024-06-11T17:34:07+08:00","created_at":"2024-05-04T22:27:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41894150897763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31479296196707,"product_id":7411017154659,"position":5,"created_at":"2024-05-04T22:27:38+08:00","updated_at":"2024-05-04T22:27:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858","variant_ids":[41894150897763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB82","featured_media":{"alt":null,"id":23884543393891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894151028835,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31479298818147,"product_id":7411017154659,"position":10,"created_at":"2024-05-04T22:27:50+08:00","updated_at":"2024-05-04T22:27:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870","variant_ids":[41894151028835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-PB82","featured_media":{"alt":null,"id":23884546048099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc68a0f867981757a316783c118d81607c68357f_c6d66c98-3c22-428a-a2be-a3a642ea6dbd.webp?v=1714832849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eed6d5c68024b9a843c1e30939e7323d813fd17_20ebebf1-9b59-4290-bfe6-7ceb296ff6e2.webp?v=1714832851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654526cff72e2fc7238a56f2cff6b5004c8bbe92_84ceb82f-a649-4118-b5fd-51e1615fce27.webp?v=1714832853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945c7ecd3f739030bff42eec50eb037bd7129c4_6fe6451b-1a17-42e1-a744-1af405d69c61.webp?v=1714832856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60084ab80f4b9abfcdf85efe7abeeb601a146100_9af9eda1-2368-47ab-8fbc-0edf074aaafd.webp?v=1714832861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b197912474e9d9d2b23a84f2d5e1820f2ef65e_41ac769c-a8aa-4daa-9f21-152f4afeb1a6.webp?v=1714832863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c71e0e3db3bbd5d55a64ddfe03da4f9885915cc_da7d01aa-f44a-4cd7-847c-308e349b1931.webp?v=1714832865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936a99786c860b95aa3f67dc34d6e0efcc55070_810db319-b681-4219-938f-384ea91f5532.webp?v=1714832868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc68a0f867981757a316783c118d81607c68357f_c6d66c98-3c22-428a-a2be-a3a642ea6dbd.webp?v=1714832849","options":["color"],"media":[{"alt":null,"id":23884541657187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc68a0f867981757a316783c118d81607c68357f_c6d66c98-3c22-428a-a2be-a3a642ea6dbd.webp?v=1714832849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc68a0f867981757a316783c118d81607c68357f_c6d66c98-3c22-428a-a2be-a3a642ea6dbd.webp?v=1714832849","width":2000},{"alt":null,"id":23884541984867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eed6d5c68024b9a843c1e30939e7323d813fd17_20ebebf1-9b59-4290-bfe6-7ceb296ff6e2.webp?v=1714832851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eed6d5c68024b9a843c1e30939e7323d813fd17_20ebebf1-9b59-4290-bfe6-7ceb296ff6e2.webp?v=1714832851","width":2000},{"alt":null,"id":23884542443619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654526cff72e2fc7238a56f2cff6b5004c8bbe92_84ceb82f-a649-4118-b5fd-51e1615fce27.webp?v=1714832853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654526cff72e2fc7238a56f2cff6b5004c8bbe92_84ceb82f-a649-4118-b5fd-51e1615fce27.webp?v=1714832853","width":2000},{"alt":null,"id":23884542902371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945c7ecd3f739030bff42eec50eb037bd7129c4_6fe6451b-1a17-42e1-a744-1af405d69c61.webp?v=1714832856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7945c7ecd3f739030bff42eec50eb037bd7129c4_6fe6451b-1a17-42e1-a744-1af405d69c61.webp?v=1714832856","width":2000},{"alt":null,"id":23884543393891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858","width":2000},{"alt":null,"id":23884543983715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60084ab80f4b9abfcdf85efe7abeeb601a146100_9af9eda1-2368-47ab-8fbc-0edf074aaafd.webp?v=1714832861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60084ab80f4b9abfcdf85efe7abeeb601a146100_9af9eda1-2368-47ab-8fbc-0edf074aaafd.webp?v=1714832861","width":2000},{"alt":null,"id":23884544376931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b197912474e9d9d2b23a84f2d5e1820f2ef65e_41ac769c-a8aa-4daa-9f21-152f4afeb1a6.webp?v=1714832863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b197912474e9d9d2b23a84f2d5e1820f2ef65e_41ac769c-a8aa-4daa-9f21-152f4afeb1a6.webp?v=1714832863","width":2000},{"alt":null,"id":23884544901219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c71e0e3db3bbd5d55a64ddfe03da4f9885915cc_da7d01aa-f44a-4cd7-847c-308e349b1931.webp?v=1714832865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c71e0e3db3bbd5d55a64ddfe03da4f9885915cc_da7d01aa-f44a-4cd7-847c-308e349b1931.webp?v=1714832865","width":2000},{"alt":null,"id":23884545458275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936a99786c860b95aa3f67dc34d6e0efcc55070_810db319-b681-4219-938f-384ea91f5532.webp?v=1714832868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936a99786c860b95aa3f67dc34d6e0efcc55070_810db319-b681-4219-938f-384ea91f5532.webp?v=1714832868","width":2000},{"alt":null,"id":23884546048099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894150897763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31479296196707,"product_id":7411017154659,"position":5,"created_at":"2024-05-04T22:27:38+08:00","updated_at":"2024-05-04T22:27:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858","variant_ids":[41894150897763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB82","featured_media":{"alt":null,"id":23884543393891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894151028835,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31479298818147,"product_id":7411017154659,"position":10,"created_at":"2024-05-04T22:27:50+08:00","updated_at":"2024-05-04T22:27:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870","variant_ids":[41894151028835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-PB82","featured_media":{"alt":null,"id":23884546048099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2c447c61d572e8030274e2a7ca675bab674eff_792e3651-c420-4b68-abb3-0437ee6c60b4.webp?v=1714832870"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894150897763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31479296196707,"product_id":7411017154659,"position":5,"created_at":"2024-05-04T22:27:38+08:00","updated_at":"2024-05-04T22:27:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858","variant_ids":[41894150897763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB82","featured_media":{"alt":null,"id":23884543393891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8cdf63e4a63be1b1cf227bde824b897ea387a9a_66a31f89-9dac-43f7-af8f-3dd0e0e7c11a.webp?v=1714832858"}},"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: "停產" }