How to use WooCommerce without a Products Page


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?

About This Site

This site is hosted by Pagely - running on Amazon's hardware, making it lightning fast. They're a managed WordPress host which means they take care of my site so I don't have to. Starting at $24/month, this may be the perfect solution for you too.
  • BlogTechGuy

    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.

  • kalpesh

    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

       @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.

      • kalpesh

        Thank you..!Now its working !

  • SwithDrawn

    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? 

    • chrislema

      Look at the Catalog tab, and the check box is there to redirect after you add to cart.

  • joshvida

    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

       @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

        @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.

  • AmeliaZhang

    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!

    • Eric

      any one can teach me how to grab the URL from the add to cart button in the product page?

      • jSapoznik

        Hi Amelia & Eric,
        You probably found the solution already but for others looking for the same you can use the following URL in any button to replace the Add to Cart button URL, this will automatically add the product to the cart.

        Replace yourproducturl with the products full URL, and replace ID with the ID number of your product which you can find on the products page when you mouse over the product.

        Also if you where looking to go straight to checkout I found this free plugin that saved me from going into code.

        Hope it helps

  • Pingback: How to change the Add to Cart text in WooCommerce (and other changes)

  • Pingback: How to use WooCommerce without a Products Page « PixelPress Wiki

  • sktsalad

    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.

  • lo

    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!

  • brian

    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!!!!!

  • brian

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

    • chrislema

      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).

  • brian

    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’); ?>”>


    • Sue

      In case you’re still looking for it, it’s now at


  • Bryan

    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

    • chrislema

      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/.

  • Bryan

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


    • chrislema

      Great comments. I have to update this article so that it’s current. You’ll see Sue’s comment about the new locations.

  • George Ortiz

    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.

  • Eddie

    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!

    • chrislema

      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.

  • Iurie

    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?


    • Illiya Mills

      Yes I would like to know how to do this too. Does anyone have a solution? Thanks

  • Yan

    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?

  • Pingback: Express Lane Shopping: Improving the WooCommerce add to cart button

  • Michelle Byrne

    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!


  • Rafael

    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!

    • chrislema

      It’s possible but will take more than I’d do in comments.

  • Ryan

    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.

    • Ryan

      Looks like this works just fine!

      wp_redirect( home_url() );

      I found a post that spoke of sticking a wp_redirect at the top the woocommerce > templates > archive-product.php file.

      • chrislema

        You beat me to writing that to you. I just got both your comments. Glad you have a solution.

  • Vayu Robins

    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.

    • chrislema

      My trick was not to create variations of a single product but to create two versions of the same product as simple products.

      • Vayu Robins

        I see thanks. Well that won’t do in my case unfortunately. Will try to submit a support ticket to the WooTeam.

  • dougwo

    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?

    • dougwo

      I solved it. Just add


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

      • priscila gonzaga

        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:

  • Josh

    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.

  • Elan42

    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 :D

  • julian

    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!

  • Elan42

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

    I don’t have any !!!

  • Mark

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

  • Bader


    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!

    • chrislema

      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.

  • Bader

    Thank you a lot for your time and effort buddy!

  • Dave

    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.

  • andrewmanley

    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.

    • chrislema

      I just wrote a different post about WooCommerce and both download and display products. Did you read it?

  • Sher Ali

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

  • Ilyas

    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..

  • Martin

    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?


  • Riley

    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.

  • harish

    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!

  • Arun

    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.

  • Jimmy White

    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.


  • Sharon

    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

  • Willian

    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!

    • chrislema

      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.

  • Nirav Mehta

    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!

  • Jeff Bugbee

    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.

  • Pingback: Woocommerce learning | My Blog

  • Jon R. Odden

    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…


    • Dave

      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.

  • Paul Smith

    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!

    • Paul Smith

      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!

  • Jonathan Tynes

    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.


  • pushpendra

    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

  • Pingback: Selling Memberships and Downloads with MemberPress for WordPress

  • David

    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.

  • Zac Gordon (@zgordon)

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

  • Rob

    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

  • Oliver

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

  • moshroom

    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.

  • Pingback: How to Remove Product Page Links from Your WooCommerce Store - Vandelay Web

  • Merlijn

    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!