$product = {"id":7407547187299,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點","handle":"iphone-15-plus-mod-nx-printable-eo04","description":null,"published_at":"2024-06-11T16:18:51+08:00","created_at":"2024-05-03T10:08:26+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 15 Plus","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":41876184694883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31469861601379,"product_id":7407547187299,"position":1,"created_at":"2024-05-03T10:08:29+08:00","updated_at":"2024-05-03T10:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","variant_ids":[41876184694883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 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":"NPB0129624-EO04","featured_media":{"alt":null,"id":23874763653219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876184825955,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31469863927907,"product_id":7407547187299,"position":4,"created_at":"2024-05-03T10:08:36+08:00","updated_at":"2024-05-03T10:08:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116","variant_ids":[41876184825955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 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":"NPB0129657-EO04","featured_media":{"alt":null,"id":23874765455459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea8df992822492de3c0f7422c0c7fbf4e077aa_6c7b72ff-abf9-4110-be67-d4a4053f63cf.webp?v=1714702111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdb719be8a363ccabfd06623d90bbbfd26d70111_7563c805-748b-4e60-98fb-08812e710ac9.webp?v=1714702114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d47efa23c5a98c362e88fc47bcbd6c89d7cd2c0_ea0e20cb-a574-4bb6-9f14-fd4ad53216fb.webp?v=1714702119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3f1459b473843d222f8efb581a0f9ac607a8dc5_ae53a68d-aefb-49a7-97f9-b1b5bffb3342.webp?v=1714702123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a15dffee08d4c4e53fdbacf6a422c67d5c028f_6a716919-6838-4a4c-9111-5ccd427e7ff9.webp?v=1714702125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3f7f0e6c3912649d7a940f1ae52e03ef523f9d_ba5d9a47-b3c8-4274-b771-0427b63ec185.webp?v=1714702128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c979aad69316038ed89f15dc9ec95b469b5bf3_563d406f-3172-473a-ad9a-fd904ec90fb0.webp?v=1714702130"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","options":["color"],"media":[{"alt":null,"id":23874763653219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","width":2000},{"alt":null,"id":23874764177507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea8df992822492de3c0f7422c0c7fbf4e077aa_6c7b72ff-abf9-4110-be67-d4a4053f63cf.webp?v=1714702111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea8df992822492de3c0f7422c0c7fbf4e077aa_6c7b72ff-abf9-4110-be67-d4a4053f63cf.webp?v=1714702111","width":2000},{"alt":null,"id":23874764931171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdb719be8a363ccabfd06623d90bbbfd26d70111_7563c805-748b-4e60-98fb-08812e710ac9.webp?v=1714702114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdb719be8a363ccabfd06623d90bbbfd26d70111_7563c805-748b-4e60-98fb-08812e710ac9.webp?v=1714702114","width":2000},{"alt":null,"id":23874765455459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116","width":2000},{"alt":null,"id":23874766897251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d47efa23c5a98c362e88fc47bcbd6c89d7cd2c0_ea0e20cb-a574-4bb6-9f14-fd4ad53216fb.webp?v=1714702119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d47efa23c5a98c362e88fc47bcbd6c89d7cd2c0_ea0e20cb-a574-4bb6-9f14-fd4ad53216fb.webp?v=1714702119","width":2000},{"alt":null,"id":23874768371811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3f1459b473843d222f8efb581a0f9ac607a8dc5_ae53a68d-aefb-49a7-97f9-b1b5bffb3342.webp?v=1714702123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3f1459b473843d222f8efb581a0f9ac607a8dc5_ae53a68d-aefb-49a7-97f9-b1b5bffb3342.webp?v=1714702123","width":2000},{"alt":null,"id":23874768928867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a15dffee08d4c4e53fdbacf6a422c67d5c028f_6a716919-6838-4a4c-9111-5ccd427e7ff9.webp?v=1714702125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a15dffee08d4c4e53fdbacf6a422c67d5c028f_6a716919-6838-4a4c-9111-5ccd427e7ff9.webp?v=1714702125","width":2000},{"alt":null,"id":23874769453155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3f7f0e6c3912649d7a940f1ae52e03ef523f9d_ba5d9a47-b3c8-4274-b771-0427b63ec185.webp?v=1714702128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b3f7f0e6c3912649d7a940f1ae52e03ef523f9d_ba5d9a47-b3c8-4274-b771-0427b63ec185.webp?v=1714702128","width":2000},{"alt":null,"id":23874770075747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c979aad69316038ed89f15dc9ec95b469b5bf3_563d406f-3172-473a-ad9a-fd904ec90fb0.webp?v=1714702130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c979aad69316038ed89f15dc9ec95b469b5bf3_563d406f-3172-473a-ad9a-fd904ec90fb0.webp?v=1714702130","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876184694883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31469861601379,"product_id":7407547187299,"position":1,"created_at":"2024-05-03T10:08:29+08:00","updated_at":"2024-05-03T10:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","variant_ids":[41876184694883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 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":"NPB0129624-EO04","featured_media":{"alt":null,"id":23874763653219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876184825955,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31469863927907,"product_id":7407547187299,"position":4,"created_at":"2024-05-03T10:08:36+08:00","updated_at":"2024-05-03T10:08:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116","variant_ids":[41876184825955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 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":"NPB0129657-EO04","featured_media":{"alt":null,"id":23874765455459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ae5c3a830ab16bc3128c4d0cf2a34d80b2b1fe_4740aa6a-3380-4aca-a4cd-16b3d7e401e4.webp?v=1714702116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876184694883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31469861601379,"product_id":7407547187299,"position":1,"created_at":"2024-05-03T10:08:29+08:00","updated_at":"2024-05-03T10:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109","variant_ids":[41876184694883]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 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":"NPB0129624-EO04","featured_media":{"alt":null,"id":23874763653219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d714fbfe5ee47120098451d83896930e633e49a_1e926aae-05be-4c7a-8bb8-9e9ac2dd7a07.webp?v=1714702109"}},"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: "停產" }