$product = {"id":7411238600803,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc12","description":null,"published_at":"2024-06-11T17:39:36+08:00","created_at":"2024-05-04T23:51:27+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 14 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":41896387674211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479933075555,"product_id":7411238600803,"position":10,"created_at":"2024-05-04T23:51:51+08:00","updated_at":"2024-05-04T23:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911","variant_ids":[41896387674211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0126124-PC12","featured_media":{"alt":null,"id":23885183549539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afe0494bec02a999b2f1589d03b755baddedc82_31e5e684-7f16-4970-bb95-a2213bfa61d0.webp?v=1714837890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f1df8e5f4fa4b55891004fa84d96645aa1162f_974044f1-b6c0-4446-a148-79fbbd17326f.webp?v=1714837892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0bed89cc751a2ef3ccf568c208f3e4ca00ce19_77c43c03-25e6-4f80-938a-5a514645024a.webp?v=1714837894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e2c915ef6c15f8fa1f1892b5f4b4ef71ffabac_2c0f2716-7f14-41e7-b4fe-0be782ff740a.webp?v=1714837897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158ab5e09d8605cf2904bf102786c7416a7aeab2_10bb9077-243a-4232-9263-66a6c29c2699.webp?v=1714837899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c4e8b282dd439ae43ccea8775dd259880b21ef_3d5d9d9f-5c1f-42ac-8bbc-1b9abdc3a26e.webp?v=1714837902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7eaa08ba016dd90b9face0cdccf7a2084eb943_a6e756c2-5ec2-4f81-80fd-e83da8a51962.webp?v=1714837904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e0bf05e950a7305dc466820f5cdaa9847c8a_61f4ea2d-34e0-47d6-8837-fa8b3baf4262.webp?v=1714837907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8deee4b301aad33d614396031e7169cea3328b_c41db091-e8eb-4e9a-8ae1-f450ee86169d.webp?v=1714837909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afe0494bec02a999b2f1589d03b755baddedc82_31e5e684-7f16-4970-bb95-a2213bfa61d0.webp?v=1714837890","options":["color"],"media":[{"alt":null,"id":23885178962019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afe0494bec02a999b2f1589d03b755baddedc82_31e5e684-7f16-4970-bb95-a2213bfa61d0.webp?v=1714837890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6afe0494bec02a999b2f1589d03b755baddedc82_31e5e684-7f16-4970-bb95-a2213bfa61d0.webp?v=1714837890","width":2000},{"alt":null,"id":23885179453539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f1df8e5f4fa4b55891004fa84d96645aa1162f_974044f1-b6c0-4446-a148-79fbbd17326f.webp?v=1714837892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64f1df8e5f4fa4b55891004fa84d96645aa1162f_974044f1-b6c0-4446-a148-79fbbd17326f.webp?v=1714837892","width":2000},{"alt":null,"id":23885179945059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0bed89cc751a2ef3ccf568c208f3e4ca00ce19_77c43c03-25e6-4f80-938a-5a514645024a.webp?v=1714837894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0bed89cc751a2ef3ccf568c208f3e4ca00ce19_77c43c03-25e6-4f80-938a-5a514645024a.webp?v=1714837894","width":2000},{"alt":null,"id":23885180600419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e2c915ef6c15f8fa1f1892b5f4b4ef71ffabac_2c0f2716-7f14-41e7-b4fe-0be782ff740a.webp?v=1714837897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e2c915ef6c15f8fa1f1892b5f4b4ef71ffabac_2c0f2716-7f14-41e7-b4fe-0be782ff740a.webp?v=1714837897","width":2000},{"alt":null,"id":23885180960867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158ab5e09d8605cf2904bf102786c7416a7aeab2_10bb9077-243a-4232-9263-66a6c29c2699.webp?v=1714837899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158ab5e09d8605cf2904bf102786c7416a7aeab2_10bb9077-243a-4232-9263-66a6c29c2699.webp?v=1714837899","width":2000},{"alt":null,"id":23885181517923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c4e8b282dd439ae43ccea8775dd259880b21ef_3d5d9d9f-5c1f-42ac-8bbc-1b9abdc3a26e.webp?v=1714837902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c4e8b282dd439ae43ccea8775dd259880b21ef_3d5d9d9f-5c1f-42ac-8bbc-1b9abdc3a26e.webp?v=1714837902","width":2000},{"alt":null,"id":23885181878371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7eaa08ba016dd90b9face0cdccf7a2084eb943_a6e756c2-5ec2-4f81-80fd-e83da8a51962.webp?v=1714837904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c7eaa08ba016dd90b9face0cdccf7a2084eb943_a6e756c2-5ec2-4f81-80fd-e83da8a51962.webp?v=1714837904","width":2000},{"alt":null,"id":23885182533731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e0bf05e950a7305dc466820f5cdaa9847c8a_61f4ea2d-34e0-47d6-8837-fa8b3baf4262.webp?v=1714837907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8021e0bf05e950a7305dc466820f5cdaa9847c8a_61f4ea2d-34e0-47d6-8837-fa8b3baf4262.webp?v=1714837907","width":2000},{"alt":null,"id":23885182861411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8deee4b301aad33d614396031e7169cea3328b_c41db091-e8eb-4e9a-8ae1-f450ee86169d.webp?v=1714837909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8deee4b301aad33d614396031e7169cea3328b_c41db091-e8eb-4e9a-8ae1-f450ee86169d.webp?v=1714837909","width":2000},{"alt":null,"id":23885183549539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896387674211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479933075555,"product_id":7411238600803,"position":10,"created_at":"2024-05-04T23:51:51+08:00","updated_at":"2024-05-04T23:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911","variant_ids":[41896387674211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0126124-PC12","featured_media":{"alt":null,"id":23885183549539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896387674211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479933075555,"product_id":7411238600803,"position":10,"created_at":"2024-05-04T23:51:51+08:00","updated_at":"2024-05-04T23:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911","variant_ids":[41896387674211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0126124-PC12","featured_media":{"alt":null,"id":23885183549539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8008b5f999d4b7faf6f5d7e4168b6a7b148426d_f8d0e4f1-e1d4-4162-88e3-61f5b306fb95.webp?v=1714837911"}},"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: "停產" }