$product = {"id":4718624997475,"title":"iPhone 12 mini Mod NX - 邊框","handle":"iphone-12-mini-crashguard-nx","description":"\u003cmeta charset=\"utf-8\"\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cmeta charset=\"utf-8\"\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cspan\u003e1、CrashGuard NX與ModNX的飾條、按鈕皆可共用。\u003c\/span\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cstrong\u003e2、未附背板,\u003c\/strong\u003e\u003c\/span\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cstrong\u003e若需透明背板搭配,請選購ModNX系列。\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/files\/unnamed_large.png?v=1535958095\" alt=\"\" width=\"572\" height=\"356\"\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2020-10-07T10:40:40+08:00","created_at":"2020-10-07T10:40:57+08:00","vendor":"Rhinoshieldtaiwan","type":"CrashGuard NX","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","bundle-addition","crashguard","device-iPhone 12 mini","discountable-item","dropdownDevice-Apple iPhone 12 mini","member","quickbuy","refresh-2023","reseller","reseller-asus","reseller-crashguard-nx","Top50"],"price":60000,"price_min":60000,"price_max":60000,"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":33325575307363,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"CGN0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":16342471049315,"product_id":4718624997475,"position":7,"created_at":"2020-10-28T16:02:55+08:00","updated_at":"2021-09-02T17:19:08+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348","variant_ids":[33325575307363]},"available":true,"name":"iPhone 12 mini Mod NX - 邊框 - 黑色","public_title":"黑色","options":["黑色"],"price":60000,"weight":100,"compare_at_price":null,"inventory_quantity":-80,"inventory_management":null,"inventory_policy":"continue","barcode":"4710562419573","featured_media":{"alt":null,"id":8500423688291,"position":7,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-White-Bumper-White-Rim-White-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Yellow-Bumper-Yellow-Rim-Yellow-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Red-Bumper-Red-Rim-Red-Button_fe005b35-99fb-4ca2-90e3-c5c329560522.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Black-Bumper-Black-Rim-Black-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-BlushPink-Bumper-BlushPink-Rim-BlushPink-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Graphite-Bumper-Graphite-Rim-Graphite-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-PlatinumGray-Bumper-PlatinumGray-Rim-PlatinumGray-Button_ce8757b0-e9d0-4d5a-816d-915276e1315c.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Lavender-Bumper-Lavender-Rim-Lavender-Button_18e60fc7-a6df-4c96-8b9d-f8b761501228.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Navy_Blue-Rim-Navy_Blue-Bumper.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1630574348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minirim-12minib.png?v=1631343768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1756258300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12minip-12minirim-12minib.png?v=1756258301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1756258301"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-White-Bumper-White-Rim-White-Button.png?v=1630574348","options":["Color"],"media":[{"alt":null,"id":8500423983203,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-White-Bumper-White-Rim-White-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-White-Bumper-White-Rim-White-Button.png?v=1630574348","width":1999},{"alt":null,"id":8500424048739,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Yellow-Bumper-Yellow-Rim-Yellow-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Yellow-Bumper-Yellow-Rim-Yellow-Button.png?v=1630574348","width":1999},{"alt":null,"id":8624323133539,"position":3,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Red-Bumper-Red-Rim-Red-Button_fe005b35-99fb-4ca2-90e3-c5c329560522.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Red-Bumper-Red-Rim-Red-Button_fe005b35-99fb-4ca2-90e3-c5c329560522.png?v=1630574348","width":1999},{"alt":null,"id":8500423557219,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Black-Bumper-Black-Rim-Black-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Black-Bumper-Black-Rim-Black-Button.png?v=1630574348","width":1999},{"alt":null,"id":8500423622755,"position":5,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-BlushPink-Bumper-BlushPink-Rim-BlushPink-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-BlushPink-Bumper-BlushPink-Rim-BlushPink-Button.png?v=1630574348","width":1999},{"alt":null,"id":8500423753827,"position":6,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Graphite-Bumper-Graphite-Rim-Graphite-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Graphite-Bumper-Graphite-Rim-Graphite-Button.png?v=1630574348","width":1999},{"alt":null,"id":8500423688291,"position":7,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348","width":1999},{"alt":null,"id":8624323166307,"position":8,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-PlatinumGray-Bumper-PlatinumGray-Rim-PlatinumGray-Button_ce8757b0-e9d0-4d5a-816d-915276e1315c.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-PlatinumGray-Bumper-PlatinumGray-Rim-PlatinumGray-Button_ce8757b0-e9d0-4d5a-816d-915276e1315c.png?v=1630574348","width":1999},{"alt":null,"id":8624323199075,"position":9,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Lavender-Bumper-Lavender-Rim-Lavender-Button_18e60fc7-a6df-4c96-8b9d-f8b761501228.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-Lavender-Bumper-Lavender-Rim-Lavender-Button_18e60fc7-a6df-4c96-8b9d-f8b761501228.png?v=1630574348","width":1999},{"alt":null,"id":8588510298211,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Navy_Blue-Rim-Navy_Blue-Bumper.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Navy_Blue-Rim-Navy_Blue-Bumper.png?v=1630574348","width":1999},{"alt":null,"id":8588512690275,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1630574348","width":1999},{"alt":null,"id":20821801369699,"position":12,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1630574348"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1630574348","width":1999},{"alt":null,"id":20845529497699,"position":13,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minirim-12minib.png?v=1631343768"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minirim-12minib.png?v=1631343768","width":1999},{"alt":null,"id":25962638803043,"position":14,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1756258300"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12mini-Black-NPB01184K8T-Bumper-NX01184K8E-Rim_07236d4a-2f90-4ffc-ae5e-d8ee4c42b90b.png?v=1756258300","width":1999},{"alt":null,"id":25962639032419,"position":15,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12minip-12minirim-12minib.png?v=1756258301"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12minip-12minirim-12minib.png?v=1756258301","width":1999},{"alt":null,"id":25962639196259,"position":16,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1756258301"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12_mini_Black-Mint_Green-Rim-Mint_Green-Bumper.png?v=1756258301","width":1999}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cmeta charset=\"utf-8\"\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cmeta charset=\"utf-8\"\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cspan\u003e1、CrashGuard NX與ModNX的飾條、按鈕皆可共用。\u003c\/span\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cstrong\u003e2、未附背板,\u003c\/strong\u003e\u003c\/span\u003e\u003cspan style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"\u003e\u003cstrong\u003e若需透明背板搭配,請選購ModNX系列。\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/files\/unnamed_large.png?v=1535958095\" alt=\"\" width=\"572\" height=\"356\"\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33325575307363,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"CGN0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":16342471049315,"product_id":4718624997475,"position":7,"created_at":"2020-10-28T16:02:55+08:00","updated_at":"2021-09-02T17:19:08+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348","variant_ids":[33325575307363]},"available":true,"name":"iPhone 12 mini Mod NX - 邊框 - 黑色","public_title":"黑色","options":["黑色"],"price":60000,"weight":100,"compare_at_price":null,"inventory_quantity":-80,"inventory_management":null,"inventory_policy":"continue","barcode":"4710562419573","featured_media":{"alt":null,"id":8500423688291,"position":7,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33325575307363,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"CGN0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":16342471049315,"product_id":4718624997475,"position":7,"created_at":"2020-10-28T16:02:55+08:00","updated_at":"2021-09-02T17:19:08+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348","variant_ids":[33325575307363]},"available":true,"name":"iPhone 12 mini Mod NX - 邊框 - 黑色","public_title":"黑色","options":["黑色"],"price":60000,"weight":100,"compare_at_price":null,"inventory_quantity":-80,"inventory_management":null,"inventory_policy":"continue","barcode":"4710562419573","featured_media":{"alt":null,"id":8500423688291,"position":7,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12mini_Black-CamoGreen-Bumper-CamoGreen-Rim-CamoGreen-Button.png?v=1630574348"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }