Finding WooCommerce Options in the Settings Pages

The WooCommerce PHP code often references an option, like "woocommerce_cart_redirect_after_add" below:

      
if ( 'yes' === get_option( 'woocommerce_cart_redirect_after_add' ) ) {
		$return_to = apply_filters( 'woocommerce_continue_shopping_redirect', wp_get_referer() ? wp_get_referer() : home_url() );
		$message   = sprintf('<a href="%s" class="button wc-forward">%s</a> %s', $return_to, __( 'Continue Shopping', 'woocommerce' ), $added_text );
	} 

Open in new window


I assume this is something that can be set in the WordPress Dashboard somewhere under WooCommerce | Settings but I don't see anything that looks like it might do it. It seems like there should be a table somewhere that lists all the WooCommerce  options (things you can get with get_option()) and where they're set in the Dashboard. Does anyone know of a table like this?  Or does someone at least know where 'woocommerce_cart_redirect_after_add' is set.

Thanks for any help.
Steve
stevaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

William NettmannPHP Web DeveloperCommented:
Hi,

Look at http://example.com/wp-admin/admin.php?page=wc-settings&tab=products§ion=display for "Add to cart behaviour" - example.com is your domain.
0
stevaAuthor Commented:
Sorry, but didn't see anywhere to put in "Add to cart behaviour".

Steve
0
William NettmannPHP Web DeveloperCommented:
Weird!

WooCommerce settings, Products, Display - just above where you can set product image sizes. Do you see that on the page?
0
stevaAuthor Commented:
Got it!  (Too many long nights!)  

But how did you know that?  Is there a table somewhere that shows what options are set in the database for every option you can set in WooCommerce | Settings?

Thanks
0
William NettmannPHP Web DeveloperCommented:
I don't think there is a table as such, but there is documentation on the Woo site:

https://docs.woothemes.com/document/configuring-woocommerce-settings/

I just know where it is because I have set so many sites up. many long nights!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.