Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在项目的产品页面上,如何?
我知道您可以显示有多少库存,但我如何显示已售出多少?
单程。在应用程序中记录您的所有订单。解析产品订单并更新应用程序中的计数器。渲染产品时,使用对 App 的回调来获取当前已售出的数量。另一种方法是,将元字段资源附加到每个带有计数的产品。然后,应用程序可以更新每次销售的计数,您只需使用 Liquid 呈现当前计数。