WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] woocommerce (ecommerce-plugin) How to bring 2 pages of products into single page (13 posts)

  1. murarig
    Member
    Posted 1 year ago #

    Dear Support Developers. My website http://www.carolinegoodwin.com is using woocommerce plugin and layout. In this there is a problem with shop page issue: website URL = http://carolinegoodwin.com/

    The main landing page takes to shop page there are total 13 products which are supposed to display in one page.
    But the problem is, at present there are only 9 products accommodated in the landing page and rest 3 products are showing in wordpress next page. How to bring all 13 products at one single page? i.e landing page.

    To Navigate products one has to click Next at the bottom of the page to view rest of the products OR Previous to comeback to the shop main page. Please let me know if it can be done or not.

    Please let me know what changes have to make this happen. I appreciate your help and support to resolve this issue.

    Thanks in advance.

    http://wordpress.org/extend/plugins/woocommerce/

  2. maximan
    Member
    Posted 1 year ago #

    I asked the same question and was able to do what you're trying to do by appending the following text in your Themes functions.php

    // Display 24 products per page
    add_filter('loop_shop_per_page', create_function('$cols', 'return 24;'));

    ?>

  3. murarig
    Member
    Posted 1 year ago #

    Thank you for the reply. Can you please let me know whether it did worked for your requirement just by uploading above edited code sent by you or you did any other changes to make it work.

    Please let me know the procedure how you did it? as i am a beginner or new to this web development.

    Thanks
    Murari

  4. maximan
    Member
    Posted 1 year ago #

    All I did was access "themes function.php" (using the built-in Themes editor) and added that text at the bottom.

  5. murarig
    Member
    Posted 1 year ago #

    Thank you for your above info. I am using WordPress NOMNOM theme with WORDPRESS 3.5 Version , i just did it as you said above, but the Next and Previous are exist and not going away. Due to these two options still both pages are remains same instead of bringing all the products into single shop page.

    Any further help will be appreciated.

  6. maximan
    Member
    Posted 1 year ago #

    Hmm..it works for me, i.e. number of products per page changed from default 10 to 24. In my case the number of products is less than 24, thus there is no second page, no previous/next page. Maybe someone else can offer help? Sorry

  7. Roy Ho
    Member
    Posted 1 year ago #

    @murarig - you should then test it with a default theme like TwentyTwelve. If it works there, that would mean your current theme is altering the query somehow and thus the filter mentioned is not affecting it.

  8. murarig
    Member
    Posted 1 year ago #

    OK, Thank you will retry again. Thanks for the help.

  9. miracon
    Member
    Posted 1 year ago #

    There is a very easy way to do it. You just got to Settings>Reading> and change "Nnumber of Blog Pages show at Most" to the number of products you want displayed.

  10. Roy Ho
    Member
    Posted 1 year ago #

    @miracon, yes but that means the blog is affected. What if he wants blog posts to show only 10 but products to show 20?

  11. miracon
    Member
    Posted 1 year ago #

    @splashing...you are right. I've only designed sites that were WooCommerce shopping sites so when I changed that well after loading products, it made no difference to the site. They weren't blog sites at all. :-)

  12. murarig
    Member
    Posted 1 year ago #

    @miracon, yes, it did worked as you said Settings>Reading>increased numbers for display.

    Thanks
    Murari

  13. miracon
    Member
    Posted 1 year ago #

    Glad it worked for you. That's the way I do it if I don't have a blog page. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic