$product = {"id":7411432226915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb49","description":null,"published_at":"2024-06-11T17:44:51+08:00","created_at":"2024-05-05T00:28:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41898821943395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480412471395,"product_id":7411432226915,"position":6,"created_at":"2024-05-05T00:29:00+08:00","updated_at":"2024-05-05T00:29:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140","variant_ids":[41898821943395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB49","featured_media":{"alt":null,"id":23885664354403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898822008931,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480414109795,"product_id":7411432226915,"position":9,"created_at":"2024-05-05T00:29:08+08:00","updated_at":"2024-05-05T00:29:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148","variant_ids":[41898822008931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB49","featured_media":{"alt":null,"id":23885665927267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898822238307,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480411979875,"product_id":7411432226915,"position":5,"created_at":"2024-05-05T00:28:57+08:00","updated_at":"2024-05-05T00:28:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137","variant_ids":[41898822238307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB49","featured_media":{"alt":null,"id":23885663633507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4f90bcbdb643cdbe93baec2e28cf2b124b3667_c949e878-7039-48de-a1e2-813cb408224c.webp?v=1714840127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd4924d6682a970b5dc47512cea6394c1e4dec27_d064c8f5-405d-4569-ba0f-aef3e43a133c.webp?v=1714840129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a50f7b49f2b8dbf82daf0f9b65ddbd137c25e27_327f8b5e-4cef-4ea7-b598-62baa865da90.webp?v=1714840132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0cae0772a935386323efcf319b9b15fec0b1f3_14049fe7-6720-49d7-aa13-eadb80d3e218.webp?v=1714840135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9649eca482e81cf9b396c7a0aa801ee5e1dd5cb8_48476d90-1b7b-448b-ad4c-01c8fb1e6a2c.webp?v=1714840143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431dc9824c6361b0e96b5eb19b086bd70b95969d_5d2e1201-d15b-4644-9268-17733b59092b.webp?v=1714840145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6775edcda2b06afebb25265c5af1cf8bda796_4c5c795f-0189-4b9b-8cb7-b868f2dce775.webp?v=1714840150"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4f90bcbdb643cdbe93baec2e28cf2b124b3667_c949e878-7039-48de-a1e2-813cb408224c.webp?v=1714840127","options":["color"],"media":[{"alt":null,"id":23885661438051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4f90bcbdb643cdbe93baec2e28cf2b124b3667_c949e878-7039-48de-a1e2-813cb408224c.webp?v=1714840127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4f90bcbdb643cdbe93baec2e28cf2b124b3667_c949e878-7039-48de-a1e2-813cb408224c.webp?v=1714840127","width":2000},{"alt":null,"id":23885661896803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd4924d6682a970b5dc47512cea6394c1e4dec27_d064c8f5-405d-4569-ba0f-aef3e43a133c.webp?v=1714840129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd4924d6682a970b5dc47512cea6394c1e4dec27_d064c8f5-405d-4569-ba0f-aef3e43a133c.webp?v=1714840129","width":2000},{"alt":null,"id":23885662322787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a50f7b49f2b8dbf82daf0f9b65ddbd137c25e27_327f8b5e-4cef-4ea7-b598-62baa865da90.webp?v=1714840132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a50f7b49f2b8dbf82daf0f9b65ddbd137c25e27_327f8b5e-4cef-4ea7-b598-62baa865da90.webp?v=1714840132","width":2000},{"alt":null,"id":23885663207523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0cae0772a935386323efcf319b9b15fec0b1f3_14049fe7-6720-49d7-aa13-eadb80d3e218.webp?v=1714840135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0cae0772a935386323efcf319b9b15fec0b1f3_14049fe7-6720-49d7-aa13-eadb80d3e218.webp?v=1714840135","width":2000},{"alt":null,"id":23885663633507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137","width":2000},{"alt":null,"id":23885664354403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140","width":2000},{"alt":null,"id":23885664780387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9649eca482e81cf9b396c7a0aa801ee5e1dd5cb8_48476d90-1b7b-448b-ad4c-01c8fb1e6a2c.webp?v=1714840143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9649eca482e81cf9b396c7a0aa801ee5e1dd5cb8_48476d90-1b7b-448b-ad4c-01c8fb1e6a2c.webp?v=1714840143","width":2000},{"alt":null,"id":23885665501283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431dc9824c6361b0e96b5eb19b086bd70b95969d_5d2e1201-d15b-4644-9268-17733b59092b.webp?v=1714840145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431dc9824c6361b0e96b5eb19b086bd70b95969d_5d2e1201-d15b-4644-9268-17733b59092b.webp?v=1714840145","width":2000},{"alt":null,"id":23885665927267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148","width":2000},{"alt":null,"id":23885666582627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6775edcda2b06afebb25265c5af1cf8bda796_4c5c795f-0189-4b9b-8cb7-b868f2dce775.webp?v=1714840150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6775edcda2b06afebb25265c5af1cf8bda796_4c5c795f-0189-4b9b-8cb7-b868f2dce775.webp?v=1714840150","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898821943395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480412471395,"product_id":7411432226915,"position":6,"created_at":"2024-05-05T00:29:00+08:00","updated_at":"2024-05-05T00:29:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140","variant_ids":[41898821943395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB49","featured_media":{"alt":null,"id":23885664354403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898822008931,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480414109795,"product_id":7411432226915,"position":9,"created_at":"2024-05-05T00:29:08+08:00","updated_at":"2024-05-05T00:29:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148","variant_ids":[41898822008931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB49","featured_media":{"alt":null,"id":23885665927267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17b292fee3619574894f30aa4e127993dea41b53_ca96fe57-8d78-4658-bbcc-38d611a5b16e.webp?v=1714840148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898822238307,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480411979875,"product_id":7411432226915,"position":5,"created_at":"2024-05-05T00:28:57+08:00","updated_at":"2024-05-05T00:28:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137","variant_ids":[41898822238307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB49","featured_media":{"alt":null,"id":23885663633507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec78942c9f4f173f71d98f620278b5c93b456331_d4db1bdd-20b1-4d31-8e15-74a9a66024f5.webp?v=1714840137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898821943395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31480412471395,"product_id":7411432226915,"position":6,"created_at":"2024-05-05T00:29:00+08:00","updated_at":"2024-05-05T00:29:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140","variant_ids":[41898821943395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB49","featured_media":{"alt":null,"id":23885664354403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6687a2f81432d5a3e3a3ddef19048d769bf0ce92_2f832e0a-cf87-4afc-a6f8-23c52738d62f.webp?v=1714840140"}},"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: "停產" }