WooCommerce在页面上的多个PayPal按钮
我目前正在使用当前的PayPal插件 https:///wordpress.org/wordpress.org/plugins.orgins.plugins/woocommerce-paypal-woocommerce-paypal - 付款/
我想在一页上的不同产品下获得多个“立即购买”。
如下面的屏幕截图所示,我添加了每种产品的短代码(例如[product_page ID =“ 2546”)。第一个PayPal按钮显示正常,但是后面的任何一个都不显示。
是否有某种方法可以覆盖此问题或其他解决这个问题的方法?
I am currently using the current PayPal plugin https://wordpress.org/plugins/woocommerce-paypal-payments/
I would like to get multiple 'buy it now' under different products on one page.
As seen in the screenshot below, I have added the short-code for each product ([product_page id="2546"] for example). The first PayPal button shows up fine, but any after do not.
Is there some sort of way of overriding this or another solution to this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从技术上讲,可以在同一页面上显示多个独立的PayPal按钮(通过给它们唯一的容器ID来渲染每个按钮),但是WooCommerce的插件并非设计用于工作或使用这种方式。
在产品旁边显示PayPal按钮仅旨在与 1产品一起使用 。如果要在页面上显示多个产品,则期望在它们旁边没有贝宝按钮,而是让买家使用添加到购物车功能,然后在查看购物车页面上使用PayPal按钮。
It is technically possible to make multiple independent PayPal buttons show on the same page (by giving them unique container ids to render each button in), but WooCommerce's plugin is not designed to work or be used this way.
Showing a PayPal button alongside a product is only intended to be used with 1 product per page. If multiple products are to be shown on a page, the expectation is to not have a PayPal button next to them and instead have buyer make use of the Add to Cart functionality followed by a PayPal button on the view cart page.