$product = {"id":7415101227107,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb62","description":null,"published_at":"2024-06-11T17:58:00+08:00","created_at":"2024-05-05T20:23:00+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 12 mini","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":41911880941667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31488165019747,"product_id":7415101227107,"position":8,"created_at":"2024-05-05T20:23:19+08:00","updated_at":"2024-05-05T20:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799","variant_ids":[41911880941667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB62","featured_media":{"alt":null,"id":23893509668963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7983a47af449c87f739c0e0ea712cdfe9eaa3b86_2365e619-4fc5-4599-93dc-2350a907f7eb.webp?v=1714911782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e724467734959e07d0906dbcdc3f43d6d286e58_895d86f8-ac77-4e2e-82dd-18e4b009b8b0.webp?v=1714911785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f46301d938c5050573c3cf10bbddea773f130fb_ce42744e-e1bf-49f6-8b85-d7201d0d3c39.webp?v=1714911787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c85ad95b4ae2a792d8b88db9514c2c2a2aac6fc_6601ece6-f451-4715-bdb3-0f3a73a2b74a.webp?v=1714911789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44e3660d94c8925bcb099c88e9d9d8b7b1df69e_291dece9-8d89-42a8-806f-318464777756.webp?v=1714911792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1663ed6221ad36a6dd454a1c4e215b50c58e7f60_4f954ad7-674f-4f98-8491-b879659da4e6.webp?v=1714911794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76b69f3e34fddbf6f66529a81d8a0c952271c0_4212db16-a329-4bcd-be04-db0916faa12a.webp?v=1714911797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e138dcab3772a1ffc75167005cc47029b266fd8_be6f5e5b-1cd8-41f6-8820-89d61e204d9b.webp?v=1714911802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6def36c02e2bd0e6773fb8fc8cde184fb334b65e_2460c420-ff78-42b2-9eaf-74f80be67652.webp?v=1714911804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac883ea91a843438ee2fa073b56ba2d8da8422c3_8a39016e-52e5-494e-8328-d608ae3072e3.webp?v=1714911807"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7983a47af449c87f739c0e0ea712cdfe9eaa3b86_2365e619-4fc5-4599-93dc-2350a907f7eb.webp?v=1714911782","options":["color"],"media":[{"alt":null,"id":23893505900643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7983a47af449c87f739c0e0ea712cdfe9eaa3b86_2365e619-4fc5-4599-93dc-2350a907f7eb.webp?v=1714911782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7983a47af449c87f739c0e0ea712cdfe9eaa3b86_2365e619-4fc5-4599-93dc-2350a907f7eb.webp?v=1714911782","width":2000},{"alt":null,"id":23893506392163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e724467734959e07d0906dbcdc3f43d6d286e58_895d86f8-ac77-4e2e-82dd-18e4b009b8b0.webp?v=1714911785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e724467734959e07d0906dbcdc3f43d6d286e58_895d86f8-ac77-4e2e-82dd-18e4b009b8b0.webp?v=1714911785","width":2000},{"alt":null,"id":23893506719843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f46301d938c5050573c3cf10bbddea773f130fb_ce42744e-e1bf-49f6-8b85-d7201d0d3c39.webp?v=1714911787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f46301d938c5050573c3cf10bbddea773f130fb_ce42744e-e1bf-49f6-8b85-d7201d0d3c39.webp?v=1714911787","width":2000},{"alt":null,"id":23893507604579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c85ad95b4ae2a792d8b88db9514c2c2a2aac6fc_6601ece6-f451-4715-bdb3-0f3a73a2b74a.webp?v=1714911789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c85ad95b4ae2a792d8b88db9514c2c2a2aac6fc_6601ece6-f451-4715-bdb3-0f3a73a2b74a.webp?v=1714911789","width":2000},{"alt":null,"id":23893507965027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44e3660d94c8925bcb099c88e9d9d8b7b1df69e_291dece9-8d89-42a8-806f-318464777756.webp?v=1714911792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44e3660d94c8925bcb099c88e9d9d8b7b1df69e_291dece9-8d89-42a8-806f-318464777756.webp?v=1714911792","width":2000},{"alt":null,"id":23893508784227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1663ed6221ad36a6dd454a1c4e215b50c58e7f60_4f954ad7-674f-4f98-8491-b879659da4e6.webp?v=1714911794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1663ed6221ad36a6dd454a1c4e215b50c58e7f60_4f954ad7-674f-4f98-8491-b879659da4e6.webp?v=1714911794","width":2000},{"alt":null,"id":23893509210211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76b69f3e34fddbf6f66529a81d8a0c952271c0_4212db16-a329-4bcd-be04-db0916faa12a.webp?v=1714911797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76b69f3e34fddbf6f66529a81d8a0c952271c0_4212db16-a329-4bcd-be04-db0916faa12a.webp?v=1714911797","width":2000},{"alt":null,"id":23893509668963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799","width":2000},{"alt":null,"id":23893510193251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e138dcab3772a1ffc75167005cc47029b266fd8_be6f5e5b-1cd8-41f6-8820-89d61e204d9b.webp?v=1714911802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e138dcab3772a1ffc75167005cc47029b266fd8_be6f5e5b-1cd8-41f6-8820-89d61e204d9b.webp?v=1714911802","width":2000},{"alt":null,"id":23893511405667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6def36c02e2bd0e6773fb8fc8cde184fb334b65e_2460c420-ff78-42b2-9eaf-74f80be67652.webp?v=1714911804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6def36c02e2bd0e6773fb8fc8cde184fb334b65e_2460c420-ff78-42b2-9eaf-74f80be67652.webp?v=1714911804","width":2000},{"alt":null,"id":23893511929955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac883ea91a843438ee2fa073b56ba2d8da8422c3_8a39016e-52e5-494e-8328-d608ae3072e3.webp?v=1714911807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac883ea91a843438ee2fa073b56ba2d8da8422c3_8a39016e-52e5-494e-8328-d608ae3072e3.webp?v=1714911807","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911880941667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31488165019747,"product_id":7415101227107,"position":8,"created_at":"2024-05-05T20:23:19+08:00","updated_at":"2024-05-05T20:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799","variant_ids":[41911880941667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB62","featured_media":{"alt":null,"id":23893509668963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911880941667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31488165019747,"product_id":7415101227107,"position":8,"created_at":"2024-05-05T20:23:19+08:00","updated_at":"2024-05-05T20:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799","variant_ids":[41911880941667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB62","featured_media":{"alt":null,"id":23893509668963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a70e0b50c8fb86f155908ceac1e178f9a76effe_b5cc463a-7aae-44d4-b6bf-fb49a610ef46.webp?v=1714911799"}},"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: "停產" }