Navigation arrow keys for pagination are not displayed in products page. I have used woocommerce plugin in wordpress 3.4.2 version.
They will not be visible till you have enough products to have 2 or more pages.
Can't remember why this happens. I think its because wordpress posts per page is set to 'n' in your settings so woocommerce follows that setup (only showing 'n' number of products)
Anyway to fix it open your functions.php file and insert:
add_filter('loop_shop_per_page', create_function('$cols', 'return 4;'));
Related
I installed WooCommerce. WooCommerce setup 5 pages like: Shop, Cart, Account, Privacy and Pay.
Everything works fine but WooCommerce shows only the main categories.
My settings in the WooCommerce dashboard set to show subcategories but nothing is happening.
How I can fix this?
If you switch to a default theme like Twenty Seventeen, do the sub-categories show up?
If so, I would suggest talking to your theme author.
If not, Try re-saving your products and categories and clearing the cache.
I solved the problem.
I added the woocommerce support in my theme.
Then I created a new page called woocommerce.php
In this fil you run a loop with woocommerce_content();
This line is required in div tags with class woocommerce.
This is important for the default style!
The file look like this
<div class=“woocommerce”>
<?php woocommerce_content(); ?>
</div>
I have searched the forum and found people wanting to get rid of the sidebar when on the product category page. My issue is the opposite and I have not found someone raising it (so hopefully, the solution is easy):
the sidebar shows OK on the (standard woocommerce) shop page (based on woocommerce.php template) but when I click a product category in the sidebar of that same shop page, the product category page (based on woocommerce.php template as well) has no sidebar.
Has someone come across this issue?
(WordPress 4.9.4, woocommerce 3.3.3 (same issue on 3.3.1)
Add the following code to your functions.php file, I would recommend that you use a child theme or plugin for this. That way you won't lose your modifications when the theme gets updated.
add_action('wp', create_function("", "if (is_archive(array('product'))) remove_action( 'woo_main_after', 'woocommerce_get_sidebar', 10);") );
I'm currently using Wordpress with Woocommerce and Polylang installed and set it to two languages. Whenever you switch a language, all of the WooCommerce links sets to the links of a current language (e.g. shop, my account, checkout). Except for the Cart page - it always links to the default (the one that you set as a cart page on the Woocommerce settings) cart page and therefore it is not dynamic. What I've tried is adding this code to the functions.php file:
function get_woocommerce_cart_polylang()
{
return pll_get_post(get_option('woocommerce_cart_page_id' ) );
}
add_filter('woocommerce_get_cart_page_id', "get_woocommerce_cart_polylang");
It kinda does the job, but it also breaks the cart page - when refreshing or updating the cart, the page goes blank.
Any ideas on how to solve this, or any additions to the code ?
Thank you in advance !
I'm usgin WP 4.3.1 and WooCommerce 2.4.6.
After installed almost everything works fine. I go to /shop page and products list there.
I clicked to /product-category/digital-product which is Digital product category but it is blank page. Empty page with just sidebar!
What i have to do to make it show products or sub categories?
Here are permalink settings.
Common Settings
http://localhost/wp/%postname%/ where /wp is my WordPress root.
Product category base: product-category
Product tag base: product-tag
Product permalink base
http://localhost/wp/shop/%product_cat%
1st method:
Disable all plugins ( except WooCommerce ) and check if your issue solved.
If this fix your issue, then try to activate your plugins one by one and locate the plugin which is responsible for this issue.
2nd method:
Try to switch your theme and check to see if this solved your problem.
If this fix your issue, then inform about this issue to your theme developer and ask them to fix it.
find, if there is a file inside your theme root path named woocommerce.php, if you found it, just delete it or rename it to woocommerce.del.php then retry,
This thing fixed my blank page issue.
I created a Wordpress page that must display the products that I've created using Woocommerce Plugin. It seems like it has it's own Shop Page so I tried to customize it (it has different template) but failed since I am just a beginner in Wordpress. So I tried making my own Wordpress page (just like what I said at the first line) having the same template with other menu options. So it's good. The problem is I cannot make the products show. So I searched and installed a Display Product for Woocommerce Plugin so that I can call the products, on the webpage that I created, using shortcodes. Unfortunately, there is no single products that shows in my page. Any suggestions with this?
Try using this Shortcode [products] on a new page. It showed me all the products i had in my woocommerce store.
Let me know if that fulfills your needs.