$product = {"id":7408517611619,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-12-pro-max-mod-nx-printable-fz04","description":null,"published_at":"2024-06-11T16:39:28+08:00","created_at":"2024-05-03T15:42:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41886385864803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472481206371,"product_id":7408517611619,"position":3,"created_at":"2024-05-03T15:42:22+08:00","updated_at":"2024-05-03T15:42:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142","variant_ids":[41886385864803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - 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":"NPB0118724-FZ04","featured_media":{"alt":null,"id":23877398397027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f8ee0b19029df7d57ea77405094c9cff743110_c9707247-2848-42ed-a743-ad73179e48fd.webp?v=1714722137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39c7de1eccb60ead1c94742669b40939c3e479d_9b0e3bf8-a955-4304-9a16-9c90a39ead49.webp?v=1714722139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b755ba798e1d4425ca42b8cb3245672fee5df4_9e5513b0-395d-40c0-9b04-518e3734c2a9.webp?v=1714722144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868dd674671e4e1c489b75a13a3053c0bc3bef15_df1f81fc-4f31-47c8-80ff-2eaf1e171de4.webp?v=1714722146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b1ca89174e3fcb8a73d146b088bbfa4678ce58_931a86b6-1c4c-4c94-850c-b995e96b40ad.webp?v=1714722149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bae9230292ad3ba134fc5d588e88ddb6bc7a1c_7318cbee-a54d-4b15-97d9-0cbcaf649c3e.webp?v=1714722151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcd134d11cc86b597e71e15111a5c1a8a58dfb_ab4d3458-7647-4da2-a727-6465d2d0ca39.webp?v=1714722153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8317deabd69e62fc9cb71e875260140f083ed01c_466fe1b2-280e-4636-8cc8-63399a98665b.webp?v=1714722156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68987a4062721e1a51c28c7bf46bdc5f948c44_89d47356-31b7-41fe-8f41-231f011956a3.webp?v=1714722158"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f8ee0b19029df7d57ea77405094c9cff743110_c9707247-2848-42ed-a743-ad73179e48fd.webp?v=1714722137","options":["color"],"media":[{"alt":null,"id":23877397282915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f8ee0b19029df7d57ea77405094c9cff743110_c9707247-2848-42ed-a743-ad73179e48fd.webp?v=1714722137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f8ee0b19029df7d57ea77405094c9cff743110_c9707247-2848-42ed-a743-ad73179e48fd.webp?v=1714722137","width":2000},{"alt":null,"id":23877397839971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39c7de1eccb60ead1c94742669b40939c3e479d_9b0e3bf8-a955-4304-9a16-9c90a39ead49.webp?v=1714722139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39c7de1eccb60ead1c94742669b40939c3e479d_9b0e3bf8-a955-4304-9a16-9c90a39ead49.webp?v=1714722139","width":2000},{"alt":null,"id":23877398397027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142","width":2000},{"alt":null,"id":23877398823011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b755ba798e1d4425ca42b8cb3245672fee5df4_9e5513b0-395d-40c0-9b04-518e3734c2a9.webp?v=1714722144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5b755ba798e1d4425ca42b8cb3245672fee5df4_9e5513b0-395d-40c0-9b04-518e3734c2a9.webp?v=1714722144","width":2000},{"alt":null,"id":23877399543907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868dd674671e4e1c489b75a13a3053c0bc3bef15_df1f81fc-4f31-47c8-80ff-2eaf1e171de4.webp?v=1714722146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868dd674671e4e1c489b75a13a3053c0bc3bef15_df1f81fc-4f31-47c8-80ff-2eaf1e171de4.webp?v=1714722146","width":2000},{"alt":null,"id":23877400002659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b1ca89174e3fcb8a73d146b088bbfa4678ce58_931a86b6-1c4c-4c94-850c-b995e96b40ad.webp?v=1714722149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b1ca89174e3fcb8a73d146b088bbfa4678ce58_931a86b6-1c4c-4c94-850c-b995e96b40ad.webp?v=1714722149","width":2000},{"alt":null,"id":23877400428643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bae9230292ad3ba134fc5d588e88ddb6bc7a1c_7318cbee-a54d-4b15-97d9-0cbcaf649c3e.webp?v=1714722151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bae9230292ad3ba134fc5d588e88ddb6bc7a1c_7318cbee-a54d-4b15-97d9-0cbcaf649c3e.webp?v=1714722151","width":2000},{"alt":null,"id":23877400952931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcd134d11cc86b597e71e15111a5c1a8a58dfb_ab4d3458-7647-4da2-a727-6465d2d0ca39.webp?v=1714722153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcd134d11cc86b597e71e15111a5c1a8a58dfb_ab4d3458-7647-4da2-a727-6465d2d0ca39.webp?v=1714722153","width":2000},{"alt":null,"id":23877401411683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8317deabd69e62fc9cb71e875260140f083ed01c_466fe1b2-280e-4636-8cc8-63399a98665b.webp?v=1714722156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8317deabd69e62fc9cb71e875260140f083ed01c_466fe1b2-280e-4636-8cc8-63399a98665b.webp?v=1714722156","width":2000},{"alt":null,"id":23877401804899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68987a4062721e1a51c28c7bf46bdc5f948c44_89d47356-31b7-41fe-8f41-231f011956a3.webp?v=1714722158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68987a4062721e1a51c28c7bf46bdc5f948c44_89d47356-31b7-41fe-8f41-231f011956a3.webp?v=1714722158","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886385864803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472481206371,"product_id":7408517611619,"position":3,"created_at":"2024-05-03T15:42:22+08:00","updated_at":"2024-05-03T15:42:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142","variant_ids":[41886385864803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - 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":"NPB0118724-FZ04","featured_media":{"alt":null,"id":23877398397027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886385864803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472481206371,"product_id":7408517611619,"position":3,"created_at":"2024-05-03T15:42:22+08:00","updated_at":"2024-05-03T15:42:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142","variant_ids":[41886385864803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - 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":"NPB0118724-FZ04","featured_media":{"alt":null,"id":23877398397027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f675c6a2bf52a22901cbe4bad8a9a811a3ed4_92bf8cb3-06d9-4c9c-b67c-f8e30f0d1715.webp?v=1714722142"}},"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: "停產" }