$product = {"id":7408566698083,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Weiweiboy - 超級可愛大王","handle":"iphone-12-mini-mod-nx-printable-eo01","description":null,"published_at":"2024-06-11T16:40:54+08:00","created_at":"2024-05-03T15:52:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41886938693731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472607920227,"product_id":7408566698083,"position":3,"created_at":"2024-05-03T15:52:36+08:00","updated_at":"2024-05-03T15:52:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756","variant_ids":[41886938693731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EO01","featured_media":{"alt":null,"id":23877525471331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82dd3e1c5eb2d3abeee89ff58b36df158c2765a8_e9fab853-73ad-4355-b5bc-479c351c84e9.webp?v=1714722751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd7872248f3eaf8c34c7ac9b4fa0405c7aec8825_fd32b471-a1ea-4b5b-88d8-1c00000a91c3.webp?v=1714722754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7bbdefb0696e3e75463d6a15bcba63bfbc3736_910ea731-23a0-44eb-8f94-61ba62a1e8e5.webp?v=1714722759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbdffecdf653f7c342d7763b5da77a00fccd673_1613acf9-2297-4194-9bbf-50817a2bda98.webp?v=1714722761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2d672c0b835902ffcf1d52963d3f05f22c82082_f0303b09-a01d-4543-8a8e-76c20639a822.webp?v=1714722764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4631b1edd0bea78a175fc1a4e425d483cb731e9_b5e86a15-5262-4a2e-be10-79bae35325fb.webp?v=1714722766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926bc7b6f84cd83a37f6c6f83e190c5092477607_2f679152-ce6e-4592-9e7d-23cb6adaf2b2.webp?v=1714722769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23fa0f6605941c5054772ed287a41033871dd0c_94107435-3aac-4361-a8db-dd6af5521469.webp?v=1714722771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b159b24ed07020996877b6e0de866d6befc3d_1aaad5e7-4c3a-4658-ba3e-0b9a57826052.webp?v=1714722774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42be9edf78a73ef74c436f3a311b58ab02e5bb9_6641c200-e198-441b-834d-27c985b66465.webp?v=1714722777"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82dd3e1c5eb2d3abeee89ff58b36df158c2765a8_e9fab853-73ad-4355-b5bc-479c351c84e9.webp?v=1714722751","options":["color"],"media":[{"alt":null,"id":23877524029539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82dd3e1c5eb2d3abeee89ff58b36df158c2765a8_e9fab853-73ad-4355-b5bc-479c351c84e9.webp?v=1714722751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82dd3e1c5eb2d3abeee89ff58b36df158c2765a8_e9fab853-73ad-4355-b5bc-479c351c84e9.webp?v=1714722751","width":2000},{"alt":null,"id":23877524783203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd7872248f3eaf8c34c7ac9b4fa0405c7aec8825_fd32b471-a1ea-4b5b-88d8-1c00000a91c3.webp?v=1714722754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd7872248f3eaf8c34c7ac9b4fa0405c7aec8825_fd32b471-a1ea-4b5b-88d8-1c00000a91c3.webp?v=1714722754","width":2000},{"alt":null,"id":23877525471331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756","width":2000},{"alt":null,"id":23877526421603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7bbdefb0696e3e75463d6a15bcba63bfbc3736_910ea731-23a0-44eb-8f94-61ba62a1e8e5.webp?v=1714722759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7bbdefb0696e3e75463d6a15bcba63bfbc3736_910ea731-23a0-44eb-8f94-61ba62a1e8e5.webp?v=1714722759","width":2000},{"alt":null,"id":23877527044195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbdffecdf653f7c342d7763b5da77a00fccd673_1613acf9-2297-4194-9bbf-50817a2bda98.webp?v=1714722761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbdffecdf653f7c342d7763b5da77a00fccd673_1613acf9-2297-4194-9bbf-50817a2bda98.webp?v=1714722761","width":2000},{"alt":null,"id":23877527568483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2d672c0b835902ffcf1d52963d3f05f22c82082_f0303b09-a01d-4543-8a8e-76c20639a822.webp?v=1714722764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2d672c0b835902ffcf1d52963d3f05f22c82082_f0303b09-a01d-4543-8a8e-76c20639a822.webp?v=1714722764","width":2000},{"alt":null,"id":23877528158307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4631b1edd0bea78a175fc1a4e425d483cb731e9_b5e86a15-5262-4a2e-be10-79bae35325fb.webp?v=1714722766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4631b1edd0bea78a175fc1a4e425d483cb731e9_b5e86a15-5262-4a2e-be10-79bae35325fb.webp?v=1714722766","width":2000},{"alt":null,"id":23877528715363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926bc7b6f84cd83a37f6c6f83e190c5092477607_2f679152-ce6e-4592-9e7d-23cb6adaf2b2.webp?v=1714722769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926bc7b6f84cd83a37f6c6f83e190c5092477607_2f679152-ce6e-4592-9e7d-23cb6adaf2b2.webp?v=1714722769","width":2000},{"alt":null,"id":23877529141347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23fa0f6605941c5054772ed287a41033871dd0c_94107435-3aac-4361-a8db-dd6af5521469.webp?v=1714722771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23fa0f6605941c5054772ed287a41033871dd0c_94107435-3aac-4361-a8db-dd6af5521469.webp?v=1714722771","width":2000},{"alt":null,"id":23877529632867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b159b24ed07020996877b6e0de866d6befc3d_1aaad5e7-4c3a-4658-ba3e-0b9a57826052.webp?v=1714722774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b159b24ed07020996877b6e0de866d6befc3d_1aaad5e7-4c3a-4658-ba3e-0b9a57826052.webp?v=1714722774","width":2000},{"alt":null,"id":23877529862243,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42be9edf78a73ef74c436f3a311b58ab02e5bb9_6641c200-e198-441b-834d-27c985b66465.webp?v=1714722777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42be9edf78a73ef74c436f3a311b58ab02e5bb9_6641c200-e198-441b-834d-27c985b66465.webp?v=1714722777","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886938693731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472607920227,"product_id":7408566698083,"position":3,"created_at":"2024-05-03T15:52:36+08:00","updated_at":"2024-05-03T15:52:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756","variant_ids":[41886938693731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EO01","featured_media":{"alt":null,"id":23877525471331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886938693731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472607920227,"product_id":7408566698083,"position":3,"created_at":"2024-05-03T15:52:36+08:00","updated_at":"2024-05-03T15:52:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756","variant_ids":[41886938693731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Weiweiboy - 超級可愛大王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EO01","featured_media":{"alt":null,"id":23877525471331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9676f741ec7d4520353fd15034b1c06a5035f7c_fa8a2771-e227-4c6c-bdf5-d6f47d3d5455.webp?v=1714722756"}},"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: "停產" }