Woocommerce Shop show categories - php

I am new to wordpress so please still help with me if I get the language wrong.
Using woocommerce to display a shop with variable products, I would like the shop link landing page to display the shop categories with the featured image of that category.
My current shop page displays all products, with a pagination to other product pages and I cannot find the template for all products.
When I go to shop page in wp-admin and click on the edit page it is empty, so am not sure how they are getting there in the frst place and I have looked at the HTML not just the visual editor.
Many Thanks
Asa.

It's easy, just go to 'WooCommerce -> Settings' link from side bar admin menu & select 'Catalog' tab & then tick 2 check boxes "Show subcategories on the shop page" & "When showing subcategories, hide product" -> click 'Save Changes' button at bottom. That's it! You are Done!
Now visit 'Shop' page you'll be able to see categories.
Hope this helps.

This is now in Woocommerce -> Settings -> Products -> Display, 'Shop Page Display' drop-down.

In current version 3.4.5 there is no display option under Woocommerce -> Settings -> Products -> Display. It has been moved to customizer under Woocommerce->Product Catalog

Related

Woocommerce Terms and conditions link - checkout

I would like to add Terms and conditions link to my woocommerce checkout page.
I have set: WooCommerce -> Settings -> Advanced -> Page settings -> Terms
I have set: Appearance -> Customize -> WooCommerce -> Checkout
I am using Flatsome theme. I've tried to disable every plugin that affect checkout but still, nothing.
It still showing plain text "I accept Terms and Conditions".
I tried "live preview" on another template but the same effect. Any ideas?
Go to your WordPress admin dashboard and then go to Pages > Add new.
Add Your Title as Terms and Condition
Add content
Review the content and save it or you can publish it if everything okay.
Now you need to set your Terms and condition page in WooCommerce. Go to Appearance > Customize
From the customize page dashboard select WooCommerce > Checkout
From checkout click on the terms and condition tab. A drop-down menu will appear and you can see your created terms and condition page there. Select the page and save the settings.
You can follow this tutorial for better understanding

Display Sub-categories of particular parent-category on home page in Wordpress woocommerce

I want to display Sub-categories of particular parent-category on home page in Wordpress woocommerce With there thumbnail images please help me
Thanks in advance
To display categories inside a category with thumbnail, add this short code in a widget / home page:
[product_categories parent="0"]
Ref: woocommerce display categories/subcategories/products

Woocommerce: Showing Categories on every page

I am using the woocommerce plugin for a wordpress site. The categories of the shop should be listed on the left part of the page and the categories on the right side.
When the shop page first loads, it is displayed as above. Which is good. When I click on the category it only shows the products and not the categories.
Is there an easy way to get the categories on every page?
You can edit your category and set Display type to Both.
Default setting can be set in Settings page under Catalog tab.

How to add a image banner to the top of the woocommerce shop base page

I am creating simple image banners on the top of each category page of my site (add category header content)
I'd like to add an image to the top of the woocommerce shop base page.
When I insert an image in the page edit screen, it does not appear.
But Woocommerce 2.x can not display the shop base page excerpt (short description)
others normal page are all show their short description.
How would I go about doing that?
I can not find page template of the woocommerce shop page
Thanks!
http://wordpress.org/extend/plugins/woocommerce/
I found it!
Insert into the top of yourtheme/woocommercer/achive-product.php
//Check is_shop - Shop base page
// if True then Show Category Header Content of The first Product in Shop base Page
if (is_shop()) {
$args = array('taxonomy' => 'product_cat');
$product_categories = get_categories( $args );
$term_id = $product_categories[0]->term_id;
$content = get_term_meta($term_id, 'cat_meta');
if(isset($content[0]['cat_header'])){
echo do_shortcode($content[0]['cat_header']);
}
}
Hope to help someone! :)
Just thought I would share how I accomplished this so easily. On your shop page click "screen options" at the upper right of the page. Checkmark "Exerpt". Scroll down to the Exerpt box. (there will be a new box to type in there.) Here you can type in the url to your image using html. Click update to update your page. Now you will have the image or banner you want under your shop title. I also removed the title "Shop" by simply removing it from my page title on the page where you edit your shop. Then I changed the menu option in menus back to the shop title. Hope this helps someone. It sure would have helped me to know this sooner.
Just create the id or class on the top where you want to add the image banner at the top and after that you just go to the admin dashboard and then.
Apperance-> custom css and
.your_custom_css_top {
background-image:url('IMAGE_URL_HERE');
}
To add Banner Images for All WooCommerce Default Pages (Cart, Thankyou, Checkout, Shop), You have a setting page Like below to add or enable Banner display on pages. Also, add a link option for Banner click and an alt text field to add SEO purpose text.
Thanks for sharing some link it helps a lot. But I see there is another link with good reviews https://codecanyon.net/item/woocommerce-banner-images-products-post-categories/25545174

Opencart show sidebar in checkout page

I am new to opencart. Here as per my layout I have a left sidebar where I can see all the product category. I have used the sidebar in home page and product details page and it is looking fine. Like this I want to show the sidebar in checkout Page . So can someone kindly tell me how to show the sidebar in checkout page?
Login to your admin area then navigate to:
Extensions > Modules
Then click on the Edit link (under the actions column) next to Category module name.
Click the Add Module button and select Checkout as your layout and Content Left as the position.
Make sure that you've enabled it and click Save. Refresh your page and you should then see the category list on your checkout page.
Hope that helps!!

Categories