$product = {"id":7407735144547,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 美食派對","handle":"iphone-14-plus-mod-nx-printable-yb11","description":null,"published_at":"2024-06-11T16:22:34+08:00","created_at":"2024-05-03T10:46:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41878218539107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31470295220323,"product_id":7407735144547,"position":7,"created_at":"2024-05-03T10:46:33+08:00","updated_at":"2024-05-03T10:46:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393","variant_ids":[41878218539107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 美食派對 - 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":"NPB0126124-YB11","featured_media":{"alt":null,"id":23875198386275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78befe00c42c8a68df347188089e83fc9deb0264_37beb8b7-1190-44ca-82d9-6e3297c60021.webp?v=1714704378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f4d31f3138252fb45e4353f106ba786934c038_f96271f7-25d9-46e8-9fb1-086b8b86dcce.webp?v=1714704381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77e071c7171cef451cf00e83e5fc00ce18ba13d_879736b4-a502-42fd-b5f7-593a504d1eb6.webp?v=1714704383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7358272a20dbd38c10033517f7d04e1d7fe02d15_cd6eb96b-108b-47bf-a056-2529b8502253.webp?v=1714704386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0d2e2c1f0148e8975d20ee4eae2c5b323edbe08_5bb9fdf6-bbbf-4b99-900a-e36c67e8ed80.webp?v=1714704388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7256c9dcf4b931ebe0ed15f3f9d677b6f44846e2_d5578efb-aaeb-4a54-8b21-21ac902a8e1a.webp?v=1714704391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776c62c699972c1cd163e97a7bedf53e6703255d_6cabf795-39fc-4aea-81de-db61328e1b1c.webp?v=1714704395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908474d7e62b3483f2a3dd0b54b859e2d7222db_12a71485-ead7-401c-92bd-df25ec025716.webp?v=1714704398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66262a48667a437d8b4f6ae4998933d4737cef19_fe9db747-e8d1-495c-94cd-55ea90862ee1.webp?v=1714704401"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78befe00c42c8a68df347188089e83fc9deb0264_37beb8b7-1190-44ca-82d9-6e3297c60021.webp?v=1714704378","options":["color"],"media":[{"alt":null,"id":23875193995363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78befe00c42c8a68df347188089e83fc9deb0264_37beb8b7-1190-44ca-82d9-6e3297c60021.webp?v=1714704378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78befe00c42c8a68df347188089e83fc9deb0264_37beb8b7-1190-44ca-82d9-6e3297c60021.webp?v=1714704378","width":2000},{"alt":null,"id":23875194650723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f4d31f3138252fb45e4353f106ba786934c038_f96271f7-25d9-46e8-9fb1-086b8b86dcce.webp?v=1714704381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f4d31f3138252fb45e4353f106ba786934c038_f96271f7-25d9-46e8-9fb1-086b8b86dcce.webp?v=1714704381","width":2000},{"alt":null,"id":23875195961443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77e071c7171cef451cf00e83e5fc00ce18ba13d_879736b4-a502-42fd-b5f7-593a504d1eb6.webp?v=1714704383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77e071c7171cef451cf00e83e5fc00ce18ba13d_879736b4-a502-42fd-b5f7-593a504d1eb6.webp?v=1714704383","width":2000},{"alt":null,"id":23875196354659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7358272a20dbd38c10033517f7d04e1d7fe02d15_cd6eb96b-108b-47bf-a056-2529b8502253.webp?v=1714704386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7358272a20dbd38c10033517f7d04e1d7fe02d15_cd6eb96b-108b-47bf-a056-2529b8502253.webp?v=1714704386","width":2000},{"alt":null,"id":23875196911715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0d2e2c1f0148e8975d20ee4eae2c5b323edbe08_5bb9fdf6-bbbf-4b99-900a-e36c67e8ed80.webp?v=1714704388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0d2e2c1f0148e8975d20ee4eae2c5b323edbe08_5bb9fdf6-bbbf-4b99-900a-e36c67e8ed80.webp?v=1714704388","width":2000},{"alt":null,"id":23875197861987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7256c9dcf4b931ebe0ed15f3f9d677b6f44846e2_d5578efb-aaeb-4a54-8b21-21ac902a8e1a.webp?v=1714704391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7256c9dcf4b931ebe0ed15f3f9d677b6f44846e2_d5578efb-aaeb-4a54-8b21-21ac902a8e1a.webp?v=1714704391","width":2000},{"alt":null,"id":23875198386275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393","width":2000},{"alt":null,"id":23875198910563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776c62c699972c1cd163e97a7bedf53e6703255d_6cabf795-39fc-4aea-81de-db61328e1b1c.webp?v=1714704395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776c62c699972c1cd163e97a7bedf53e6703255d_6cabf795-39fc-4aea-81de-db61328e1b1c.webp?v=1714704395","width":2000},{"alt":null,"id":23875199664227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908474d7e62b3483f2a3dd0b54b859e2d7222db_12a71485-ead7-401c-92bd-df25ec025716.webp?v=1714704398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908474d7e62b3483f2a3dd0b54b859e2d7222db_12a71485-ead7-401c-92bd-df25ec025716.webp?v=1714704398","width":2000},{"alt":null,"id":23875200188515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66262a48667a437d8b4f6ae4998933d4737cef19_fe9db747-e8d1-495c-94cd-55ea90862ee1.webp?v=1714704401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66262a48667a437d8b4f6ae4998933d4737cef19_fe9db747-e8d1-495c-94cd-55ea90862ee1.webp?v=1714704401","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878218539107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31470295220323,"product_id":7407735144547,"position":7,"created_at":"2024-05-03T10:46:33+08:00","updated_at":"2024-05-03T10:46:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393","variant_ids":[41878218539107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 美食派對 - 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":"NPB0126124-YB11","featured_media":{"alt":null,"id":23875198386275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878218539107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31470295220323,"product_id":7407735144547,"position":7,"created_at":"2024-05-03T10:46:33+08:00","updated_at":"2024-05-03T10:46:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393","variant_ids":[41878218539107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 美食派對 - 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":"NPB0126124-YB11","featured_media":{"alt":null,"id":23875198386275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b74d2262e7810bb15b66aa17f28f5f277d3036b_61c34c4c-9b4d-406a-b3b9-a1c29bea4cb8.webp?v=1714704393"}},"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: "停產" }