Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muti-DB woocommemrce multi-site conflicts #5

Open
mrbm opened this issue Mar 9, 2016 · 0 comments
Open

Muti-DB woocommemrce multi-site conflicts #5

mrbm opened this issue Mar 9, 2016 · 0 comments

Comments

@mrbm
Copy link

mrbm commented Mar 9, 2016

Seeing more issues with multi-db and woocommerce...have no idea why.

in the file: includes/class-wc-order-factory.php the function:

public function get_order( $the_order = false )

is failing because the multi-db plugin is not select the correct database when attempting to use:

get_post( $the_order ):

My solution was to modify the get_order function by manually selecting the right databas associated with the blog id and then manually performing the get_post functionality...pain in the butt, however it worked.

Now another more complicated problem has happened:

in the file: includes/abstracts/abstract-wc-order.php
public function set_total()

Is failing because the wrong database is being used when attempting to use the wordpress function:
update_post_meta( $this->id, $key, $amount );

Woocommerce is a very popular plugin, any thoughts you might have regarding why this is happening? Appreciate it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant