$product = {"id":7408474390627,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 夏威夷系列-每天搞怪","handle":"iphone-12-mini-mod-nx-printable-yf06","description":null,"published_at":"2024-06-11T16:38:15+08:00","created_at":"2024-05-03T15:33:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41885892411491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371925091,"product_id":7408474390627,"position":9,"created_at":"2024-05-03T15:34:05+08:00","updated_at":"2024-05-03T15:34:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645","variant_ids":[41885892411491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF06","featured_media":{"alt":null,"id":23877288788067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd84a3616193c556bdba7e02570e49e1d7f2783_1b95f066-e4e6-477a-9364-b1ab175e4e6c.webp?v=1714721627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c3943292b06d3cdaf8f1e194e3fdbf3b84266a_c69cb572-d44c-4aad-8f01-74db6621e671.webp?v=1714721629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430c252bdb67175d2771eeaba0f45f47e137a6a0_bfde9e4f-67a6-4126-866d-8cfaa71c2b97.webp?v=1714721631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed921eee0f9c0966cce62d3aeb9d137b21b8658b_90e2774d-0d51-4b03-be9d-a3fb44fc12cf.webp?v=1714721633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47fac4e716759516d2d996e8e19fcdf3bfc37008_ba7317b5-264e-4253-86ed-840db52efe40.webp?v=1714721636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2ccc1ece4d859283666c0dbc05fa924dac33df_3d378b50-22d8-4588-9dfa-e9c6647fdded.webp?v=1714721638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c618e49e4e140addeb413adde9867e9cf76b1c_70b643bc-87f9-4b67-9c0b-610298d7121a.webp?v=1714721640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a2842854bd66784573c6e1b4bd8ab8b53c4aa9_8b94a30f-ce39-4549-85e7-6d8d01cdbaa2.webp?v=1714721643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06746d7b3bbbc687b54683fac6b91458e505d79_0cbbed8d-0b46-472a-9ca5-c50afd88e2aa.webp?v=1714721647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1ad80380f18ec9e305fa4ada49a35a262f223_be7fd103-a5c4-488a-b00b-7846bd3c3c0c.webp?v=1714721650"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd84a3616193c556bdba7e02570e49e1d7f2783_1b95f066-e4e6-477a-9364-b1ab175e4e6c.webp?v=1714721627","options":["color"],"media":[{"alt":null,"id":23877285118051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd84a3616193c556bdba7e02570e49e1d7f2783_1b95f066-e4e6-477a-9364-b1ab175e4e6c.webp?v=1714721627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd84a3616193c556bdba7e02570e49e1d7f2783_1b95f066-e4e6-477a-9364-b1ab175e4e6c.webp?v=1714721627","width":2000},{"alt":null,"id":23877285806179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c3943292b06d3cdaf8f1e194e3fdbf3b84266a_c69cb572-d44c-4aad-8f01-74db6621e671.webp?v=1714721629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c3943292b06d3cdaf8f1e194e3fdbf3b84266a_c69cb572-d44c-4aad-8f01-74db6621e671.webp?v=1714721629","width":2000},{"alt":null,"id":23877286133859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430c252bdb67175d2771eeaba0f45f47e137a6a0_bfde9e4f-67a6-4126-866d-8cfaa71c2b97.webp?v=1714721631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430c252bdb67175d2771eeaba0f45f47e137a6a0_bfde9e4f-67a6-4126-866d-8cfaa71c2b97.webp?v=1714721631","width":2000},{"alt":null,"id":23877286527075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed921eee0f9c0966cce62d3aeb9d137b21b8658b_90e2774d-0d51-4b03-be9d-a3fb44fc12cf.webp?v=1714721633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed921eee0f9c0966cce62d3aeb9d137b21b8658b_90e2774d-0d51-4b03-be9d-a3fb44fc12cf.webp?v=1714721633","width":2000},{"alt":null,"id":23877286887523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47fac4e716759516d2d996e8e19fcdf3bfc37008_ba7317b5-264e-4253-86ed-840db52efe40.webp?v=1714721636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47fac4e716759516d2d996e8e19fcdf3bfc37008_ba7317b5-264e-4253-86ed-840db52efe40.webp?v=1714721636","width":2000},{"alt":null,"id":23877287411811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2ccc1ece4d859283666c0dbc05fa924dac33df_3d378b50-22d8-4588-9dfa-e9c6647fdded.webp?v=1714721638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2ccc1ece4d859283666c0dbc05fa924dac33df_3d378b50-22d8-4588-9dfa-e9c6647fdded.webp?v=1714721638","width":2000},{"alt":null,"id":23877287772259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c618e49e4e140addeb413adde9867e9cf76b1c_70b643bc-87f9-4b67-9c0b-610298d7121a.webp?v=1714721640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c618e49e4e140addeb413adde9867e9cf76b1c_70b643bc-87f9-4b67-9c0b-610298d7121a.webp?v=1714721640","width":2000},{"alt":null,"id":23877288427619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a2842854bd66784573c6e1b4bd8ab8b53c4aa9_8b94a30f-ce39-4549-85e7-6d8d01cdbaa2.webp?v=1714721643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a2842854bd66784573c6e1b4bd8ab8b53c4aa9_8b94a30f-ce39-4549-85e7-6d8d01cdbaa2.webp?v=1714721643","width":2000},{"alt":null,"id":23877288788067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645","width":2000},{"alt":null,"id":23877289312355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06746d7b3bbbc687b54683fac6b91458e505d79_0cbbed8d-0b46-472a-9ca5-c50afd88e2aa.webp?v=1714721647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c06746d7b3bbbc687b54683fac6b91458e505d79_0cbbed8d-0b46-472a-9ca5-c50afd88e2aa.webp?v=1714721647","width":2000},{"alt":null,"id":23877289771107,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1ad80380f18ec9e305fa4ada49a35a262f223_be7fd103-a5c4-488a-b00b-7846bd3c3c0c.webp?v=1714721650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c1ad80380f18ec9e305fa4ada49a35a262f223_be7fd103-a5c4-488a-b00b-7846bd3c3c0c.webp?v=1714721650","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885892411491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371925091,"product_id":7408474390627,"position":9,"created_at":"2024-05-03T15:34:05+08:00","updated_at":"2024-05-03T15:34:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645","variant_ids":[41885892411491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF06","featured_media":{"alt":null,"id":23877288788067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885892411491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371925091,"product_id":7408474390627,"position":9,"created_at":"2024-05-03T15:34:05+08:00","updated_at":"2024-05-03T15:34:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645","variant_ids":[41885892411491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-YF06","featured_media":{"alt":null,"id":23877288788067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233be508b40ca550c98f1b4f7e7768aed8123470_334e6c53-b0e8-4c04-aa57-bb4b815839e8.webp?v=1714721645"}},"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: "停產" }