Search
 
SCRIPT & CODE EXAMPLE
 

PHP

change woocommerce return to shop link

/**
 * Changes the redirect URL for the Return To Shop button in the cart.
 *
 * @return string
 */
function wc_empty_cart_redirect_url() {
	return 'http://mywebsite.com/sample-page/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
Comment

woocommerce return to shop custom url

/**
 * @snippet       Change return to shop link, send to homepage instead
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=603
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_filter( 'woocommerce_return_to_shop_redirect', 'bbloomer_change_return_shop_url' );
 
function bbloomer_change_return_shop_url() {
return home_url();
}
Comment

PREVIOUS NEXT
Code Example
Php :: codeigniter order by random 
Php :: replace accent php 
Php :: PHP executable not found. Install PHP and add it to your PATH or set the php.executablePath setting in linux 
Php :: send password reset link code wp 
Php :: difference of two dates in seconds php 
Php :: assign php array into javascript 
Php :: eloquent get distinct 
Php :: wordpress get post by id 
Php :: laravel check if request wantsjson 
Php :: php insert hyphen into spaces in string 
Php :: Format and show date PHP 
Php :: php ternary operator 
Php :: php shutdown function 
Php :: get taxonomies for custom post type 
Php :: magento 2 print php error 
Php :: return response not found laravel api response 
Php :: capitalize php 
Php :: How can I get current controller and current controller action name in yii2 
Php :: if object or array in php 
Php :: Undefined index: HTTP_HOST 
Php :: laravel limit foreach 
Php :: laravel model casts 
Php :: symfony server start port 
Php :: php weekdays 
Php :: <?php echo do_shortcode(); ? with variable 
Php :: carbon laravel d m y to y-m-d 
Php :: php rsa encryption 
Php :: model json laravel accessor to convert to array 
Php :: laravel menu active class 
Php :: wp redirect 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =