Variations that are set with price ranges showing the range instead of main price

Solved7 replies4 participantsUpdated by Tony Rodriguez

  • Avatar: GreenLion
    GreenLion
    Participant

    Currently we have some products that have a range of prices between their variations. when you click onto the product and are on the single product page, you see the price range highlighted rather than the main variant price. we want the range to be removed and only the variation price to show.

    Files is visible for topic creator and
    support staff only.

    7 Answers

    Avatar: Ayan Rahman
    Ayan Rahman
    Support staff

    Hi,

    Thank you for reaching out to us.

    https://prnt.sc/-Bux8G8_LHm_ the price behavior you are seeing comes from WooCommerce by default and is not a bug.

    Warm Regards,
    The 8Theme Team

    Avatar: GreenLion
    GreenLion
    Participant

    I understand it’s not a bug. is there anything that can be added into the code to specifically only show the single product variations price or add some css onto the single product template?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @GreenLion,

    You can hide only one of the prices within a range using custom CSS.

    Before: https://prnt.sc/8Ula83hmQ49T
    After: https://prnt.sc/h83vBoe7-Coq

    You may use the following custom CSS:

    .product-type-variable .elementor-widget-woocommerce-product-etheme_price:has(p.price .amount ~ .amount) .amount + span,  
    .product-type-variable .elementor-widget-woocommerce-product-etheme_price:has(p.price .amount ~ .amount) .amount ~ .amount {  
        display: none;  
    }

    Please note that other solutions would require additional customization, which is beyond the scope of our basic support.

    For more information, please refer to our documentation:
    https://www.8theme.com/documentation/xstore/additional-customisation/optimal-placement-for-custom-css-code/

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: GreenLion
    GreenLion
    Participant

    can this not be appended to the specific variant price?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @GreenLion,

    Would you like to disable this custom CSS for specific products and apply it globally to others? Since the credentials were modified, we were unable to verify the exact products. However, as an example, you can use the following custom CSS in addition to the previous one:

    .postid-21260 .product-type-variable .elementor-widget-woocommerce-product-etheme_price:has(p.price .amount ~ .amount) .amount + span,  
    .postid-21260 .product-type-variable .elementor-widget-woocommerce-product-etheme_price:has(p.price .amount ~ .amount) .amount ~ .amount {  
        display: inline;  
    }

    You can find the product ID number (in this example, .postid-21260) using the browser inspector (https://prnt.sc/_2dINNov5w-T) or in the backend under Settings.

    Browser Developer Tools: https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Tools_and_setup/What_are_browser_developer_tools

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: GreenLion
    GreenLion
    Participant

    Thanks for the support! My topic “Variations that are set with price ranges showing the range instead of main price” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear GreenLion,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

The issue related to '‘Variations that are set with price ranges showing the range instead of main price’' has been successfully resolved, and the topic is now closed for further responses