$product = {"id":7408516595811,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(大堡礁)","handle":"iphone-12-pro-max-mod-nx-printable-af11","description":null,"published_at":"2024-06-11T16:39:26+08:00","created_at":"2024-05-03T15:42:03+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 12 pro max","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":41886375641187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472480354403,"product_id":7408516595811,"position":6,"created_at":"2024-05-03T15:42:18+08:00","updated_at":"2024-05-03T15:42:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138","variant_ids":[41886375641187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF11","featured_media":{"alt":null,"id":23877397610595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f03cdb461e72ab5fcab615247c08da6599fcc52_c79bda73-935c-49c0-94d4-03a172b60b6c.webp?v=1714722126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1cd96bbb17da19cba84af02188fe0521204ed5_90c83687-e934-41c9-b7c3-6068e64e4e43.webp?v=1714722128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67808ccf59969dcec455312dfcc8c9ad497f326_ee0d085b-215c-4dc0-a502-f394f8bd961b.webp?v=1714722131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959a99e79f77eaff7e7dab5ab47fe8aa45146bab_ba238b8c-c077-4783-a2bf-2b2c2fc3d089.webp?v=1714722133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8914646efdb96770fee6b4cd92971099b37536b_dc7a71d8-5e93-43af-9496-a2c2be4ebffd.webp?v=1714722136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50ea7fde2bce6722db30bc301f90b1dfd4dc020_2eb19b84-05ed-4bb0-b447-3c7d50c94aaf.webp?v=1714722141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df61812a4cba90e92637c15883152a8f95bc2_df2caa10-c1dd-4a26-84c8-6649ae14f42c.webp?v=1714722143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22275b9ab213f318e427fbf35dc23970814a5736_7d6109cf-ba16-434b-9dd6-37845afcdb60.webp?v=1714722146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab88b4f85d97003c68f829ccbe81dfc5e8e841e_e66d5be6-a888-457a-ba6e-e847fe807c7b.webp?v=1714722148"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f03cdb461e72ab5fcab615247c08da6599fcc52_c79bda73-935c-49c0-94d4-03a172b60b6c.webp?v=1714722126","options":["color"],"media":[{"alt":null,"id":23877394923619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f03cdb461e72ab5fcab615247c08da6599fcc52_c79bda73-935c-49c0-94d4-03a172b60b6c.webp?v=1714722126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f03cdb461e72ab5fcab615247c08da6599fcc52_c79bda73-935c-49c0-94d4-03a172b60b6c.webp?v=1714722126","width":2000},{"alt":null,"id":23877395382371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1cd96bbb17da19cba84af02188fe0521204ed5_90c83687-e934-41c9-b7c3-6068e64e4e43.webp?v=1714722128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1cd96bbb17da19cba84af02188fe0521204ed5_90c83687-e934-41c9-b7c3-6068e64e4e43.webp?v=1714722128","width":2000},{"alt":null,"id":23877396070499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67808ccf59969dcec455312dfcc8c9ad497f326_ee0d085b-215c-4dc0-a502-f394f8bd961b.webp?v=1714722131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67808ccf59969dcec455312dfcc8c9ad497f326_ee0d085b-215c-4dc0-a502-f394f8bd961b.webp?v=1714722131","width":2000},{"alt":null,"id":23877396496483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959a99e79f77eaff7e7dab5ab47fe8aa45146bab_ba238b8c-c077-4783-a2bf-2b2c2fc3d089.webp?v=1714722133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959a99e79f77eaff7e7dab5ab47fe8aa45146bab_ba238b8c-c077-4783-a2bf-2b2c2fc3d089.webp?v=1714722133","width":2000},{"alt":null,"id":23877397020771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8914646efdb96770fee6b4cd92971099b37536b_dc7a71d8-5e93-43af-9496-a2c2be4ebffd.webp?v=1714722136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8914646efdb96770fee6b4cd92971099b37536b_dc7a71d8-5e93-43af-9496-a2c2be4ebffd.webp?v=1714722136","width":2000},{"alt":null,"id":23877397610595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138","width":2000},{"alt":null,"id":23877398134883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50ea7fde2bce6722db30bc301f90b1dfd4dc020_2eb19b84-05ed-4bb0-b447-3c7d50c94aaf.webp?v=1714722141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50ea7fde2bce6722db30bc301f90b1dfd4dc020_2eb19b84-05ed-4bb0-b447-3c7d50c94aaf.webp?v=1714722141","width":2000},{"alt":null,"id":23877398724707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df61812a4cba90e92637c15883152a8f95bc2_df2caa10-c1dd-4a26-84c8-6649ae14f42c.webp?v=1714722143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df61812a4cba90e92637c15883152a8f95bc2_df2caa10-c1dd-4a26-84c8-6649ae14f42c.webp?v=1714722143","width":2000},{"alt":null,"id":23877399314531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22275b9ab213f318e427fbf35dc23970814a5736_7d6109cf-ba16-434b-9dd6-37845afcdb60.webp?v=1714722146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22275b9ab213f318e427fbf35dc23970814a5736_7d6109cf-ba16-434b-9dd6-37845afcdb60.webp?v=1714722146","width":2000},{"alt":null,"id":23877399937123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab88b4f85d97003c68f829ccbe81dfc5e8e841e_e66d5be6-a888-457a-ba6e-e847fe807c7b.webp?v=1714722148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab88b4f85d97003c68f829ccbe81dfc5e8e841e_e66d5be6-a888-457a-ba6e-e847fe807c7b.webp?v=1714722148","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886375641187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472480354403,"product_id":7408516595811,"position":6,"created_at":"2024-05-03T15:42:18+08:00","updated_at":"2024-05-03T15:42:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138","variant_ids":[41886375641187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF11","featured_media":{"alt":null,"id":23877397610595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886375641187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472480354403,"product_id":7408516595811,"position":6,"created_at":"2024-05-03T15:42:18+08:00","updated_at":"2024-05-03T15:42:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138","variant_ids":[41886375641187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-AF11","featured_media":{"alt":null,"id":23877397610595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a8929c8ef327a39f9cf3449287eeb1eb8ef71_d5f1d735-7a32-442d-bfa2-d883e1b51a2f.webp?v=1714722138"}},"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: "停產" }