$product = {"id":7369143222371,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯","handle":"iphone-14-plus-mod-nx-printable-pl62","description":null,"published_at":"2024-06-11T16:13:11+08:00","created_at":"2024-04-23T15:32:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","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":41792983990371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31386898956387,"product_id":7369143222371,"position":3,"created_at":"2024-04-23T15:33:00+08:00","updated_at":"2024-04-23T15:33:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580","variant_ids":[41792983990371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PL62","featured_media":{"alt":null,"id":23789136904291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0913cff14f639a307708dbbb14764aff3c6b45bb_ab9da485-0c62-46b2-ae2f-169c98318298.webp?v=1713857575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770540cd9916ae74b7479918af5fd8c9ee2d39ac_6bf05ff4-05e3-4b68-aca0-10757f574ae9.webp?v=1713857578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475a89dc14b1409fd55f41651600398a8e4aff88_6ba20d67-c8c0-481a-9900-ed5e2cf5b5ce.webp?v=1713857582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57ebd9238a737ff0b52c6310e473920e9a731e0_d03a6aa8-a05f-41e9-98d1-f5a7d7b71363.webp?v=1713857585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccad80c58a0056235273d540e687b500c29301b9_9165382a-8623-44aa-9eda-c761493d7ae5.webp?v=1713857588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e760f6e196bc1040b4060bff28bbfbb872e57dbe_64661ac9-6bbd-445c-8818-202999e49ae4.webp?v=1713857590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82dce6e003ced186692640d5da7508a1d4b6a95_2adcb66d-9937-40a8-b4da-41c66dac8dec.webp?v=1713857593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58caeeec10066b4e0f4073157a69df6c6ef4d6da_2ddde26c-4f23-486b-b62f-cbc6f91d928f.webp?v=1713857596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b011aacf6c8ed9b2df668e4279a2c7f73d8f2133_a4bd5826-8fc3-4de6-8fe8-2c8b0790ab94.webp?v=1713857598"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0913cff14f639a307708dbbb14764aff3c6b45bb_ab9da485-0c62-46b2-ae2f-169c98318298.webp?v=1713857575","options":["color"],"media":[{"alt":null,"id":23789135822947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0913cff14f639a307708dbbb14764aff3c6b45bb_ab9da485-0c62-46b2-ae2f-169c98318298.webp?v=1713857575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0913cff14f639a307708dbbb14764aff3c6b45bb_ab9da485-0c62-46b2-ae2f-169c98318298.webp?v=1713857575","width":2000},{"alt":null,"id":23789136347235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770540cd9916ae74b7479918af5fd8c9ee2d39ac_6bf05ff4-05e3-4b68-aca0-10757f574ae9.webp?v=1713857578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770540cd9916ae74b7479918af5fd8c9ee2d39ac_6bf05ff4-05e3-4b68-aca0-10757f574ae9.webp?v=1713857578","width":2000},{"alt":null,"id":23789136904291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580","width":2000},{"alt":null,"id":23789137559651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475a89dc14b1409fd55f41651600398a8e4aff88_6ba20d67-c8c0-481a-9900-ed5e2cf5b5ce.webp?v=1713857582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475a89dc14b1409fd55f41651600398a8e4aff88_6ba20d67-c8c0-481a-9900-ed5e2cf5b5ce.webp?v=1713857582","width":2000},{"alt":null,"id":23789138149475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57ebd9238a737ff0b52c6310e473920e9a731e0_d03a6aa8-a05f-41e9-98d1-f5a7d7b71363.webp?v=1713857585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57ebd9238a737ff0b52c6310e473920e9a731e0_d03a6aa8-a05f-41e9-98d1-f5a7d7b71363.webp?v=1713857585","width":2000},{"alt":null,"id":23789138935907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccad80c58a0056235273d540e687b500c29301b9_9165382a-8623-44aa-9eda-c761493d7ae5.webp?v=1713857588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccad80c58a0056235273d540e687b500c29301b9_9165382a-8623-44aa-9eda-c761493d7ae5.webp?v=1713857588","width":2000},{"alt":null,"id":23789139689571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e760f6e196bc1040b4060bff28bbfbb872e57dbe_64661ac9-6bbd-445c-8818-202999e49ae4.webp?v=1713857590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e760f6e196bc1040b4060bff28bbfbb872e57dbe_64661ac9-6bbd-445c-8818-202999e49ae4.webp?v=1713857590","width":2000},{"alt":null,"id":23789140279395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82dce6e003ced186692640d5da7508a1d4b6a95_2adcb66d-9937-40a8-b4da-41c66dac8dec.webp?v=1713857593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82dce6e003ced186692640d5da7508a1d4b6a95_2adcb66d-9937-40a8-b4da-41c66dac8dec.webp?v=1713857593","width":2000},{"alt":null,"id":23789141000291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58caeeec10066b4e0f4073157a69df6c6ef4d6da_2ddde26c-4f23-486b-b62f-cbc6f91d928f.webp?v=1713857596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58caeeec10066b4e0f4073157a69df6c6ef4d6da_2ddde26c-4f23-486b-b62f-cbc6f91d928f.webp?v=1713857596","width":2000},{"alt":null,"id":23789141524579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b011aacf6c8ed9b2df668e4279a2c7f73d8f2133_a4bd5826-8fc3-4de6-8fe8-2c8b0790ab94.webp?v=1713857598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b011aacf6c8ed9b2df668e4279a2c7f73d8f2133_a4bd5826-8fc3-4de6-8fe8-2c8b0790ab94.webp?v=1713857598","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792983990371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31386898956387,"product_id":7369143222371,"position":3,"created_at":"2024-04-23T15:33:00+08:00","updated_at":"2024-04-23T15:33:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580","variant_ids":[41792983990371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PL62","featured_media":{"alt":null,"id":23789136904291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792983990371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31386898956387,"product_id":7369143222371,"position":3,"created_at":"2024-04-23T15:33:00+08:00","updated_at":"2024-04-23T15:33:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580","variant_ids":[41792983990371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PL62","featured_media":{"alt":null,"id":23789136904291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947d22c6ce383df284ab39b884936e8970fd0c9d_58c9a7a4-f4a5-4a7c-9086-1a0eb6e9f89a.webp?v=1713857580"}},"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: "停產" }