Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1147444

    Hi is there a way to put a text before the price example: From $ 3,50.
    I want to do this on the shop/archive page where you can see the products of the woocommerce plugin.

    #1147543

    Nevermind you can close this, i’ve already done it. The code is.

    add_filter( ‘woocommerce_get_price_html’, ‘cw_change_product_price_display’ );
    add_filter( ‘woocommerce_cart_item_price’, ‘cw_change_product_price_display’ );
    function cw_change_product_price_display( $price ) {
    // Your additional text in a translatable string
    $text = __(‘Vanaf ‘);

    // returning the text before the price
    return $text . ‘ ‘ . $price;
    }

    #1148198

    Hi,

    Thank you for sharing we much appreciate this! :)
    If you need anything else please feel free to create a new post.

    Best regards,
    Basilis

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.