$product = {"id":7416375083107,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 峇里島在看","handle":"iphone-8-mod-nx-printable-af06","description":null,"published_at":"2024-06-11T16:57:20+08:00","created_at":"2024-05-06T14:44:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41919054282851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491976200291,"product_id":7416375083107,"position":9,"created_at":"2024-05-06T14:45:10+08:00","updated_at":"2024-05-06T14:45:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911","variant_ids":[41919054282851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23897389564003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7447c885cd3931946f2a612c91bf000d3fa48da_7449b666-4ac7-49c2-bd83-ad9ce8ea6ba4.webp?v=1714977891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6322ed32e8ca8b5ece98977eaccedf5de419e2f1_74620d60-53b8-4257-a3a7-89c5a8839ef4.webp?v=1714977894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e486a892f2bf05d21d31b5e46db858980327cdb_2905f680-64e3-429f-a3e9-234afe568fc2.webp?v=1714977896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b222baf0f8f25121fb645f87931ac534c35b655f_17a76d8b-1597-41d8-8c1f-e2302bb6c871.webp?v=1714977898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f14a2ed892f957b7867321b6f8c1e16d4629e58_33e0c0a8-e79a-4ce3-8998-3eb992a83832.webp?v=1714977901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bbb36116ca79a81d2355da13c78bd9f8e7769d0_887d67af-c88a-470b-95d8-2f3ff1f3e606.webp?v=1714977904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c6d2fc8ca7082d969b666d7a66709e37826b1a_20d09f80-560c-4f9b-9c28-c9cb5879cfc6.webp?v=1714977906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb7edb42ee61e1b653dcc9ac950280a0544c245_7a8607e3-dc4a-4178-9d61-e1ca95aab3a4.webp?v=1714977908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df4fe9b93b50e58298506446ba22a1ca685c5993_360a2f1f-376d-4e39-8a99-c33a6cfab49c.webp?v=1714977913"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7447c885cd3931946f2a612c91bf000d3fa48da_7449b666-4ac7-49c2-bd83-ad9ce8ea6ba4.webp?v=1714977891","options":["color"],"media":[{"alt":null,"id":23897385271395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7447c885cd3931946f2a612c91bf000d3fa48da_7449b666-4ac7-49c2-bd83-ad9ce8ea6ba4.webp?v=1714977891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7447c885cd3931946f2a612c91bf000d3fa48da_7449b666-4ac7-49c2-bd83-ad9ce8ea6ba4.webp?v=1714977891","width":2000},{"alt":null,"id":23897386025059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6322ed32e8ca8b5ece98977eaccedf5de419e2f1_74620d60-53b8-4257-a3a7-89c5a8839ef4.webp?v=1714977894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6322ed32e8ca8b5ece98977eaccedf5de419e2f1_74620d60-53b8-4257-a3a7-89c5a8839ef4.webp?v=1714977894","width":2000},{"alt":null,"id":23897386582115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e486a892f2bf05d21d31b5e46db858980327cdb_2905f680-64e3-429f-a3e9-234afe568fc2.webp?v=1714977896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e486a892f2bf05d21d31b5e46db858980327cdb_2905f680-64e3-429f-a3e9-234afe568fc2.webp?v=1714977896","width":2000},{"alt":null,"id":23897387073635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b222baf0f8f25121fb645f87931ac534c35b655f_17a76d8b-1597-41d8-8c1f-e2302bb6c871.webp?v=1714977898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b222baf0f8f25121fb645f87931ac534c35b655f_17a76d8b-1597-41d8-8c1f-e2302bb6c871.webp?v=1714977898","width":2000},{"alt":null,"id":23897387565155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f14a2ed892f957b7867321b6f8c1e16d4629e58_33e0c0a8-e79a-4ce3-8998-3eb992a83832.webp?v=1714977901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f14a2ed892f957b7867321b6f8c1e16d4629e58_33e0c0a8-e79a-4ce3-8998-3eb992a83832.webp?v=1714977901","width":2000},{"alt":null,"id":23897388253283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bbb36116ca79a81d2355da13c78bd9f8e7769d0_887d67af-c88a-470b-95d8-2f3ff1f3e606.webp?v=1714977904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bbb36116ca79a81d2355da13c78bd9f8e7769d0_887d67af-c88a-470b-95d8-2f3ff1f3e606.webp?v=1714977904","width":2000},{"alt":null,"id":23897388712035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c6d2fc8ca7082d969b666d7a66709e37826b1a_20d09f80-560c-4f9b-9c28-c9cb5879cfc6.webp?v=1714977906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c6d2fc8ca7082d969b666d7a66709e37826b1a_20d09f80-560c-4f9b-9c28-c9cb5879cfc6.webp?v=1714977906","width":2000},{"alt":null,"id":23897389203555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb7edb42ee61e1b653dcc9ac950280a0544c245_7a8607e3-dc4a-4178-9d61-e1ca95aab3a4.webp?v=1714977908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccb7edb42ee61e1b653dcc9ac950280a0544c245_7a8607e3-dc4a-4178-9d61-e1ca95aab3a4.webp?v=1714977908","width":2000},{"alt":null,"id":23897389564003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911","width":2000},{"alt":null,"id":23897390055523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df4fe9b93b50e58298506446ba22a1ca685c5993_360a2f1f-376d-4e39-8a99-c33a6cfab49c.webp?v=1714977913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df4fe9b93b50e58298506446ba22a1ca685c5993_360a2f1f-376d-4e39-8a99-c33a6cfab49c.webp?v=1714977913","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919054282851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491976200291,"product_id":7416375083107,"position":9,"created_at":"2024-05-06T14:45:10+08:00","updated_at":"2024-05-06T14:45:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911","variant_ids":[41919054282851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23897389564003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919054282851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491976200291,"product_id":7416375083107,"position":9,"created_at":"2024-05-06T14:45:10+08:00","updated_at":"2024-05-06T14:45:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911","variant_ids":[41919054282851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23897389564003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68e29b1375fbb3d69464a109f6cdda6b6c8c15b0_81f21903-9d41-4cb2-b2d3-23f27ccb4659.webp?v=1714977911"}},"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: "停產" }