简体   繁体   中英

Change Woocmmerce Default Payment gateway Based on Add To Cart Button

在我的woocommerce单个产品页面上,我添加了一个重复的“添加到购物车”按钮,现在在单个产品页面中添加了两个“添加到购物车”按钮。如果有人单击第一个“添加到购物车”按钮并重定向到该页面,我们可以默认打开“第一付款网关”的付款选项吗?就像我希望某人单击第二个“添加到购物车”按钮并重定向到结帐页面一样,我们可以打开“第二付款网关”的付款选项作为默认

You can override checkout.js and achieve this.

Have a look here: How To Prevent Woocommerce from selecting default payment method on Checkout page?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM