caldejesus
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to rename sorting option slugsCorrect. So since I’m unable to create a new sort option from scratch for sorting by tag or some other field, this was the best workaround I could come up with. I guess nobody but me will really care if they see ?orberby=date when sorting by Year/Set. It just bugs me. Plus I have to delete and then re-import all of my inventory every time I add new inventory to keep it sorted correctly.
Forum: Plugins
In reply to: [WooCommerce] How to rename sorting option slugsI renamed “sort by date” to “sort by year/set” in the drop down menu. Unfortunately, I have to import all my listings in the correct sort order every time for that to work, which is kind of a pain. What I truly wanted to do was to be able to create new sort options for this, rather than by date, to sort by tag or whatever I wanted. I tried that route first with no luck.
/** * @snippet Rename a Default Sorting Option @ WooCommerce Shop * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 * @sourcecode https://businessbloomer.com/?p=75511 * @author Rodolfo Melogli * @testedwith WooCommerce 3.5.2 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_filter( 'woocommerce_catalog_orderby', 'bbloomer_rename_sorting_option_woocommerce_shop' ); function bbloomer_rename_sorting_option_woocommerce_shop( $options ) { $options['price'] = __( 'Sort by Price: Low to High', 'woocommerce' ); $options['price-desc'] = __( 'Sort by Price: High to Low', 'woocommerce' ); return $options; }
Forum: Plugins
In reply to: [WooCommerce] How to rename sorting option slugsI still haven’t found a solution to this, unfortunately.
Forum: Plugins
In reply to: [WooCommerce] Importing about 1000 products stalls around 40resolved
Forum: Plugins
In reply to: [WooCommerce] Importing about 1000 products stalls around 40Editing the file did the trick! Thank you very much!
Forum: Plugins
In reply to: [WooCommerce] Importing about 1000 products stalls around 40Hi, thank you for the reply. I will try to manually increase the allocated memory as shown in the doc, and if that doesn’t work, hopefully I can contact my hosting provider (namecheap) to have them increase it for me. I will update this post when I find out. Thanks again!
Forum: Plugins
In reply to: [WooCommerce] How to rename sorting option slugsThanks, I registered and asked the question on slack, but didn’t receive a response there either.
I wouldn’t expect there to be too much coding involved. Probably a short code I can add to functions.php like I did to rename the sorting options in the drop down. I just don’t know what it would be though.
Forum: Plugins
In reply to: [WooCommerce] Inconsistent Page SpeedsI just want to be know if the slow/inconsistent speed is because of my hosting provider or if it’s something on my site. If it’s my hosting provider, I can upgrade like you said, but if it’s something on the site, I need to try and fix it.
Any thoughts?
Forum: Fixing WordPress
In reply to: Eliminating render-blocking JavaScript causes widgets to failI see, thank you for clearing that up for me.
Forum: Fixing WordPress
In reply to: How do I fix W3C duplicate id errors?Still haven’t found a way to fix this issue. Can somebody PLEASE at least point me in the right direction? I don’t know what I’m supposed to do. Site is not w3c compliant.
Forum: Fixing WordPress
In reply to: How do I fix W3C duplicate id errors?Never received a reply, if anybody knows how to fix this I’d appreciate it. My site won’t be W3C compliant until then.
Forum: Plugins
In reply to: [Advanced Woo Search] Doesn’t search product category namesI actually resolved this issue already by using Search Manager Lite plugin. It was easy to setup to choose additional search factors such as tags and categories. Works perfectly for me.
I’ve never reindexed my tables, so once I Googled that, it lead me to a very helpful article that includes a how to for this as well as some other useful tips. Good idea, thanks for the info!
That’s what I was doing but it still isn’t working. The first part of the code by itself should completely remove the dropdown, correct? But it doesn’t. I’ve poured over my php files and everything looks correct with the code. I’ve tried other hooks and priority numbers and triple-checked my functions.php file for errors. Not sure what else I can do… Thanks again for your time and help. I appreciate it.
Forum: Themes and Templates
In reply to: Unable to change product image size in storefront themeHi, why did you reply to my post with an exact copy of my post and nothing else?
I tried every combination I could think of based on the information you gave me and what (little) I know about using hooks. Dropdown still won’t budge. These will be my last questions for you on this, I promise.
What do I put for the priority numbers for the remove_actions?
What do I use for NEW_LOCATION_HERE?
What do I put for the priority number on the add_action?add_action('woocommerce_before_shop_loop', 'remove_page_dropdown'); function remove_page_dropdown() { if ( function_exists( 'Woocommerce_Products_Per_Page()' ) ) { remove_action('woocommerce_before_shop_loop', array( Woocommerce_Products_Per_Page()->front_end, 'products_per_page_dropdown'), 25); remove_action('woocommerce_after_shop_loop', array( Woocommerce_Products_Per_Page()->front_end, 'products_per_page_dropdown'), 25); } } if ( function_exists( 'Woocommerce_Products_Per_Page()' ) ) { add_action( 'NEW_LOCATION_HERE', array( Woocommerce_Products_Per_Page()->front_end, 'products_per_page_dropdown' ), 25 ); }