$product = {"id":7411323437155,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-14-plus-mod-nx-magsafe-printable-fz04","description":null,"published_at":"2024-06-11T17:41:50+08:00","created_at":"2024-05-05T00:07:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897439756387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480141611107,"product_id":7411323437155,"position":7,"created_at":"2024-05-05T00:07:52+08:00","updated_at":"2024-05-05T00:07:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872","variant_ids":[41897439756387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FZ04","featured_media":{"alt":null,"id":23885392511075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a6f219ecefb0c8e08d98ce1f2f84ca468c13e4_d664cbfd-feb6-427b-adfc-07f54a3a9204.webp?v=1714838858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80af6c0593106573d5bee463b82fb15f6b019d0c_95c1bb30-b21d-4cd1-8afe-8af69380d1cf.webp?v=1714838860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7ae432b494c5ad4e76e3c07af26057645e275a_8a5ba0e0-75b6-495a-8dfb-49658751a55b.webp?v=1714838863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19df124003c40cc1a676f2d6616b83e3fa6608c9_c1d30dc4-0aa1-4092-91e6-dc8526082d77.webp?v=1714838865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60644a63862b7214b6e39ff63f83e4d853af4df_a5465874-16b4-4fe2-ad34-6088d0f464d4.webp?v=1714838867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a681933eaa8d4708ace5a9731847d1b4332350ea_8416d4fa-95ec-49b8-9502-e428dc17262b.webp?v=1714838870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb507a12181cadacc2a30232b023f7130d318f56_83d11056-b81c-4f05-a901-8ed114253528.webp?v=1714838874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3520bd9a9fdb4f603f55771a6d6360788b6fc6_82d54a23-7371-4c44-8882-49b2b80e0698.webp?v=1714838876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea49f1a94bebb28076ea4a1e2b585531749d13_89ad651f-457b-4b99-b7d7-2117d493f385.webp?v=1714838879"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a6f219ecefb0c8e08d98ce1f2f84ca468c13e4_d664cbfd-feb6-427b-adfc-07f54a3a9204.webp?v=1714838858","options":["color"],"media":[{"alt":null,"id":23885390250083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a6f219ecefb0c8e08d98ce1f2f84ca468c13e4_d664cbfd-feb6-427b-adfc-07f54a3a9204.webp?v=1714838858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a6f219ecefb0c8e08d98ce1f2f84ca468c13e4_d664cbfd-feb6-427b-adfc-07f54a3a9204.webp?v=1714838858","width":2000},{"alt":null,"id":23885390741603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80af6c0593106573d5bee463b82fb15f6b019d0c_95c1bb30-b21d-4cd1-8afe-8af69380d1cf.webp?v=1714838860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80af6c0593106573d5bee463b82fb15f6b019d0c_95c1bb30-b21d-4cd1-8afe-8af69380d1cf.webp?v=1714838860","width":2000},{"alt":null,"id":23885391036515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7ae432b494c5ad4e76e3c07af26057645e275a_8a5ba0e0-75b6-495a-8dfb-49658751a55b.webp?v=1714838863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7ae432b494c5ad4e76e3c07af26057645e275a_8a5ba0e0-75b6-495a-8dfb-49658751a55b.webp?v=1714838863","width":2000},{"alt":null,"id":23885391331427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19df124003c40cc1a676f2d6616b83e3fa6608c9_c1d30dc4-0aa1-4092-91e6-dc8526082d77.webp?v=1714838865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19df124003c40cc1a676f2d6616b83e3fa6608c9_c1d30dc4-0aa1-4092-91e6-dc8526082d77.webp?v=1714838865","width":2000},{"alt":null,"id":23885391691875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60644a63862b7214b6e39ff63f83e4d853af4df_a5465874-16b4-4fe2-ad34-6088d0f464d4.webp?v=1714838867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60644a63862b7214b6e39ff63f83e4d853af4df_a5465874-16b4-4fe2-ad34-6088d0f464d4.webp?v=1714838867","width":2000},{"alt":null,"id":23885392052323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a681933eaa8d4708ace5a9731847d1b4332350ea_8416d4fa-95ec-49b8-9502-e428dc17262b.webp?v=1714838870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a681933eaa8d4708ace5a9731847d1b4332350ea_8416d4fa-95ec-49b8-9502-e428dc17262b.webp?v=1714838870","width":2000},{"alt":null,"id":23885392511075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872","width":2000},{"alt":null,"id":23885393002595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb507a12181cadacc2a30232b023f7130d318f56_83d11056-b81c-4f05-a901-8ed114253528.webp?v=1714838874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb507a12181cadacc2a30232b023f7130d318f56_83d11056-b81c-4f05-a901-8ed114253528.webp?v=1714838874","width":2000},{"alt":null,"id":23885393330275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3520bd9a9fdb4f603f55771a6d6360788b6fc6_82d54a23-7371-4c44-8882-49b2b80e0698.webp?v=1714838876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3520bd9a9fdb4f603f55771a6d6360788b6fc6_82d54a23-7371-4c44-8882-49b2b80e0698.webp?v=1714838876","width":2000},{"alt":null,"id":23885393952867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea49f1a94bebb28076ea4a1e2b585531749d13_89ad651f-457b-4b99-b7d7-2117d493f385.webp?v=1714838879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea49f1a94bebb28076ea4a1e2b585531749d13_89ad651f-457b-4b99-b7d7-2117d493f385.webp?v=1714838879","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897439756387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480141611107,"product_id":7411323437155,"position":7,"created_at":"2024-05-05T00:07:52+08:00","updated_at":"2024-05-05T00:07:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872","variant_ids":[41897439756387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FZ04","featured_media":{"alt":null,"id":23885392511075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897439756387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480141611107,"product_id":7411323437155,"position":7,"created_at":"2024-05-05T00:07:52+08:00","updated_at":"2024-05-05T00:07:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872","variant_ids":[41897439756387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FZ04","featured_media":{"alt":null,"id":23885392511075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d6f0acacff7407356ec58a30a47b38c2b5bdc_fe2dff9e-c639-4138-ad0d-3d0a64415857.webp?v=1714838872"}},"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: "停產" }