Disable Variable Product Price Range - by explorework

This topic has 36 replies, 5 voices, and was last updated 9 years, 11 months ago ago by Eva Kemp

  • Avatar: explorework
    explorework
    Participant
    October 22, 2014 at 09:53

    Hi, I want to hide the price range for appearing on single product page. Please suggest ways to hide it.

    Any css code, anything at all. Thanks for your time.

    35 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 22, 2014 at 12:42

    Hello,

    Please provide us with a page link where you want to hide the price range.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: explorework
    explorework
    Participant
    October 22, 2014 at 12:43

    http://makeinindiadigital.com/?product=3000-genuine-facebook-likes

    I have few more queries:
    2. I do not need ‘Compare’ button on my website. where can I remove it from?
    3. From the Single product page, I want to hide home->category->subcategory to be shown.
    4. I want to take user attachment on the product page before they checkout. As my business needs product customisation. I want to take some text input with attachement from users before checkout and want save it. Please help me address the above issues.

    Thanks.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 22, 2014 at 13:17

    Hello,

    1. To remove price range you need add this code into custom.css file:

    .single-product-page .product-info .price {
        display: none;
    }

    2. Could you please clarify where you that button?
    3. Do you mean you want to remove breadcrumbs? If so then you need add this code in custom.css:

    .woocommerce-breadcrumb {
        display: none;
    }

    4. You can achieve this using some 3rd-party plugins (perhaps there are some for Woocommerce).

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: explorework
    explorework
    Participant
    October 22, 2014 at 18:21

    Thank you Eva. The price range is invisible now.

    On the same page 1 have 2 more things:
    http://makeinindiadigital.com/?product=3000-genuine-facebook-likes

    1. “Add to Wishist” is shown twice on the page. Ideally, it should be only once, near the checkout button. How to delete another one?

    2. I still can see “Categories: Facebook Marketing, Social Media Marketing.” Is there any way to remove this too?

    About the ‘compare’ button I wrote in the above message, I simply deactivated the compare plugin and it got hidden. Now, I am just struggling with “Wishist”.

    Thank you for all your help.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 22, 2014 at 18:39

    Hello,

    1. Go to Woocomerce > Settings > Wishlist tab and choose “Use shortcode” in “Position” option.
    Don’t forget to save the changes.

    2. Please add this code in custom.css file:

    .single-product-page .posted_in {
        display: none !important;
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: explorework
    explorework
    Participant
    October 22, 2014 at 18:51

    Excellent it worked smoothly! 🙂 Thanks a ton!!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 22, 2014 at 18:54

    You’re welcome!
    If you have any questions don’t hesitate to contact us.

    Regards,
    Robert Hall.

    Avatar: explorework
    explorework
    Participant
    October 22, 2014 at 20:32

    I just noticed that breadcrumb is hidden on firefox however on chrome browser the category->sub category is still visible.

    http://makeinindiadigital.com/?product=ultimate-adwords-ppc-checklist

    What needs to be done?

    Thanks.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 22, 2014 at 20:42

    Hello,

    I’ve checked your site in Chrome and breadcrumbs aren’t shown.
    Try to clear cache and cookies in Chrome browser.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: explorework
    explorework
    Participant
    October 23, 2014 at 10:49

    yes, it is working. thanks again.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 23, 2014 at 12:32

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

    Avatar: ckronus
    ckronus
    Participant
    November 10, 2014 at 14:40

    Hello,

    I can’t seem to remove the product price range.

    Can you please walk me through it on wordpress.

    Thanks,
    Chris

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    November 10, 2014 at 19:04

    Hello @ckronus,

    Do you want to remove it from a single product page as well and keep only one price?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ckronus
    ckronus
    Participant
    November 10, 2014 at 22:22

    Hey Eva,

    Just display one price, not a range.

    Thanks,
    Chris

    Avatar: Eva
    Eva Kemp
    Support staff
    November 11, 2014 at 13:12

    Hello @ckronus,

    Please provide us with wp-admin panel credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ckronus
    ckronus
    Participant
    November 11, 2014 at 14:46

    Sent.

    Thanks!

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    November 11, 2014 at 16:57

    Hello @ckronus,

    As you are using product variations you can remove price range only with the code via custom.css, because each variation has its price and it’s difficult to show only one price.
    Otherwise you can contact Woocommerce support concerning this issue as this is their configuration.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ckronus
    ckronus
    Participant
    November 12, 2014 at 14:34

    Hey Eva,

    Right. I’ll contact them.

    Thanks for the help.

    Best,
    Chris

    Avatar: Eva
    Eva Kemp
    Support staff
    November 12, 2014 at 17:16

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

    Avatar: ckronus
    ckronus
    Participant
    November 18, 2014 at 01:36

    Hello Eva,

    I was told by Woocommerce to insert this code into the theme’s functions.php file but when I do the site goes blank…

    <?php
    // Use WC 2.0 variable price format, now include sale price strikeout
    add_filter( ‘woocommerce_variable_sale_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
    add_filter( ‘woocommerce_variable_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
    function wc_wc20_variation_price_format( $price, $product ) {
    // Main Price
    $prices = array( $product->get_variation_price( ‘min’, true ), $product->get_variation_price( ‘max’, true ) );
    $price = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
    // Sale Price
    $prices = array( $product->get_variation_regular_price( ‘min’, true ), $product->get_variation_regular_price( ‘max’, true ) );
    sort( $prices );
    $saleprice = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

    if ( $price !== $saleprice ) {
    $price = ‘‘ . $saleprice . ‘ <ins>’ . $price . ‘</ins>’;
    }
    return $price;
    }
    ?>

    Where would I paste this?

    Best,
    Chris

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 18, 2014 at 09:06

    Hello,

    I’ve added this code into functions.php file. Check it.

    Regards,
    Robert Hall.

    Avatar: ckronus
    ckronus
    Participant
    November 18, 2014 at 14:03

    Awesome! Thanks Robert.

    Best,
    Chris

    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 18, 2014 at 14:45

    You’re welcome!

    Regards,
    Robert Hall.

    Avatar: tbijeux
    tbijeux
    Participant
    December 29, 2014 at 19:49

    Hi there,

    I have the same issue, I’d like the price range for variable products to not appear.

    What should I do? Should I add the code into functions.php file??

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    December 29, 2014 at 20:07

    Hello @tbijeux,

    Add the code mentioned in the previous post into functions.php file.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: tbijeux
    tbijeux
    Participant
    December 29, 2014 at 20:34

    Hi Eva,

    I am getting a blank page, as the previous user. Help!

    Thanks

    Avatar: tbijeux
    tbijeux
    Participant
    December 29, 2014 at 20:37

    Shoot I can’t go back into the function.php and fix the code and I can’t login in back to WordPress I just get a white screen….it’s just a white screen.

    Please, contact administrator
    for this information.
    Avatar: tbijeux
    tbijeux
    Participant
    December 29, 2014 at 20:52

    Fixed the “White screen”……now how do I correctly add the code to remove the variable price range lol

    Avatar: Eva
    Eva Kemp
    Support staff
    December 29, 2014 at 22:10

    Hello @tbijeux,

    Please provide us with wp-admin panel and FTP credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

  • 1 2
    Viewing 30 results - 1 through 30 (of 36 total)

The issue related to '‘Disable Variable Product Price Range’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.