Can I hide product categories from add to menu if they already exist in the menu on WordPress? - wordpress

Is there a way to remove product categories from "All Categories" once they've been added to the menu already? There are 100 categories so far with hundreds more being added and it's hard to spot if another brand or type has been added. If they were removed from "All Categories" on the left I would be able to spot it easier and add it to the right part of the menu.
categories still showing in list after added to menu
I asked the question to chat gpt which provided a couple of solutions that didn't work. The best I managed to do was hide the product categories from the menu itself not from the add to list which was completely useless to me.
Any help would be appreciated.
A few methods that chat gpt offered me but couldn't find a solution using Google.

Related

I need 2 separate purchase buttons on product page ----> one for simple and one for variations

I am totally stumped in figuring this out and I think I am doing too many extra things in order to fix a simple issue. (I hope)
I am an artist, and I am selling prints and am also offering the original piece for sale on my website. I am trying to figure out how, on the single product page, to add a SEPARATE button that allows the customer to purchase the original piece. I tried adding it as a variable but it is not user friendly and other selections disappear if customers want to go back and select other print options. I do not want the option to purchase the original piece mixed in as a variable. I want it totally separate.
I have created drop down pages for prints and originals on my main site menu but it is messing up when the base ‘shop’ page is clicked because doubles pop up for each product- one is presented as a range in price (the prints) and the other is what the original costs. It is confusing and looks terrible. On top of that, when I try to upload/add new art pieces to either the ‘prints’ or ‘original work’ categories, they don’t show up on either page, they only show up on the ‘base’ shop page.
Is there ANY way to simplify this into removing the ‘prints’ and ‘original works’ subcategories and only have my base ‘shop’ page to display each product, BUT adding a button for the option to ‘purchase original’ along with ‘purchase prints’ on the actual single product page? I have been looking for answers for weeks and haven’t found anything.
Please help!! Thank you so much in advance! I have no clue what I am doing!!!
I have tried adding the 'original' piece into the variations menu and it didn't work correctly. I created subcategories for 'originals' and 'prints' but that is making my base shop page display double products, and when I upload new products and put them in their correct category, they dont go onto those pages, they stay on the base page.
I just want a 'Purchase Original' <---- simple product and a 'Purchase Prints'<----- variable product with size/material options.

Woocommerce Default Product Page - Sort / Order by Category

Ok, So I got a woocommerce shop with different categories, lets say these are: shirts, pants and shoes.
Now I got a different page for each category, but I also have the Main Product Page where all of the products are shown. I can change the order the items to things like lets say: Popularity or Price.
But the problem is, I want to sort products to be of the same category below eachother on the Main Product Page. So like when you go to the Main Product Page where all the products are, they are shown in this way when you scroll down: first all shirts, then all pants, then all shoes.
I cant find any options or any solutions on the internet... how can I do this? To me it sounds like common sense to have to want products sorted in that way, yet I cant find a way to do it.
Anything would help, like: a plugin, custom css or php file changes..
O yeah before I get to mention, the order by category must also be the main sorting / order.
Hope someone can help :O :O

WooCommerce Product Category Widget Behaviour (navigating to products)

I am very new here and hope I am going about this write. I searched topics but could not find one specifically about this.
I can't give a link to this because the site is in maintenance mode so I am going to try to explain it the best I can.
I have WooCommerce Product Category Widget setup as a sidebar navigation for a complex category setup.
I have:
Show hierarchy Only show children of the current category
Both checked on.
This works great when people are navigating the categories. But, as soon as they click on a product and it goes to a product page, the hierarchy closes in the sidebar. I'd like to still see those subcategories open while on the product page.
I can't turn off the Children option because, while it's a partial solution, the the entire complex tree is showing at all times and it's just way too big.
Is there some method to keep that hierarchy open once you go to a product page?
Thanks for any info.

Relationship based Taxonomies Dropdown

Please help.
I am very new to web development & don't have any computers background. I have created a pincodes database Website pincodes.forinfo.in using WordPress. I want a relationship based dropdown Taxonomies like www.pincode.city.
I have tried many ways from last 6 months but failed. Please help me.
I have custom Taxonomies State, District, City, pincode. I need a taxonomy dropdown, when user clicked on state the second dropdown should show the Districts of that particular state. Like wise when a user clicked on District the third dropdown should show the cities of the particular.
How can it is possible. Please help me.
I want show this dropdown on a WordPress page.
If you are using the latest version of Wordpress then I do not see the reason to be baffled by this, since you will be able to manage this from Appearance->Menu.
Check out my screenshots.
Click on the Screen Options button on the top right corner of the
Menu page. Screen Options
For me, Types is a custom Taxonomy, so I select it. The taxonomies appear on the left now Custom Tax Appears
You can now add the links to your menu and then arrange it so that it becomes a sub-menu of your primary menu.
This is how your menu should look if you want your custom taxonomy to be a sub-item of another menu item.
Sub menu items
You can do this by holding and dragging the item slightly to the right.
You can stack such items one below the other and create endless sub-menus.
I must mention that there are some themes that do not support sub-menus. If you theme doesn't, change it and check again.
Things that you need to do to implement your idea:
Get a good autocomplete plugin - Easyautocomplete (Much better than jQuery UI autocomplete)
Create three input boxes on a custom template page
Use enqueue_script to get your JS files to load with your Wordpress installation
Bind autocomplete to the three input text boxes
Learn how to query your Wordpress installation for your taxonomies
Use a php file to transfer a json file of your taxonomies to the autocomplete function - I would recommend this AJAX plugin
Have conditions in your php file according to which the 2nd field's values are fetched after getting the value of the first field and similarly for the third field
As I said, it's a lot of coding, and if you are really starting out to code this yourself, without much knowledge of PHP or jQuery, it's going to be very difficult. I would suggest you take the help of a developer.
You can even send me the details of logging into your Wordpress installation, if you want me to take a look.
Mail me at arunadaybasu#gmail.com

How to exclude posts in taxonomy based on custom field?

I have a custom post type called 'real-estate' and a bunch posts (listings) within it. What I'm trying to do is create a handful of home styles and within them, specific listings of available homes.
So right now, I have the search query pulling in only the home styles from the search by only showing results with the custom field "model" set as "true." However, when clicking this, I would like it to display specific homes which are apart of that style.
For example, a search query will yield Home Style A and Home Style B. When the user clicks Home Style A, it would show a general overview of the home style, with a link to an archive page of specific homes (i.e. 123 Fake St., 456 Made-up Lane) but omit the Home Style A from displaying within that query.
Right now I'm accomplishing this by creating a new taxonomy called "Home Styles" and categorizing them as such. I'm displaying only the model homes by querying only posts with that custom field I mentioned above. That part is working fine. However, when I click the link to display the rest of the homes in that taxonomy (/model-homes/model-home-a/) it shows all posts within that taxonomy, including the model home listing. Is there a way I can exclude the model homes from the taxonomy archive similar to the way I'm only including them in the search? I'm hoping theres a solution to make it dynamic by editing the taxonomy-home-style.php instead of doing it for each term in case new ones are added frequently.
Hopefully this makes sense, I've been trying to wrap my brain around the concept for hours now and trying to think of the best solution to accomplish this. Thanks.
Nevermind, figured this out on my own. I made it more complicated than it was.
I used the method on this site to edit my taxonomy-model-home.php. Adding two lines of code and it works!
http://www.solo-technology.com/blog/2007/09/08/how-to-another-way-to-exclude-posts-from-the-front-page/

Resources