WordPress.org

Forums

How to remove the "from" price in SUBSCRIPTION variable products (2 posts)

  1. Louis de B
    Member
    Posted 1 year ago #

    Hi all, thanks for the support,

    I am looking at deleting the "from" XX$ price that appears on the variable product page, but for subscriptions products (with the woocommerce subscriptions plugins). I have found many solutions in other posts in the forum, but only for classic variable products and it does not work for subscription produts.

    I believe they have specific filters as the price string is very specific, but I couldn't succeed in deleting this "from" price on product page.

    Any ideas on how to do it? It would be very helpful!

    Thanks for your help

  2. paulmoreton
    Member
    Posted 5 months ago #

    Hi,

    I'm having the same problem trying to remove "From" text from the variable subscription product pages. Did you find a solution? So far I've tried the following:

    /*WooCommerce - remove "From" text on product pricing */
    add_filter('woocommerce_variable_price_html','custom_from',10);
    add_filter('woocommerce_grouped_price_html','custom_from',10);
    add_filter('woocommerce_variable_sale_price_html','custom_from',10);

    function custom_from($price){
    $new_from = "Deposit";
    $price = str_replace();
    return $price;
    }

    I'm guessing it's as simple as finding the correct filter name for the variable subscription product. However so far I've had no joy.

    Kind regards
    Paul

Topic Closed

This topic has been closed to new replies.

About this Topic