$product = {"id":7407834660963,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-每天搞怪","handle":"iphone-14-plus-mod-nx-printable-yf06","description":null,"published_at":"2024-06-11T16:24:09+08:00","created_at":"2024-05-03T10:59:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41879418601571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489632867,"product_id":7407834660963,"position":10,"created_at":"2024-05-03T10:59:40+08:00","updated_at":"2024-05-03T10:59:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180","variant_ids":[41879418601571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-每天搞怪 - 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-YF06","featured_media":{"alt":null,"id":23875393388643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae8ee5b535b67921a115ec02b1ebf045b0ee4c6_781ed299-7c0b-41e0-9dd8-3fd5a4c5d112.webp?v=1714705160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df2accee442bb258667355561ac884667324e6d_2cc1b87c-c113-4fd6-90d4-6adb6c7a1d72.webp?v=1714705162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd7a72a240ed03e11f7816b942647e5d6e86aca_773c6b8d-e6bd-40df-b107-3a72e6ae5f5e.webp?v=1714705164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d10e349ff13d6da6fb9a8307102c9884b2e0d9b_ebfd55f4-b66d-4486-aa2e-66799f0bf5fb.webp?v=1714705166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3abc49f24a1dfe77282904ad98da2530d87dc0_f2621739-61ef-4a9c-a030-0391f1354b24.webp?v=1714705169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9aa85372f5805512dbc185e6f647a7010e0401_97d05673-16f1-42e5-96e5-dfeeab6c50fc.webp?v=1714705171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a4ed658c50afd46ede3e2b2427adc5a187ee38_47521d84-8296-42f4-8cf5-86ca6f7db37c.webp?v=1714705174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1d514e164187c15e6f9105a67829df3dd45f6d_b87a361d-b148-48e1-8006-a5009ce67144.webp?v=1714705176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad4190611b1b28790508df3a44e6900c023f6e9_55df67ec-42cc-4247-903f-f639077f1b97.webp?v=1714705178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae8ee5b535b67921a115ec02b1ebf045b0ee4c6_781ed299-7c0b-41e0-9dd8-3fd5a4c5d112.webp?v=1714705160","options":["color"],"media":[{"alt":null,"id":23875389358179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae8ee5b535b67921a115ec02b1ebf045b0ee4c6_781ed299-7c0b-41e0-9dd8-3fd5a4c5d112.webp?v=1714705160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae8ee5b535b67921a115ec02b1ebf045b0ee4c6_781ed299-7c0b-41e0-9dd8-3fd5a4c5d112.webp?v=1714705160","width":2000},{"alt":null,"id":23875389751395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df2accee442bb258667355561ac884667324e6d_2cc1b87c-c113-4fd6-90d4-6adb6c7a1d72.webp?v=1714705162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df2accee442bb258667355561ac884667324e6d_2cc1b87c-c113-4fd6-90d4-6adb6c7a1d72.webp?v=1714705162","width":2000},{"alt":null,"id":23875390210147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd7a72a240ed03e11f7816b942647e5d6e86aca_773c6b8d-e6bd-40df-b107-3a72e6ae5f5e.webp?v=1714705164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd7a72a240ed03e11f7816b942647e5d6e86aca_773c6b8d-e6bd-40df-b107-3a72e6ae5f5e.webp?v=1714705164","width":2000},{"alt":null,"id":23875390505059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d10e349ff13d6da6fb9a8307102c9884b2e0d9b_ebfd55f4-b66d-4486-aa2e-66799f0bf5fb.webp?v=1714705166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d10e349ff13d6da6fb9a8307102c9884b2e0d9b_ebfd55f4-b66d-4486-aa2e-66799f0bf5fb.webp?v=1714705166","width":2000},{"alt":null,"id":23875390865507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3abc49f24a1dfe77282904ad98da2530d87dc0_f2621739-61ef-4a9c-a030-0391f1354b24.webp?v=1714705169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3abc49f24a1dfe77282904ad98da2530d87dc0_f2621739-61ef-4a9c-a030-0391f1354b24.webp?v=1714705169","width":2000},{"alt":null,"id":23875391946851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9aa85372f5805512dbc185e6f647a7010e0401_97d05673-16f1-42e5-96e5-dfeeab6c50fc.webp?v=1714705171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9aa85372f5805512dbc185e6f647a7010e0401_97d05673-16f1-42e5-96e5-dfeeab6c50fc.webp?v=1714705171","width":2000},{"alt":null,"id":23875392372835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a4ed658c50afd46ede3e2b2427adc5a187ee38_47521d84-8296-42f4-8cf5-86ca6f7db37c.webp?v=1714705174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a4ed658c50afd46ede3e2b2427adc5a187ee38_47521d84-8296-42f4-8cf5-86ca6f7db37c.webp?v=1714705174","width":2000},{"alt":null,"id":23875392733283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1d514e164187c15e6f9105a67829df3dd45f6d_b87a361d-b148-48e1-8006-a5009ce67144.webp?v=1714705176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1d514e164187c15e6f9105a67829df3dd45f6d_b87a361d-b148-48e1-8006-a5009ce67144.webp?v=1714705176","width":2000},{"alt":null,"id":23875393093731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad4190611b1b28790508df3a44e6900c023f6e9_55df67ec-42cc-4247-903f-f639077f1b97.webp?v=1714705178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad4190611b1b28790508df3a44e6900c023f6e9_55df67ec-42cc-4247-903f-f639077f1b97.webp?v=1714705178","width":2000},{"alt":null,"id":23875393388643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879418601571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489632867,"product_id":7407834660963,"position":10,"created_at":"2024-05-03T10:59:40+08:00","updated_at":"2024-05-03T10:59:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180","variant_ids":[41879418601571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-每天搞怪 - 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-YF06","featured_media":{"alt":null,"id":23875393388643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879418601571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489632867,"product_id":7407834660963,"position":10,"created_at":"2024-05-03T10:59:40+08:00","updated_at":"2024-05-03T10:59:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180","variant_ids":[41879418601571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 夏威夷系列-每天搞怪 - 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-YF06","featured_media":{"alt":null,"id":23875393388643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fc5d6e2dd41c6d70956a780a3ee1edc6690309_94453f10-0599-4d1c-a626-3678bbae7928.webp?v=1714705180"}},"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: "停產" }