在购物车页面而非结帐页面中显示其他信息 [英] Display additional information in cart page instead of checkout page

查看:118
本文介绍了在购物车页面而非结帐页面中显示其他信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 plugin woocommerce 创建了一个电子商务.
我需要在结帐前从用户获取一些信息,所以使用了WooCommerce Checkout Manager插件及其工作方式.

但这在结帐页面中显示了其他信息.我需要它将其显示在购物车页面中,以便用户在填写所需信息(如反馈信息)后继续进行结帐.

我如何编码使其显示在购物车页面而不是结帐页面?
任何帮助请

I created an eCommerce using the plugin woocommerce.
I need to get a few information from user before checkout, so used the WooCommerce Checkout Manager plugin and its working.

But this is displaying the additional information in checkout page.I need it to display it in cart page so that the user can proceed to checkout after filling the required informations like a feedback one.

How can i code it to display in cart page instead of checkout page?
Any help please

推荐答案

您将需要依赖以下woocommerce功能之一,具体取决于您希望内容在购物车上显示的位置:

You will need to hook into one of the following woocommerce functions depending on where you want the content to show on the cart:

woocommerce_after_cart
woocommerce_before_cart
woocommerce_before_cart_table
woocommerce_after_cart_table

我希望这会有所帮助,并为您指明正确的方向!

I hope this helps and puts you in the right direction!

这篇关于在购物车页面而非结帐页面中显示其他信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆