Tagged: customize, dropdown, woocommerce
-
AuthorPosts
-
September 25, 2020 at 10:05 pm #1248513
Is it possible to customize the WooCommerce “Sort by Default” dropdown to remove some of the options and customize their titles and order??
This is what I want to keep: Price, Popularity (sales), Top Rated, Name (in that order)Can I change the title of “Popularity (sales)” to: “Best Sellers” and change “Average rating” to “Top Rated”?
(We aren’t actually using verified or user reviews, so is the average rating not relevant at all anyway…?)I also want to remove the second box that says “Display -1 Products per page” and has a dropdown for “ -2 Products per page” -3Products per page”
Thank you!!
September 27, 2020 at 5:29 am #1248747Hey Dino0103,
Maybe this will help you out with that? https://www.speakinginbytes.com/2016/05/customize-woocommerce-sorting-dropdown/
Best regards,
RikardSeptember 27, 2020 at 6:49 am #1248759Thanks, I’ll check that resource!
September 28, 2020 at 5:54 am #1248918Hi,
Thanks for the update, please let us know if you should need any further help on the topic.
Best regards,
RikardSeptember 29, 2020 at 2:12 am #1249198I tried updating my functions php for the child theme without success. Can you help?
I tried this: remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 10 ); It did not work…. :(
I also tried this: remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’); It did not work either.Any ideas? THANKS!
September 30, 2020 at 5:32 am #1249563This reply has been marked as private.October 3, 2020 at 5:23 am #1250242Hi there! I’m still needing help on this!! Can someone check on this request?
I need to update my functions.php for my child theme to remove the WooCommerce “Sort by Default” dropdown boxes that show up on my product page.
I tried this: remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 10 ); It did not work…. :(
I also tried this: remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’); It did not work either.
Any ideas how to make this removal work with your theme? Your developers sent me this: Maybe this will help you out with that? https://www.speakinginbytes.com/2016/05/customize-woocommerce-sorting-dropdown/ but it’s not working for me….Thanks!
October 6, 2020 at 3:35 am #1250679This reply has been marked as private.October 6, 2020 at 6:37 am #1250706This reply has been marked as private.October 8, 2020 at 11:45 pm #1251582Hi there, I kept testing options and although nothing works via functions update on the child theme, I did get this CSS to finally remove it:
.sort-param.sort-param-order {
display: none
}.sort-param.sort-param-count {
display: none
}div .product-sorting {
display: none
}Please close this thread!
Thanks and have a great day!October 17, 2020 at 12:11 pm #1253463 -
AuthorPosts
- The topic ‘customize WooCommerce Sort by Default dropdown and Display products per page’ is closed to new replies.