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.
嗨提前谢谢,如何通过使用钩子在woocommerce中添加到购物车时更改产品价格?任何建议
它包括五个步骤。
1)在添加到购物车时存储额外的产品价格(在会话中)。
2)在 woocommerce 执行购物车总操作时添加额外价格
3)在购物车页面中呈现更改后的产品价格
4)在结帐订单审查部分呈现更改的产品价格
5) 最后在订单行项目中添加元数据。