$product = {"id":7411258884195,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 火炎山","handle":"iphone-14-plus-mod-nx-magsafe-printable-aa36","description":null,"published_at":"2024-06-11T17:40:08+08:00","created_at":"2024-05-04T23:55:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Plus","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe","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":41896636055651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479981670499,"product_id":7411258884195,"position":8,"created_at":"2024-05-04T23:55:33+08:00","updated_at":"2024-05-04T23:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133","variant_ids":[41896636055651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AA36","featured_media":{"alt":null,"id":23885232111715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852d45db6d51734d8f8651cde334d5e4bd942f7f_66aa75a0-ad1c-4b14-a3cf-ec6484326f30.webp?v=1714838116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c50626acc61a78a6f8703c1107134c532cbbc4f0_ab2a1651-d7e2-4cc1-89be-885c77ac3bc2.webp?v=1714838119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d863a1e1302d18253174fa89eafb1a090600ecda_5eb86fe2-1e70-4669-8b76-9c61747b1112.webp?v=1714838121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37a5a3549e25428fc7271c20476b93cc697f86f_f625c1d0-d60c-411a-8451-ccce95402c84.webp?v=1714838124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d521bf2b7cdb06b7329cee1f173e869b29fe0bba_010faacb-af07-4f68-88ea-b88bbf2edb0b.webp?v=1714838126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000e8c386e9c381473cf799d1854b00ee0a243dd_dc5c82a8-e1ff-453c-98f9-82ef66dc83b0.webp?v=1714838129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd328cfa76020d0461757a25efe62abe98bbe2a0_683cd8cc-6a53-49ca-a00c-00bce747c2c9.webp?v=1714838131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd74637e632fbcdf0ecd6299042391254d85603_778df143-881e-41e0-8792-9134e4a1132a.webp?v=1714838136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6eadc10ba08fda40568969da45ffb85594c5ec_381f60b2-a9df-457d-a003-6d5989be51c7.webp?v=1714838138"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852d45db6d51734d8f8651cde334d5e4bd942f7f_66aa75a0-ad1c-4b14-a3cf-ec6484326f30.webp?v=1714838116","options":["color"],"media":[{"alt":null,"id":23885228376163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852d45db6d51734d8f8651cde334d5e4bd942f7f_66aa75a0-ad1c-4b14-a3cf-ec6484326f30.webp?v=1714838116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852d45db6d51734d8f8651cde334d5e4bd942f7f_66aa75a0-ad1c-4b14-a3cf-ec6484326f30.webp?v=1714838116","width":2000},{"alt":null,"id":23885228933219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c50626acc61a78a6f8703c1107134c532cbbc4f0_ab2a1651-d7e2-4cc1-89be-885c77ac3bc2.webp?v=1714838119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c50626acc61a78a6f8703c1107134c532cbbc4f0_ab2a1651-d7e2-4cc1-89be-885c77ac3bc2.webp?v=1714838119","width":2000},{"alt":null,"id":23885229523043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d863a1e1302d18253174fa89eafb1a090600ecda_5eb86fe2-1e70-4669-8b76-9c61747b1112.webp?v=1714838121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d863a1e1302d18253174fa89eafb1a090600ecda_5eb86fe2-1e70-4669-8b76-9c61747b1112.webp?v=1714838121","width":2000},{"alt":null,"id":23885229981795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37a5a3549e25428fc7271c20476b93cc697f86f_f625c1d0-d60c-411a-8451-ccce95402c84.webp?v=1714838124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c37a5a3549e25428fc7271c20476b93cc697f86f_f625c1d0-d60c-411a-8451-ccce95402c84.webp?v=1714838124","width":2000},{"alt":null,"id":23885230538851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d521bf2b7cdb06b7329cee1f173e869b29fe0bba_010faacb-af07-4f68-88ea-b88bbf2edb0b.webp?v=1714838126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d521bf2b7cdb06b7329cee1f173e869b29fe0bba_010faacb-af07-4f68-88ea-b88bbf2edb0b.webp?v=1714838126","width":2000},{"alt":null,"id":23885230964835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000e8c386e9c381473cf799d1854b00ee0a243dd_dc5c82a8-e1ff-453c-98f9-82ef66dc83b0.webp?v=1714838129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000e8c386e9c381473cf799d1854b00ee0a243dd_dc5c82a8-e1ff-453c-98f9-82ef66dc83b0.webp?v=1714838129","width":2000},{"alt":null,"id":23885231521891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd328cfa76020d0461757a25efe62abe98bbe2a0_683cd8cc-6a53-49ca-a00c-00bce747c2c9.webp?v=1714838131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd328cfa76020d0461757a25efe62abe98bbe2a0_683cd8cc-6a53-49ca-a00c-00bce747c2c9.webp?v=1714838131","width":2000},{"alt":null,"id":23885232111715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133","width":2000},{"alt":null,"id":23885232636003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd74637e632fbcdf0ecd6299042391254d85603_778df143-881e-41e0-8792-9134e4a1132a.webp?v=1714838136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd74637e632fbcdf0ecd6299042391254d85603_778df143-881e-41e0-8792-9134e4a1132a.webp?v=1714838136","width":2000},{"alt":null,"id":23885233160291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6eadc10ba08fda40568969da45ffb85594c5ec_381f60b2-a9df-457d-a003-6d5989be51c7.webp?v=1714838138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6eadc10ba08fda40568969da45ffb85594c5ec_381f60b2-a9df-457d-a003-6d5989be51c7.webp?v=1714838138","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896636055651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479981670499,"product_id":7411258884195,"position":8,"created_at":"2024-05-04T23:55:33+08:00","updated_at":"2024-05-04T23:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133","variant_ids":[41896636055651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AA36","featured_media":{"alt":null,"id":23885232111715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896636055651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31479981670499,"product_id":7411258884195,"position":8,"created_at":"2024-05-04T23:55:33+08:00","updated_at":"2024-05-04T23:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133","variant_ids":[41896636055651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AA36","featured_media":{"alt":null,"id":23885232111715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13374da0c230863014d4b0a42a41572151cd7f3e_3dd3c230-2b0e-49b8-91cd-38909dd751e2.webp?v=1714838133"}},"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: "停產" }