woothemes/woocommerce — Issue #404: Add 'blog_id' arg to the "add to cart" function
Author: anointed
Created: 2011-12-21 13:46:37+00:00
State: open

I had no problem using switch_to_blog() in order to bring over single product pages from my cart sub-domain to another sub-domain on my network install. Everything shows up exactly like I would expect.

However:
When clicking add to cart, the item is not added to the cart. My best guess as to why is because it is trying to add the product to the cart of the site showing the product and not the site from which I am pulling the switch_to_blog() from.

Request:
Can you add an argument to the functions to allow us to actually display products on other sub-domain blogs?

*I am totally guessing as to what the problem is, and I'm not even sure the above request would work. Either way, now that I have product pages on other sites, I would like to be able to add them to the cart.

thank you