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:
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
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 );
}
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
Thanks for any help.
Steve
ASKER
Sorry, but didn't see anywhere to put in "Add to cart behaviour".
Steve
Steve
Weird!
WooCommerce settings, Products, Display - just above where you can set product image sizes. Do you see that on the page?
WooCommerce settings, Products, Display - just above where you can set product image sizes. Do you see that on the page?
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.