WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Manually edit "From:" price (18 posts)

  1. dmarrone
    Member
    Posted 1 year ago #

    Hi there,

    Can I manually edit the "From:" price that automatically shows a variable products lowest rate? I sell guided expeditions, and like to offer two payment options: 1) Pay deposit; 2) Pay in full. I find it quite misleading that a trip costing $1000 is displayed as "From: $400 (the deposit price).

    Please see my site here:
    http://lureofthenorth.com/?product_cat=trips

    Thanks for your advice!

    Dave

    http://wordpress.org/extend/plugins/woocommerce/

  2. jnmkin
    Member
    Posted 1 year ago #

    I also need help with this - anyone have any ideas? I managed to hide all the prices entirely on the catalog page, but the "from:" stuff still shows up on the individual product pages. And I'd prefer not to hide all prices anyway - just the ones for items with variable prices.

    Thanks!

  3. bheadrick
    Member
    Posted 1 year ago #

    the "from" text is not something you can change in the settings, which you may hav enoticed. It's also not within any of the templates - it's hard-coded within the product class. You can use a filter to change it (or eliminate it)

    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('From',$new_from,$price);
    return $price;
    }

  4. dmarrone
    Member
    Posted 1 year ago #

    Thanks very much bheadrick. I haven't tried it out yet, 'cause I'm not very tech savvy, but I have your instructions saved and will hopefully find the time to tackle this shortly.

  5. itskev
    Member
    Posted 1 year ago #

    Hey bheadrick. I haven't altered anything, but my "From:" text doesn't show on the product category page. How can I fix that so that it will show? Thanks.

    http://www.BrendasCheesecakes.com

    Update:
    The code shows in the source but it is not working. It says:
    <span class="product_list_price"><span class="from">From: </span><span class="amount">$15.00</span><span class="product_list_button">

  6. itskev
    Member
    Posted 1 year ago #

    BTW... I noticed that the word "From:" appears on my home page widget, but the category page doesn't show it, although the code is there.

  7. bheadrick
    Member
    Posted 1 year ago #

    found this in your custom css:

    .product_list_price .from {
    display: none;
    }
    it's in this file:
    /themes/builder/css/woocommerce_custom.css

  8. bheadrick
    Member
    Posted 1 year ago #

    now, I want cheesecake!

  9. itskev
    Member
    Posted 1 year ago #

    lol... now i got a bigger problem. I backed up my plugins, updated to newer woocommerce, and then add to cart is gone!. I restored my old plugins back in and the add to cart function is still gone.. oh my word... this stinks.

  10. itskev
    Member
    Posted 1 year ago #

    fixed the From:, thanks to you.

    now to my bigger problem... geeeshh

  11. tdu
    Member
    Posted 1 year ago #

    Hi, I am wondering if there is a way to completely remove the "From" field all together?

  12. outtareach
    Member
    Posted 1 year ago #

    Im trying to remove the word "Free!" from my products. Anyone know what to do here? Why would this be a default?

  13. bheadrick
    Member
    Posted 1 year ago #

    Well, if the price is $0, is it not free?

  14. outtareach
    Member
    Posted 1 year ago #

    lol, not sure how you solve that problem but I think I fixed it with a combination of two fixes I've found. thanks for the laugh.

  15. Paston
    Member
    Posted 1 year ago #

    Hi -

    I want to be able to use the add_filter mention above by bheadrick - but where do I put the code? first time using woocommerce :-)

  16. outtareach
    Member
    Posted 1 year ago #

    follow this

    http://www.skyverge.com/blog/hide-woocommerce-free-price-label/

    I also had to go into recent.php and find "Free!" and change it for it to work.

  17. Paston
    Member
    Posted 1 year ago #

    Thanks outtareach

    In my shop we sell boxes containing 10 items and the From price comes up showing the price for the box by default.

    What the customer would like me to do is to show the price for just 1 item in the From field.

    But he doesn't sell just 1 item (the minimum order quantity is 10).

    Is there anyway of showing that in the From field?

    Thanks

  18. elsonce
    Member
    Posted 1 year ago #

    hi there, i woud like to change the ''from'' text, im a noob on php and i just started my first wordpress woocommerce website....

    can anyone tell me how can i change the 'from' text??

    ps: i tryed to modify the woocommerce .po file but it didnt work...:(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic