WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Multiple references for the same payment gateway (2 posts)

  1. altoprofilo
    Member
    Posted 1 year ago #

    I would know if It's possible to provide and show different references to the same form of payment depending on whether the outgoing object belongs to a company rather than another company that are selling on the same site.

    Thanx.

    http://wordpress.org/extend/plugins/woocommerce/

  2. bheadrick
    Member
    Posted 1 year ago #

    it's doable, but it's not something you can just configure with the out of the box interface. Basically, you have to duplicate that payment gateway class inside a separate plugin, give it a different class name (or possibly extend the existing class), and change the option_name value(s).

    After that, you need to use a filter to programatically disable the payment method you don't want used based on what is in the cart. Also, you definitely can't do split payments, so you'd need to control what can be added to the cart together...

    If your market is such that one is not likely to buy more than one thing, or at least from more than 1 vendor, then this might be viable, but otherwise, not so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic