$product = {"id":7407889678435,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-14-plus-mod-nx-printable-fz05","description":null,"published_at":"2024-06-11T16:25:42+08:00","created_at":"2024-05-03T11:10:06+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 14 Plus","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":41880135008355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470630568035,"product_id":7407889678435,"position":10,"created_at":"2024-05-03T11:10:29+08:00","updated_at":"2024-05-03T11:10:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829","variant_ids":[41880135008355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ05","featured_media":{"alt":null,"id":23875534487651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c55dda6c35acddf1e205cd273ad0f9ed9ffa584_0cc3ba60-e568-4838-b767-d493fc97fc65.webp?v=1714705809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd1195f3249a2e66a299b7f7f05953e7dd3af16_cec39a9a-f442-4f9d-b29b-19a6df67f86e.webp?v=1714705811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa90d1e118a4f6b93afbfc411dc2b12a7ba49d0_b0910c67-5fb2-447b-8fa0-27537ce67fc6.webp?v=1714705813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c3f3c9104ca6b45b51c0e302aa7ff17df4e73a_843cfc76-a6f3-4eb0-bb50-7407bf76273b.webp?v=1714705816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90b0f1fa69e73fc8bcd5638a09c8ab92fe3f809_f55ec7d0-22d5-41fb-9b27-86c42d611eb3.webp?v=1714705818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6a16dca6212f82137a7deb0609811bbc629a2d_70912f40-275c-4f77-ab08-83f2c0baed29.webp?v=1714705820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5319ecfd716b8c3a1e0b28f63daeec71f44c2d0_7a9e25ed-8791-4a23-bc8a-6d01e3c54d20.webp?v=1714705823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b234ab0bb976e8e187290fe509ec0b226a8949_5eacc87e-a211-4ba8-988f-ac17b9296d57.webp?v=1714705825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bf6ff79fa1d06ab24bb687b831a49d71fb6485_39db06a4-d56d-4d39-b664-6b78c3df8e43.webp?v=1714705827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c55dda6c35acddf1e205cd273ad0f9ed9ffa584_0cc3ba60-e568-4838-b767-d493fc97fc65.webp?v=1714705809","options":["color"],"media":[{"alt":null,"id":23875530850403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c55dda6c35acddf1e205cd273ad0f9ed9ffa584_0cc3ba60-e568-4838-b767-d493fc97fc65.webp?v=1714705809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c55dda6c35acddf1e205cd273ad0f9ed9ffa584_0cc3ba60-e568-4838-b767-d493fc97fc65.webp?v=1714705809","width":2000},{"alt":null,"id":23875531178083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd1195f3249a2e66a299b7f7f05953e7dd3af16_cec39a9a-f442-4f9d-b29b-19a6df67f86e.webp?v=1714705811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd1195f3249a2e66a299b7f7f05953e7dd3af16_cec39a9a-f442-4f9d-b29b-19a6df67f86e.webp?v=1714705811","width":2000},{"alt":null,"id":23875531571299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa90d1e118a4f6b93afbfc411dc2b12a7ba49d0_b0910c67-5fb2-447b-8fa0-27537ce67fc6.webp?v=1714705813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa90d1e118a4f6b93afbfc411dc2b12a7ba49d0_b0910c67-5fb2-447b-8fa0-27537ce67fc6.webp?v=1714705813","width":2000},{"alt":null,"id":23875531964515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c3f3c9104ca6b45b51c0e302aa7ff17df4e73a_843cfc76-a6f3-4eb0-bb50-7407bf76273b.webp?v=1714705816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c3f3c9104ca6b45b51c0e302aa7ff17df4e73a_843cfc76-a6f3-4eb0-bb50-7407bf76273b.webp?v=1714705816","width":2000},{"alt":null,"id":23875532357731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90b0f1fa69e73fc8bcd5638a09c8ab92fe3f809_f55ec7d0-22d5-41fb-9b27-86c42d611eb3.webp?v=1714705818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90b0f1fa69e73fc8bcd5638a09c8ab92fe3f809_f55ec7d0-22d5-41fb-9b27-86c42d611eb3.webp?v=1714705818","width":2000},{"alt":null,"id":23875532816483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6a16dca6212f82137a7deb0609811bbc629a2d_70912f40-275c-4f77-ab08-83f2c0baed29.webp?v=1714705820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6a16dca6212f82137a7deb0609811bbc629a2d_70912f40-275c-4f77-ab08-83f2c0baed29.webp?v=1714705820","width":2000},{"alt":null,"id":23875533209699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5319ecfd716b8c3a1e0b28f63daeec71f44c2d0_7a9e25ed-8791-4a23-bc8a-6d01e3c54d20.webp?v=1714705823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5319ecfd716b8c3a1e0b28f63daeec71f44c2d0_7a9e25ed-8791-4a23-bc8a-6d01e3c54d20.webp?v=1714705823","width":2000},{"alt":null,"id":23875533668451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b234ab0bb976e8e187290fe509ec0b226a8949_5eacc87e-a211-4ba8-988f-ac17b9296d57.webp?v=1714705825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b234ab0bb976e8e187290fe509ec0b226a8949_5eacc87e-a211-4ba8-988f-ac17b9296d57.webp?v=1714705825","width":2000},{"alt":null,"id":23875534127203,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bf6ff79fa1d06ab24bb687b831a49d71fb6485_39db06a4-d56d-4d39-b664-6b78c3df8e43.webp?v=1714705827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bf6ff79fa1d06ab24bb687b831a49d71fb6485_39db06a4-d56d-4d39-b664-6b78c3df8e43.webp?v=1714705827","width":2000},{"alt":null,"id":23875534487651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880135008355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470630568035,"product_id":7407889678435,"position":10,"created_at":"2024-05-03T11:10:29+08:00","updated_at":"2024-05-03T11:10:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829","variant_ids":[41880135008355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ05","featured_media":{"alt":null,"id":23875534487651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880135008355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470630568035,"product_id":7407889678435,"position":10,"created_at":"2024-05-03T11:10:29+08:00","updated_at":"2024-05-03T11:10:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829","variant_ids":[41880135008355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ05","featured_media":{"alt":null,"id":23875534487651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b515fc84e805b9819cd68d744493a783620df9_6e43fe99-f15b-4a73-a4fd-1f1829594c40.webp?v=1714705829"}},"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: "停產" }