Forum Replies Created

Viewing 1 replies (of 1 total)
  • @chee Studio

    Thanks for this, I have set up the redirect successfully for one product, how would I go about doing this for several products? Do I simply do this:

    foreach($order->get_items() as $item) {
    		$_product = get_product($item['product_id']);
    		if ($item['product_id']==154;155) {
                     wp_redirect('http://www.yoururl.com/your-thank-you-page');
    		}
    	}

    Or how do I do it?

Viewing 1 replies (of 1 total)