Save for later
Cart > Save for later > Save for later on cart items adds a Save for later link to each item on the cart page and in the mini cart. It moves the item from the cart to the shopper’s wishlist.
Requirements#
One of these wishlist plugins must be active:
- YITH WooCommerce Wishlist
- TI WooCommerce Wishlist
With neither active, the setting says No wishlist plugin is active, so the button stays hidden.
Guests need guest wishlists turned on in the wishlist plugin.
For developers#
Use your own wishlist with the nbwt_wishlist_provider and nbwt_wishlist_add filters:
add_filter( 'nbwt_wishlist_provider', function () {
return 'acme';
} );
add_filter( 'nbwt_wishlist_add', function ( $added, $product_id, $provider ) {
if ( 'acme' !== $provider ) {
return $added;
}
return acme_wishlist_add( $product_id );
}, 10, 3 );