Home › Forums › Support › A Feature Request for WooCommerce settings in GP Premium and a Tip I’m using
- This topic has 2 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
December 30, 2022 at 5:05 am #2477801
Scott
I use WooCommerce Bookings. If you create a bookable product the utilizes “resources” and your pricing varies from $xx.xx to $xx.xx depending on different resources it will show on the single product page from WooCommerce a price designation titled: “From: $xx.xx”
One would think that is obvious enough by itself. Unfortunately in the ensuing drop-down list showing the various prices for each “resource” (the fancy WooCommerce Bookings way of not confusing it’s ‘resources’ with WooCommerce’s ‘variations’) they added a + symbol by the price. This has presented an issue to real customers who see the aforementioned “From:” price and think the “Resource’s” amount is in addition to the “From:” price.
I’ve elected to not display a “from price” on the single product page but still allow the “From:” price to show everywhere else (like the shop page”. The WooCommerce settings in the GP Premium plugin when activated will show an option in the Layout>WooCommerce>Shop location of the customized to disable the price display. But that affects everything except the single product page. There is no option to disable the price display for the Single product page at Layout>WooCommerce>Single Product section.
That’s my feature request!
In the mean time one can achieve this by adding this line of css to the customizer’s Additional CSS tool:
.product .price {display: none;}It’ll only remove the Pricing display from the Single product display.
It’s not going to be an issue for products with “variations” or “resources” but may be an issue for regular products if the price isn’t displayed above the add to cart button but the price will still display on the cart and checkout pages.
The CSS option may be the way to go but I think it would be a neat option to include in the GP Premium settings for those who use things like variations and resources.
I’d be interested in getting some feedback on the idea I’ve implemented or if anyone has a different idea!
Thx
December 30, 2022 at 5:12 am #2477807Scott
I guess I should add a couple before and after screenshots
Before:

After:
December 30, 2022 at 7:08 am #2477897David
StaffCustomer SupportHi there,
to remove the HTML for the price try adding this PHP Snippet to your site:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );Now, it may not work, and is one of the reasons why there is not an option in GPs Woos settings, and thats because different options / plugins / extensions in Woo may have unhooked it already and hooked in their own callback.
-
AuthorPosts
- You must be logged in to reply to this topic.