Woocommerce active page for the Shop


Author Message
Lindsay

Posted: 6/6/2013
Quote message 

I've used Woocommerce with an artisteer theme and I'm finding that the Shop page (only - all other pages are fine) does not ustilise the active css (hover is fine). I don't think it's the css as identical to all the other pages.

I duplicated the theme's page.php file, renamed it to woocommerce.php

<?php /* Template Name: woocommerce */ ?>     <?php get_header(); ?>  <?php get_sidebar('top'); ?>  <div class="ljc-layout-wrapper">  <div class="ljc-content-layout">  <div class="ljc-content-layout-row">      <?php woocommerce_content(); ?>    <div class="cleared"></div> </div> <div class="ljc-layout-cell ljc-sidebar1">  <?php get_sidebar('default'); ?> <div class="cleared"> </div> </div> </div> </div> <div class="cleared"></div>  <?php get_sidebar('bottom'); ?>  <?php get_footer(); ?>   <?php get_footer(); ?>


How do I get the Shop to show as active in the horizontal menu? Any pointers would be fab.
 
Nick

Posted: 6/7/2013
Quote message 

Did not notice it until I ready this post. I had not noticed it because:

1. I take out the "shop" page made by woocemmerce during the setup from the menu. I don't delete it, but just take it out of the menu.

2. Instead I use the custom menus, and create a menu for each category. This saves a click for the visitors. Instead of going to "shop" and then choosing a category, they simply click on a category from the menus.
To get the urls for each category, use the shop page, click on each category and get their urls one by one to create the menus.

3. For the homepage, I setup a static page, as oppose to the default blog page, and by using the woocommerce shortcut button, I display the featured items and the items that are on sale. That's how most professional sites setup their sites.

If you don't want to follow what I do with my woocommerce sites, you can:

1. Remove the "shop" page from the menu (don't delete the page).
2. Create another page that will take it's place, and put this shortcode in the page:

[product_categories number="12" parent="0"]

This is going to display the first 12 categories of your shop. Adjust the number as needed of course. By doing this, this new "shop" page is active on the menu, when the page is displayed.

I still don't know why this happens, but over the weekend I will try to investigate more. I am pretty certain that I will have to get my hands dirty with the Woocommerce plugin, which I hate, since any edits that I do, i will have to do them all over again every time the plugin gets updated (once a few weeks), which is a real pain in the ass in this case. I guess the better way to tackle this is to write a plugin for it, so when woocommerce gets updated it won't affect the custom code.
 
Nick

Posted: 6/7/2013
Quote message 

Above should have been "read" and not "ready". Sorry, it's 5:10am here and I had a long night...
 
Lindsay

Posted: 6/7/2013
Quote message 

Will you marry me! I\d been looking at the woocommerce code for ages... and was so focused on that. You've brought up some brilliant ideas too about the home page too. I shall favourite this for future reference. Thank you so much.. brilliant. :-)
 
Nick

Posted: 6/7/2013
Quote message 

You are welcome Lindsay. Lately I'm doing a lot of woocommerce stuff, and adapting Artisteer themes for woocommerce, besides the woocommerce.php file, adapting the Artisteer buttons for it takes only 2-3 minutes.

BTW, the engagement ring is in the mail. I'm sure the postal service will not lose it!!!

One last tip, specially with woocommerce, install a good cache plugin to improve the performance of the site, specially if you are on a shared hosting, and have many products, and limited RAM (with shared hosting you always have very limited RAM.
 
juan

Posted: 6/11/2013
Quote message 

Quote Nick:

Did not notice it until I ready this post. I had not noticed it because:

1. I take out the "shop" page made by woocemmerce during the setup from the menu. I don't delete it, but just take it out of the menu.

2. Instead I use the custom menus, and create a menu for each category. This saves a click for the visitors. Instead of going to "shop" and then choosing a category, they simply click on a category from the menus.
To get the urls for each category, use the shop page, click on each category and get their urls one by one to create the menus.

3. For the homepage, I setup a static page, as oppose to the default blog page, and by using the woocommerce shortcut button, I display the featured items and the items that are on sale. That's how most professional sites setup their sites.

If you don't want to follow what I do with my woocommerce sites, you can:

1. Remove the "shop" page from the menu (don't delete the page).
2. Create another page that will take it's place, and put this shortcode in the page:

[product_categories number="12" parent="0"]

This is going to display the first 12 categories of your shop. Adjust the number as needed of course. By doing this, this new "shop" page is active on the menu, when the page is displayed.

I still don't know why this happens, but over the weekend I will try to investigate more. I am pretty certain that I will have to get my hands dirty with the Woocommerce plugin, which I hate, since any edits that I do, i will have to do them all over again every time the plugin gets updated (once a few weeks), which is a real pain in the ass in this case. I guess the better way to tackle this is to write a plugin for it, so when woocommerce gets updated it won't affect the custom code.



Hello Nick, I need you to take some questions. What is your email? thank you
 
Nick

Posted: 6/11/2013
Quote message 

juan, I think it's best if you post your email and I'll contact you...

or, ask your questions here...
 
dayo

Posted: 6/12/2013
Quote message 

Quote Nick:

juan, I think it's best if you post your email and I'll contact you...

or, ask your questions here...

---------------------------------------------------------------------------------------------

thank you for your supports for far here nick; i have read ur responses on different issues and u are fantastic.

however, i have some questions for u regarding artisteer theme customization. Lest i forget, i am experienced in core php and just settling for open technologies especially wordpress.

this is my email: dayogreatonline@gmail.com

It'd be deeply appreciated.

Thank u
 
Nick

Posted: 6/13/2013
Quote message 

I just emailed you...
 
ping

Posted: 7/31/2013
Quote message 

Quote Nick:

2. Instead I use the custom menus, and create a menu for each category. This saves a click for the visitors. Instead of going to "shop" and then choosing a category, they simply click on a category from the menus.
To get the urls for each category, use the shop page, click on each category and get their urls one by one to create the menus.


@Nick,

Is it to create double top menus ?

You said that you to create a menu for each category.
Would you please explain how to do ?

Thank so much.


 
Nick

Posted: 7/31/2013
Quote message 

Hi ping,

In many cases that I create a theme for Woocommerce, I do add a second horizontal menu. So one menu will be for all the Product Categories from the Woocommerce catalog, and the other will be all the other pages, ie: Home, Contact, Account, etc... Obviously you need to get your hands dirty with some php programming, but there are easier alternatives, which are not as ideal as this one, but something that everyone can do.

The first one is to use a vertical menu for the Product Categories, or simply use the Woocommerce Category Widget (The widget does not need a custom menu to work).

The second one is to have one menu and have the Product Categories as subpages.

If you know how to operate the custom Menus in wordpress, then the above will be straight forward.

If you want to know how to create a second horizontal menu, Abland had some instructions. It's not that difficult, it's not for beginner's either though. Do a quick search in the forums for it.

Tomorrow, I'll post an example...
 
ping

Posted: 8/1/2013
Quote message 

Hi Nick,

Thank you very much. You are very professional.

Since I am a new to Woocommerce & artisteer.
I found these two software very difficult to compatible.

I will follow you instruction to try again.
 
Nick

Posted: 8/1/2013
Quote message 

Hi ping,

Thank you for your kind comments.

The best advice I can give you is since you are new to all this, remember when you were a kid and learning to ride a bike. It was very difficult to keep your balance in the beginning, but with practice, you got better. After a while it becomes very natural and very easy and wonder how was it possible that it was so difficult initially.

Well, web design is the same way. Hard to understand everything initially, but once you get with the program, it becomes very easy. And if you are obsessive to get the answers like me, makes things easier too. Use these forums and Google to educate yourself as much as possible. Try different things, constantly think how to do things better and easier, and document, document, document, both your failures and successes.

Good luck.
 
ping

Posted: 8/1/2013
Quote message 

Hi Nick,

Thank you for your advice and encouragement.
 
wasim

Posted: 11/21/2013
Quote message 

:-P :-P :-P :-P :-P

Hello All,

I am developing OpenCart Plugin and hopefully will be completed before 2013-30-11. To buy opencart plugin please contact me at admin@tanxe.com

Thanks
 
didin

Posted: 4/18/2016
Quote message 

Gunung bromo merupakan gunung eksotis yang ada di jawa timur dan sangat cocok dijadikan tempat berbulan madu bagi pasangan baru. Banyak tempat romantis yang tentu akan menjadikan anda terkenang seumur hidup. Banyak agen yang menyediakan paket honeymoon gunung bromo dengan durasi 2 hari 1 malam dan tentunya paket ini berfasilitas yang sangat mewah. Masalah harga nanti bisa dinego dengan pihak agen travel. Paket wisata honeymoon gunung bromo 2 hari 1 malam info lengkapnya wisata bromo tour http://extreme-guide.blogspot.co.id/2015/11/harga-paket-wisata-gunung-bromo.html

Malang Transport merupakan perusahaan yang bergerak di bidang jasa transportasi khususnya sewa menyewa mobil di kota malang. Perusahaan tempat rental mobil di malang ini banyak memiliki kantor yang bertebaran di berbagai sudut kota malang batu. Entah tempat sewa mobil malang http://catatanartikel.blog.com/2016/02/03/memilih-rental-mobil-online-malang/ itu milik perseorangan atau milik perusahaan. Info harga rental mobil di malang transport bisa anda klik rental mobil wisata di malang batu http://madas.beep.com/sewa-mobil-elf-di-malang-untuk-berbagai-kalangan-2015-12-23.htm

Kota surabaya memang menjadi kota terbesar kedua di Indonesia. Banyak perusahaan besar dan kantor-kantor pemerintahan yang berdiri di kota yang sangat padat ini. Jika anda sedang berkunjung ke kota surabaya untuk urusan pekerjaan dan membutuhkan jasa transportasi sewa mobil di surabaya maka anda bisa datang ke kantor Madas Trans di daerah surabaya barat. Tempat sewa mobil murah Madas Trans Surabaya http://www.chairulumam.abatasa.co.id/post/detail/87948/rental-mobil-lebaran-di-surabaya-yang-terpercaya.html menyediakan beragam armada pilihan yang bisa anda pilih sesuai keinginan anda. Info detail sewa mobil surabaya dan rental mobil murah kota surabaya baca di sewa mobil murah kota surabaya http://otewe.tumblr.com/post/139967513325/pilihan-harga-sewa-mobil-pengantin-di-surabaya

Yogyakarta sangat terkenal dengan kota pendidikannya. Banyak mahasiswa rantauan yang datang ke Jogja untuk menuntut ilmu. Jika anda termasuk salah satu rantauan di jogja dan sedang membutuhkan jasa sewa mobil murah di jogja maka silahkan datang ke tempat jasa sewa mobil murah jogja http://catatandiary.jimdo.com/2016/02/28/ketentuan-dan-syarat-rental-mobil-di-jogja/ di Safa Transport. Banyak tersedia mobil terbaru dengan harga sewa yang murah dan cukup bersahabat dengan kantong mahasiswa. Info lengkapnya tentang sewa mobil murah di jogja baca di rental mobil di jogja harga murah http://justshare.hatenadiary.com/entry/2016/02/20/Layanan_Jasa_Sewa_Mobil_Harian_Di_Jogja

Bali, pulau yang menyimpan banyak eksotisme dan syarat akan kebudayaannya yang sangat kental. Jika anda ingin berwisata di bali dan membutuhkan sewa mobil murah di bali silahkan datang ke kantor sewa mobil murah di bali Dewata Trans. Tempat jasa sewa mobil bali yang satu ini bisa disewa secara harian, mingguan dan bulanan. Rental mobil murah bali ini menyediakan armada terbaru dengan beragam jenis yang bisa anda pilih sesuai dengan kebutuhan Anda. Rental mobil harian bali ini bisa anda baca di sewa mobil harian murah di bali https://tobielblog.wordpress.com/2016/04/17/prinsip-prinsip-perjanjian-sewa-mobil-di-bali-dalam-hukum/