Link to home
Start Free TrialLog in
Avatar of steva
steva

asked on

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
Avatar of William Nettmann
William Nettmann
Flag of South Africa image

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.
Avatar of steva
steva

ASKER

Sorry, but didn't see anywhere to put in "Add to cart behaviour".

Steve
Weird!

WooCommerce settings, Products, Display - just above where you can set product image sizes. Do you see that on the page?
Avatar of steva

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of William Nettmann
William Nettmann
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial