I'm using save and share cart in woocommerce site and I create a page to load all saved carts title since plugin creates a posttype and I load each saved cart using same url plugin used in a email template, the script I use is below

query_posts(array( 'post_type' => 'stored-carts','post_per','post_per_page'=>-1)); 

if ( have_posts() ) : while ( have_posts() ) : the_post(); 
get_retrieve_cart_url( $post->ID, $landing_page ); "> the_title();
by  echo $author = get_the_author();                               
endwhile; else: 

What I need is to show the cart title after a cart retrieval.I'd really appreciate if somebody can point me to a right direction.

Is it possible to save the link title on a session and echo it out in cart page if so please share the piece of code along with the answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.