$product = {"id":7416363679843,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 右看看","handle":"iphone-8-mod-nx-printable-iv04","description":null,"published_at":"2024-06-11T16:57:01+08:00","created_at":"2024-05-06T14:42:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41918927601763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947462755,"product_id":7416363679843,"position":8,"created_at":"2024-05-06T14:42:53+08:00","updated_at":"2024-05-06T14:42:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773","variant_ids":[41918927601763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 右看看 - 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":"NPB0105424-IV04","featured_media":{"alt":null,"id":23897360531555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85d2b962fb487e4b9060ebdc8c787fbc62a74020_71c984ca-22b9-4578-9c78-c21affde2163.webp?v=1714977756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9b445c1653b66ee92fdce97615a0717787d765_ed88585e-24ec-4b26-b57f-951dbd2722e0.webp?v=1714977758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ce92107fac76688ec5d2ba9519721837376e8e_1060c6d7-9d33-4856-9a65-b66630762264.webp?v=1714977761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3726992f82011664ef58839485a5bc6fd4722ee4_96fc3999-de69-4457-bf03-3bc17b7a4f79.webp?v=1714977763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88868daa0f7b4fa9e8468f196591a6de05f9328_138230e7-9119-4ec4-9445-29180944c43f.webp?v=1714977765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83030b6ced765d4288e2bc00e4131048ed3702ab_747c5cc0-35e3-4dda-9902-54ce983d9ca9.webp?v=1714977768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027270cc06dc0f0a4d703f69a1a9850397401cb7_c0aded42-d446-43d1-883c-353027c9345e.webp?v=1714977771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021a7b718e4f757908b93f502b088beeac589ae_cf1ddcbe-a007-4f85-825c-b7f02ea2bbc8.webp?v=1714977775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b447604c097ec45ab3ad39dd9448fda8bb2c7f_ee5db227-7663-4ca0-953c-d3dbc3c5a880.webp?v=1714977778"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85d2b962fb487e4b9060ebdc8c787fbc62a74020_71c984ca-22b9-4578-9c78-c21affde2163.webp?v=1714977756","options":["color"],"media":[{"alt":null,"id":23897356468323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85d2b962fb487e4b9060ebdc8c787fbc62a74020_71c984ca-22b9-4578-9c78-c21affde2163.webp?v=1714977756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85d2b962fb487e4b9060ebdc8c787fbc62a74020_71c984ca-22b9-4578-9c78-c21affde2163.webp?v=1714977756","width":2000},{"alt":null,"id":23897356927075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9b445c1653b66ee92fdce97615a0717787d765_ed88585e-24ec-4b26-b57f-951dbd2722e0.webp?v=1714977758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9b445c1653b66ee92fdce97615a0717787d765_ed88585e-24ec-4b26-b57f-951dbd2722e0.webp?v=1714977758","width":2000},{"alt":null,"id":23897357549667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ce92107fac76688ec5d2ba9519721837376e8e_1060c6d7-9d33-4856-9a65-b66630762264.webp?v=1714977761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ce92107fac76688ec5d2ba9519721837376e8e_1060c6d7-9d33-4856-9a65-b66630762264.webp?v=1714977761","width":2000},{"alt":null,"id":23897358041187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3726992f82011664ef58839485a5bc6fd4722ee4_96fc3999-de69-4457-bf03-3bc17b7a4f79.webp?v=1714977763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3726992f82011664ef58839485a5bc6fd4722ee4_96fc3999-de69-4457-bf03-3bc17b7a4f79.webp?v=1714977763","width":2000},{"alt":null,"id":23897358467171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88868daa0f7b4fa9e8468f196591a6de05f9328_138230e7-9119-4ec4-9445-29180944c43f.webp?v=1714977765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88868daa0f7b4fa9e8468f196591a6de05f9328_138230e7-9119-4ec4-9445-29180944c43f.webp?v=1714977765","width":2000},{"alt":null,"id":23897359220835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83030b6ced765d4288e2bc00e4131048ed3702ab_747c5cc0-35e3-4dda-9902-54ce983d9ca9.webp?v=1714977768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83030b6ced765d4288e2bc00e4131048ed3702ab_747c5cc0-35e3-4dda-9902-54ce983d9ca9.webp?v=1714977768","width":2000},{"alt":null,"id":23897359908963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027270cc06dc0f0a4d703f69a1a9850397401cb7_c0aded42-d446-43d1-883c-353027c9345e.webp?v=1714977771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027270cc06dc0f0a4d703f69a1a9850397401cb7_c0aded42-d446-43d1-883c-353027c9345e.webp?v=1714977771","width":2000},{"alt":null,"id":23897360531555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773","width":2000},{"alt":null,"id":23897360924771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021a7b718e4f757908b93f502b088beeac589ae_cf1ddcbe-a007-4f85-825c-b7f02ea2bbc8.webp?v=1714977775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4021a7b718e4f757908b93f502b088beeac589ae_cf1ddcbe-a007-4f85-825c-b7f02ea2bbc8.webp?v=1714977775","width":2000},{"alt":null,"id":23897361383523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b447604c097ec45ab3ad39dd9448fda8bb2c7f_ee5db227-7663-4ca0-953c-d3dbc3c5a880.webp?v=1714977778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b447604c097ec45ab3ad39dd9448fda8bb2c7f_ee5db227-7663-4ca0-953c-d3dbc3c5a880.webp?v=1714977778","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918927601763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947462755,"product_id":7416363679843,"position":8,"created_at":"2024-05-06T14:42:53+08:00","updated_at":"2024-05-06T14:42:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773","variant_ids":[41918927601763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 右看看 - 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":"NPB0105424-IV04","featured_media":{"alt":null,"id":23897360531555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918927601763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947462755,"product_id":7416363679843,"position":8,"created_at":"2024-05-06T14:42:53+08:00","updated_at":"2024-05-06T14:42:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773","variant_ids":[41918927601763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 右看看 - 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":"NPB0105424-IV04","featured_media":{"alt":null,"id":23897360531555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac44a974e3e33aa7aba1b3d4f91c8f83e99fab3d_9a41fcf4-eef7-4692-925f-a3675805d3c5.webp?v=1714977773"}},"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: "停產" }