How to use WooCommerce without a Products Page

Chris Lema

As I’ve been working on the Elegant PURL plugin site, I decided I wanted to sell premium versions of the plugin. The lite version would still be free over at but I wanted two versions available on the site. That meant setting up a little bit of e-commerce which didn’t frighten me because I knew I was going to use WooCommerce. The challenge I did have, however, was that the standard WooCommerce approach defaults initial routing to the /shop sub-directory and that would display the classic Products Page – which, for my needs, was useless. After all, my product definition page as you can see is a pricing grid.

No Need For a Grid

Not every e-commerce solution is going to be sold off a products grid. If you’re in retail you will like it, but what if you’re selling software. What if you’re selling a single product, with a few variations. Do you want those variations handled in a drop down like a t-shirt size? Not likely. So in this case, I wanted a pricing grid. That pricing grid looks pretty good because I used a plugin called CSS3 Web Pricing Tables Grids For WordPress, which you can find on CodeCanyon for $15. Sure, I could have coded it myself but for $15, I most certainly couldn’t have coded it in 6 minutes. So I bought it and filled in some of the fields and was done in no time.

Step One: WooCommerce Settings

One of the first things I did in the WooCommerce settings was select the option that would take users to the shopping cart after putting something into their cart. This was critical because I wanted people to go from the pricing grid to the shopping cart, and this setting let me do it. While there I also turned off shipping, tax, and determined which payment gateways I would support (in my case it was Stripe).

Step Two: Add Products

In this case, I didn’t have to enter products as much as product variants. But the issue is that for each column in my pricing grid, I was going to need a button that would put that version (with a unique name) into the shopping cart. So I went into WooCommerce Products and added the two product versions I’d be selling.

Step Three: Putting Items into the Cart

Because that products page has all the “add to cart” buttons on it, it was a perfect place to grab the urls for each product. These urls went into my pricing grid at the bottom, for the url of the ‘buy now’ buttons. And because the setting in WooCommerce directs people to their cart after the item is selected, the expected experience would be perfect. I tested it and it worked.

If you’re looking for how to change the “add to cart” behavior, check out this newer post.

Problem One: The Empty Cart

But everything wasn’t perfect once I deleted the product from the cart. I was then left with an empty cart. And the empty cart has a button that says something like “continue shopping” but it takes people back to the products page. The page I’m trying to get rid of. So that meant finding out where to make the adjustment, and the empty cart is displayed via the logic of /templates/cart/empty.php. So that’s where I went.

And that’s where I found the code that needed to be changed. Look for the text, ‘woocommerce_get_page_id(‘shop’)’ because that’s the code that Woo is using to to into the settings and look for your shopping page. I left the shopping page, but overwrote this line completely to route it to my pricing page. Now people would be redirected to the pricing page when they wanted to continue to shop.

NOTE: There may be other ways to solve this, but this instance of WooCommerce is only going to support this product on this site, so I didn’t need any solutions that were more complicated.

Problem Two: The Cart Widget

The second issue came when I put the cart widget in the sidebar. It’s a great little widget but it wants to send people to the product page for each product in the cart, and I wasn’t going to have any of that! So it was time to adjust the woocommerce code again. And again, it’s a really simple tweak, if you’re doing what I was doing.  This time the code is in /widgets/widget-cart.php.  As you read the code, you’ll look for this line:

echo ‘<li><a href=”‘.get_permalink($cart_item[‘product_id’]).'”>’;

That’s the line that puts the url for each product into the link of the listed products in the cart. And that means it’s a line I want to hard code to my pricing page. So where it puts in the ‘get_permalink’, I made the change to the /pricing page again. Pretty fast and simple.

Last Issue: The Non-Empty Cart

I thought I was done. I was pretty happy with the results. And then I kept testing and found that when I put items into the cart, the products were taking users back to their product page (if they clicked on the link). Oh oh. I love WooCommerce but it seemed hell bent on focusing on the product list/product detail page paradigm and I didn’t want that for this site. So up came Coda2 (my IDE on a mac) and I went back into /templates/cart/cart.php and started reviewing the code.

On the page, you’d need to look for this comment, ‘<– Product Name –>’ to know you’re in the right place. Once there, you’ll see that WooCommerce is basically building the code for the cart’s contents. It’s already handled the remove icon, the thumbnail image, and now it’s time to put the name of the product in place (with it’s url). So that’s where you look to make a change. And it comes in the second parameter of the string it’s building. Look for esc_url and you’ve found it. Inside that parameter there’s a call to get_permalink, and inside that, a call to apply a filter. All that  can go. Instead, inside the esc_url(), I put (and you have to use single quotes here), ‘‘ and it was all done.

NOTE: The site isn’t selling yet, because I have to bind the SSL certificate before I can take it out of test mode. But it’s coming soon!

Why I Love WooCommerce

You would think that with all the above changes I might have something to complain about with WooCommerce, but it’s completely the opposite. WooCommerce is so cleanly written, so easily understood, that I could make these changes in virtually no time at all. Most of the commerce solutions for WordPress have similar challenges in that they’re coded to solve one or two kinds of commerce – but trust me, none of them can get it all perfect. That’s not the issue. The issue is how well you can modify the code, in isolated places, so that you can have it do what you want. And in the case of WooCommerce, it wins the prize!

Want a few other Tweaks?

Here are two articles you might like:

What About You?

Have you used a commerce plugin for WordPress that you like? How have you customized it?

Powered by the Rainmaker Platform

The Rainmaker Platform by Copyblogger Media is the complete website solution for building your own online marketing and sales platform. In short, it makes the technology part of running an online business simple so that online marketers and business owners can focus on building audiences and growing businesses.

Start your free 14-day trial

Join more than 5,000 others

My posts. Your inbox. Beautiful.


  1. Awesome, I’ve been using WooCommerce more and more. I wish there were a few more hooks to get into but besides that, lots of great stuff.

  2. Hi Chris Lema,
    in woo commerce plugin i want to change URL  of product name in cart page so can you please help me?  now it redirect to the shop product page and i dont want this. i use pricing table as u did.but in cart page when i click on product name than it redirect to that product page.can u please help me?

    • chrislema says:

       @kalpesh Like I wrote above, the code is in /widgets/widget-cart.php – so that’s the file you have to open. Then search for the text I highlighted above so that you can change it to your pricing page.

  3. SwithDrawn says:

    Maybe I’m missing something, as I’m not seeing any redirect option in Woocommerce to take people to the cart automatically. There is one that applies only to the single product pages, which is not what I want – I’m assuming you’re doing something different, as my add to cart buttons do not redirect. Can you elaborate? 

  4. joshvida says:

    Chris, any ideas on how I might create a pass through cross-sell page using pretty much the same exact setup you’re using?  When my customers choose an item from the pricing table, I’d like the item to get added to the cart, but I’d like them to go to a pass through page to view the different upgrades available, based on the item they chose.  Do you see any way to accomplish this using woocommerce?  I know WP eStore can do it, but it’s not as pretty as woo.  Or perhaps a different shopping cart?

    • chrislema says:

       @joshvida If you change the button url to point to the details page instead of adding it to cart, it will go to that detail page where all the options, add on options included, are displayed. Have you tried that?

      • joshvida says:

        @chrislema I think I’ve figured out a way to accomplish this by using the Gravity Forms plug-in. I’ll be able to take the customer through a 2 or 3 step process where they add the main product, then choose the type of upgrades they want in steps 2 and 3.

  5. AmeliaZhang says:

    Hi Chris! Thank you for this page, I was so surprised I was able to find something regarding this topic. Life saver! How did you grab the url from the add to cart button in step 3? I’m a newbie, thanks for the advice!

  6. Hi Chris! I’m (trying) building a woocommerce category shop page in a restaurant style menu, with products listed without image (already solved) and add to cart on the end of the each line (row)
    Is that possible? I tried your way of doing a separate page with the buttons url, great idea, but it doesn’t have a “live” functionality of the shopping cart widget .
    Thanks a lot if you can help me.

  7. Hello Chris!I was wondering if you can help me with a question cause I am newbie.. I am trying to create a eshop with woocommerce. What I have done till now is to diplay in the shop page the categories. Each category links to the products which are under this category but in another page. I would like this to happen at the same page where the categories are. Each time you select a category you will see the products of this category next to the categories list. Hope you understood what I mean and can help me! :-) thank u!

  8. Dude this is EXACTLY what I was looking for! Literally, every issue you addressed with WooCommerce is what I was trying to fix on my site but didn’t know how to! Thanks!!!!!

  9. Wait. So where is the “Look for the text, ‘woocommerce_get_page_id(‘shop’)’ ” located exactly? Thanks!

    • In the latest versions, you’re going to want to look in /woocommerce (the plugin directory / templates/ and find the related files there (like /cart/cart.php and /cart/empty.php and /cart/mini-cart.php).

  10. Regarding the Cart Widget php, it doesn’t have the line you mentioned. It now says this:

    woo_widget_cssclass = ‘widget_shopping_cart’;
    $this->woo_widget_description = __( “Display the user’s Cart in the sidebar.”, ‘woocommerce’ );
    $this->woo_widget_idbase = ‘woocommerce_widget_cart’;
    $this->woo_widget_name = __( ‘WooCommerce Cart’, ‘woocommerce’ );

    /* Widget settings. */
    $widget_ops = array( ‘classname’ => $this->woo_widget_cssclass, ‘description’ => $this->woo_widget_description );

    /* Create the widget. */
    $this->WP_Widget( ‘shopping_cart’, $this->woo_widget_name, $widget_ops );

    * widget function.
    * @see WP_Widget
    * @access public
    * @param array $args
    * @param array $instance
    * @return void
    function widget( $args, $instance ) {
    global $woocommerce;

    extract( $args );

    if ( is_cart() || is_checkout() ) return;

    $title = apply_filters(‘widget_title’, empty( $instance[‘title’] ) ? __(‘Cart’, ‘woocommerce’) : $instance[‘title’], $instance, $this->id_base );
    $hide_if_empty = empty( $instance[‘hide_if_empty’] ) ? 0 : 1;

    echo $before_widget;

    if ( $title )
    echo $before_title . $title . $after_title;

    $woocommerce->mfunc_wrapper( ‘woocommerce_mini_cart()’, ‘woocommerce_mini_cart’, array( ‘list_class’ => $hide_if_empty ? ‘hide_cart_widget_if_empty’ : ” ) );

    echo $after_widget;

    if ( $hide_if_empty && sizeof( $woocommerce->cart->get_cart() ) == 0 ) {
    $woocommerce->add_inline_js( ”
    jQuery(‘body’).bind(‘adding_to_cart’, function(){
    ” );

    * update function.
    * @see WP_Widget->update
    * @access public
    * @param array $new_instance
    * @param array $old_instance
    * @return array
    function update( $new_instance, $old_instance ) {
    $instance[‘title’] = strip_tags( stripslashes( $new_instance[‘title’] ) );
    $instance[‘hide_if_empty’] = empty( $new_instance[‘hide_if_empty’] ) ? 0 : 1;
    return $instance;

    * form function.
    * @see WP_Widget->form
    * @access public
    * @param array $instance
    * @return void
    function form( $instance ) {
    $hide_if_empty = empty( $instance[‘hide_if_empty’] ) ? 0 : 1;
    <label for="get_field_id(‘title’); ?>”>
    <input type="text" class="widefat" id="get_field_id(‘title’) ); ?>” name=”get_field_name(‘title’) ); ?>” value=”” />

    <input type="checkbox" class="checkbox" id="get_field_id(‘hide_if_empty’) ); ?>” name=”get_field_name(‘hide_if_empty’) ); ?>” />
    <label for="get_field_id(‘hide_if_empty’); ?>”>


  11. Hi Chris,

    Regarding redirecting/removing the product links in the cart widget, I can not find the get_permalink line in /widgets/widget-cart.php. I’m using version and it looks like the functionality has been moved to the templates/cart/mini-cart.php file. Made the changes there and it works.

    Furthermore I think it would be wise to add that any changed file is best stored in yourtheme/woocommerce/cart/

    Thanks, Bryan

    • Yes, now, your best approach (and it’s been updated in some of my other articles) is simply to grab the pages from /plugins/woocommerce/tempates/cart and put the ones you need (with overrides) into /themes/your-theme/woocommerce/cart/.

  12. Oh, and then of course there is the Checkout – Order Received – Thank You page where the product link needs to be removed too!


  13. WooCommerce has definitely come a long way since its first release. This is great overview for some common foxes within WooCommerce. We just updated PressTrends ( to include support for WooCommerce, thus bringing benchmarks and suggestions on how to improve your store.

  14. Really great information – as always.

    Perhaps someone here can help. I am running Gravity Forms 1.6.7 on Woocommerce using MyStile (free) theme. When I add a new simple product and input a variable pricing form created in gravity forms, I get a SUBMIT button but no add to cart button on the front end of the product page. So I tried to add a regular price for the product page under the standard woocommerce pricing field and this activated the add to cart button, BUT, now my page shows 2 prices (variable price from gravity forms and another woocommerce price – which doesn’t update with the variable data).

    Any ideas how I can get the two to sync up? I tried hidden-total in the custom CSS of the product field in forms but that didn’t do it. THANKS!

    • Just know that when you use variable pricing, the add to cart button is (by default) hidden and not displayed until other selections are made (the variables).

      It sounds like you are trying to use variable pricing (as part of the native WooCommerce) as well as a GravityForm add-on which may be causing a conflict. Try using just one or the other.

  15. Chris,
    How did you solve the problem of when a product is added to the cart and then re-added from the pricing table you get redirected either to the shop grid or to the single product page?
    Is there a way for the “You already have this item in your cart.” error message to be placed onto the pricing table page and therefore remove the “shop” and “single product” pages from the formula?


  16. I am trying to get a auto redirect towards WP_Cart to happen as soon as a client “adds to cart” one of our classes that are located on the left.

    Most of my clients buy a product, pay for it right away so I dont need to really have them keep shopping or anything.

    I have tried inputting this code in to my function.php of my theme with no luck when I wanted them to go to their checkout directly.

    function woocommerce_go_to_cart_action(){
    if ( empty( $_REQUEST[‘add-to-cart’] ) || sizeof($woocommerce->cart->get_cart())==0) )
    return; wp_safe_redirect( $woocommerce->cart->get_cart_url() );

    Any ideas on how I could get it to work?
    1. I tried the checkbox method on the catalog page and it did not work.
    2. does the fact I use product categories make a difference?
    3. I am inputting this in to my functions.php any other better way to do this?

  17. Hi Chris,
    Thanks for the guide, appreciate it so much! So I followed all your instructions and everything work great, but when I enabled cross-sell I came accross a fourth issue.. in the cart page, the recommended product links in the cross-sell section still redirect to the product page. I couldn’t find the template file to fix that, could you help me with this?
    Also do you by chance know any idea on how to display 4 cross-sell products instead of default 2? Thanks a lot!


  18. Hey Chris,

    On “Last Issue: The Non-Empty Cart” I want to be able to link different items to different pages, since I am selling different products. For instance, I’m selling videos in different genres, so if the person clicks the item on the cart i want to be able to redirect them to the particular genre page where that item is located. This might be a very complex thing to do but any suggestions will help. Thanks a lot!

  19. Hey Chris, really great stuff about customizing woocommerce! Your articles have been incredibly beneficial as this is my first time messing with woo (and e-commerce). Everything seems to work great, but a question: Is there a way to hide the actual shop URL (and some other unnecessary pages)? You can still access this page if you go to Setting the pages to private in WP still allows anonymous users to find the page.

    I’m wondering what the solution may be for this. I guess redirects in .htaccess might be the best bet, but I was wondering if you had some other ideas.

  20. Hi Chris.
    I was wondering how you managed to display a single variable product with all its variations on a page? I have tried this, but when I use the shortcode [product id=””] it just shows part of the product info and adds a button to click to see more. What I want is for the product to behave like it does on a single product page, only on the homepage. It seems this is what you have managed to do.

  21. Hey Chris,

    Thanks for a great article. How do you solve the problem of if an item is already in the cart and you click on your add to cart button on the grid, it still goes to the single product page?

    • I solved it. Just add


      to your template for your grid page or whatever page you are using for a product listing.

      • priscila gonzaga says:

        hi dougwo,
        I was just searching for something like that: would this be a way of disabling the acess to single products page to the whole website? could you please explain it a little more?

        I’m trying to build a page where people can shop direct from catalog to cart page, no need for more details. It would be great to disable the single products pages completely…

        the site is:

  22. I am trying to use my own custom Shop page for woocommerce with a unique name “myshopxyz”, for instance. I want anyone who lands on the default woocommerce “shop” page to be redirected to the “myshopxyz” page instead, which will show just the categories for my store, and no products. I figured out to use the shortcode for categories on “myshopxyz” but how do I execute the redirect. My usual redirect functions on cpanel will not work.

  23. Hi ! This is a great solution, but it sill sends me to the cart page “woocommerce_cart”.

    Is it possible to send clients directly from “buy now” button to “woocommerce_checkout” page ?

    please help 😀

  24. Hi Chris. Thank you for this post. It has been VERY useful to me…
    However I think the code of the widget has changed as I am not able to do the changes that you suggest. And through trial and error have not been able to figure it out. Any help would be greatly appreciated.

    Thank you!

  25. Where is the code to get a “empty cart” button !?

    I don’t have any !!!

  26. Is it possible to put product description and variations on shop page? If it is possible, how to do it?

  27. AWESOME!

    I nearly got nuts before finding your blog post, and I could follow your instruction fairly well yet I´m stuck in the 2nd problem.
    Can you please explain what changes you made to the line you mentioned above before hardcoding it to the buttons of your pricing table?

    Cheers Chris!

    • Instead of using product variations, I just created two products. So I went into WooCommerce, went into Products, and created two of them. Each of these was now available with it’s own url. Those are the urls I used with the buttons.

  28. Thank you a lot for your time and effort buddy!

  29. Thanks so much Chris for the WooCommerce tips on creating a custom cart button and how to hide the shop and product pages. I’m using it for a client’s site so the visitor clicks from a product image on a landing page, to the cart and hiding the shop like you did.

    I’ve always gone by the fewer clicks = better conversions theory. I think every extra page customers have to click through and every distracting link that takes them away from the checkout lowers conversions. So to the landing page and off to the checkout it is… thanks again for the great useful info.

  30. This is great for only digital downloads. I have a website that sells software with variations of digital downloads and physical products. You can easily get the link to add the product of just digital downloads, but I can’t figure out how to get the product link for both digital download and physical for the same product. I want to create landing pages specific to each product and have my customer be able to simply add the product to the cart from this page. This doesn’t seem possible when you have variations on one product.

    Do you understand my problem and know a solution to fix this? Basically I cannot figure out how to get the link that sends the product straight to the cart because I have variations where the customer can choose instant download or physical. Sorry if this sounds confusing but it’s the only way I can attempt to describe it. Thanks in advance.

  31. Sher Ali says:

    Is it possible to make a shopping page like with woocommerce?

  32. you are the greatest, in these two days i am searching for the plugin that can integrates with woocommerce.. now you are giving this solution and its free.. I know this is simple to you but for me non techie people it is really stressful to find this answer..

  33. Hi, Nice post.

    I run a woocommerce store too and wondered if you could help me with something.

    We want to display an image at the top of each product page just under the title (special offers, pricing charts & discount vouchers etc). As its the template file and I dont want the same image to show on every product I was thinking I could name the image I want to show the same as the product name and then add something to the template that tells it to get the product title and display an image from a folder with the same name.

    Is this possible?


  34. Have you had chance to change the way woo’s variable subscriptions work. Currently, they work as a “form.” I have just start researching how to customize them.

  35. Hi Chris,
    This tricks worked like a charm!!! Thank you for this great article.
    You spoke about Continue shopping in the empty cart which worked fine. However, it doesn’t work with the cart is full. Continue shopping seems to be taking to the last product page. How did you get around with that. Any help would be appreciated. Thank you!

  36. Hi Chris,

    How to restrict the number of products in the cart to one…
    I want to empty the cart every time a product is added to the cart. So that only one product will be there in the cart… Please help me on this.

  37. Hi Chris

    gem of a post, its a real time saver.

    Few things have really changed since the post, wondered how could you change the referrer ” Continue Shopping” to Pricing Table instead of “Shop” in the Thank You page.

    Again, its an amazing stuff that you have put out there and that too for free.


  38. Thanks Chris for a great article,

    To change the redirect from an empty cart to ‘shop’, I just changed my Shop Base Page in settings > pages > Shop Base Page

  39. Hi Chris, please a need your help. A change server and the add to cart buttom is every hidden for variable products. Do you know what can be? Thanks!

    • It is hidden on purpose until you select the factor that dictates price. If your variables drive price, it will hide the buy button. It’s the way it’s coded.

  40. We wanted to create a buy now button too, and since we develop WooCommerce extensions anyway, we built a new plugin that does the job of adding a product to cart, and taking user directly to checkout / payment page. The plugin figures out the “shortest path to payment” for current user and pre-selects options for faster checkout.

    @Chris: The plugin does not (intentionally) solve all quirks for people selling only a few products (yet)… Like the cart page or widget. But it still makes the process a lot easier!

  41. Hey Chris,

    One thing you overlooked, and i’m looking for a fix for, is the fact that your /shop page still exists and your customers have a small chance to find the funky Shop page.

    If you add a product to your cart then remove it, the customer is left with a link to return to the Shop. One click and the customer is looking at your funky, lost Shop page.

    This shop base page should have a way to override the default product archive.

    I thought you might want to know about that link. Still looking for a fix.

  42. Great article, but I still have one question:

    I have 3 products (1 main and 2 linked that will be suggested when viewing the cart). But I can’t get Woo to jump right to my main product when a user just types in the domain? He will be taken to the shop (which I don’t want to show), and not directly to my product.

    Since my product is exactly that, and not a page, I can’t tell WP to use it as frontpage…


    • Jon, not really a solution for what you’re asking but a work-around. This will work for products without options. Create a regular page for the product, go to the product page and use Firebug or whatever browser you use developer’s tools or look at the source to copy the add to cart button html code. Hard code the add to cart button for your product into the WordPress page.

  43. Great post Chris – I’m a WordPress and Woo amateur, but followed this and got it all to work. One extra thing I fund though. After a purchase is made, if the customer goes back in to review their order, the product links on the order go to the unwanted product pages. Any help where to find the code to fix would be very gratefully received!

    • Right. I’ve worked out that its the view_order and order_received pages that populate with the products, and those product still link back to the Woocommerce product pages (not my custom pages).

      Anyone any idea where to find those pages and the code that does that – and how to either fix the link, or turn off the product link?

      Many thanks – then I will be dancing a jig of joy!

  44. Hi Chris, You write some amazing content for Woo and lately I’m super thankful for that. I have a question. Have you seen a plugin floating around out there somewhere that allows you to turn Ecommerce off for some of the products while keeping it one for others?

    I noticed that Woo has a plugin similar to this, but It don’t have a demo.

    Your thoughts would be appreciated.


  45. pushpendra says:

    hi.My question is i added a product in variable mode..after that i paste a short code on particular page where i wanna show my product..but problem is that a select option button occurs in this page after click on this it goes onto my product page. i wanna that both variation product should show on my page without select option button

  46. Great article, with interesting tips.
    There is probably something I missed, here is my problem :
    I have installed Woocommerce and it works fine.
    For some adwords actions, We have landing pages.
    I simply would like the following :
    In the landing pages, when people click on “Purchase”, I would like the product to be added to the cart and people directly move to the cart page. Does someone have an idea how to do that ? Many thanks in advance.

  47. Great article man! Love your suggestions for running WooCommerce :)

  48. Hi, I love this article and it has helped me a number of times..

    However, since the last WC update I am having trouble with the last section: The Non empty cart, changing the product url to my own.

    Mine has always looked slightly different to what is described above but up until now have been able to get this to work.

    Could someone please explain to me exactly what to delete and where to paste my custom url.

    is_visible() )
    echo apply_filters( ‘woocommerce_cart_item_name’, $_product->get_title(), $cart_item, $cart_item_key );
    echo apply_filters( ‘woocommerce_cart_item_name’, sprintf( ‘%s‘, $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key );

    I have tried all kinds of cominations but cannot for the life of me figure out what is going on. If I delete to many params I get the error ‘not enough params’, and if I change e.g. href= removing %s just leaves me with my ugly url and not the porduct name.

    Previously I managed to remove the link completly and just the the product name text, but cannot get this to work any more.

    I am coming over from ASP.Net and so should really get up to speed with PHP, its just finding the time to get stuck in to it!! :)

    Your help will be very much appreciated. Thanks

  49. Hello is there anyone who have solution for the woo-commerce in add to cart functionality to add more custom variable in cart ?

  50. I have one question about WooC. How to put one product on 2 pages. I have one page for all pruducts and one for only t-shirts. Could someone explain.

  51. Great article! However, since woocommerce 2.1 the code has been rebuild, these fixes dont apply anymore.. Any updates on how to do it correctly with the newer version would be very much appericiated!

  52. Hi Chris,

    Is there any alternate solution for selling products without a cart on a website, please let me know if there is any automated product calculator to be fixed in an online store rather than a cart


  53. Marshall Goldsmith says:

    hi i am making an e-commerce site using woo commerce. i want to add customised field where in i can ask for user link to Facebook account near the product item. which is reflected in checkout as well as wp dashboardso how can i add it? can u tell? you can mail me too

  54. I don’t code. I have a “Page Links To” plugin. I eliminated all product pages and use pricing tables. I simply did a different WordPress page (where ever you really want ppl to go/be). I don’t like the product pages. I designed my own with pricing tables.

    I did “Page Link To” on the product page in Woocommerce. I changed the URL page addy to that page name.

    Change the URL page name in the pricing table.

    I did a “Page Link To” for the shop page also.

    No one ever sees or is directed to the Woocommerce Product/Shop pages.

    All set with no coding in 5 minutes.

  55. I’m working on print gallery. The products are divided into 2 categories, stand a lone and series. The stand alone has only 1 product image, but the series has many related items shown as the product gallery. The problem is that the client wants to add each of the item in the product gallery to the cart as well not only the featured products of the series. Would be really appreciate for your help :)

  56. How to get value from a product page using gravity form for e.g (billing_address) to woocommerce checkout page directly as guest user without login.

  57. Thanks Chris for good post.

  58. Thank you! This is huge. Such a great help.

  59. Mary Smith says:

    How do I get rid of the cart link under the search box? I have taken away all other options other than the ($0.00 – 0 items and the cart icon).

  60. deeveedee says:

    @chrislema Chris – great post. You helped me a lot. I’m now trying to use add_filter() in my functions.php file to override the product_name in the cart. I don’t want to edit the woocommerce php files or create duplicate woocommerce.php files in my child-theme woocommerce directory. Have you figured out how to implement your product_name override using the add_filter() function? I’ve tried to code below, but it’s not working for me.

    /* Function that returns custom product hyperlink */
    function wc_cart_item_name_hyperlink() {
    return sprintf( ‘%s ‘,’’, $_product->get_title() );
    /* Filter to override cart_item_name */
    add_filter( ‘woocommerce_cart_item_name’, ‘wc_cart_item_name_hyperlink’ );

Leave a Reply

Your email address will not be published. Required fields are marked *

Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers. I am disclosing this in accordance with the Federal Trade Commission’s 16 CFR, Part 255: “Guides Concerning the Use of Endorsements and Testimonials in Advertising.”


I regularly schedule calls to answer your questions using
a service where you only pay per minute.

call me
  • People don’t fully grasp how strategic Chris is. I love that about him and count on it all the time.

    Karim Marucchi
  • Chris often breaks paradigms and has me rethinking the way I approach my business.

    Jeff Zinn
  • Chris always gives me something to think about – a new lens through which to examine my business.

    Lucy Beer
  • Chris’s advice has helped me to make better decisions about my business, and manage my clients better.

    Natalie MacLees
  • Chris has been a source of wisdom and insight in business and product strategy, startups, entrepreneurship, and more.

    Austin Gunter
  • Chris is one of those rare people who can take a difficult subject and make it easy to learn and remember.

    Dave Jesch
  • Chris has a heart of gold and is willing to reach out and help. He has helped me in several ways both in WordPress coding and consulting with me on my business. He has been a blessing in my life and look forward to a long friendship with him.

    Gregg Franklin
  • Chris Lema always drops knowledge bombs that makes me think about how I can evolve my WordPress-powered business. Even more valuable is that he does it in a way that makes drastic change seem achievable.

    Chris Ford
  • Whether it's product strategy or a question about which plugin to use, I know Chris will get me an answer faster than anyone else.

    Steve Zehngut
  • Chris is a great mentor, instructor and friend. He fills all these roles with a down to earth style and ease that actually encourages you to believe that success is within your grasp.

    Alex Vasquez