[Support request] Show bulk price on single product page

Home Forums Support [Support request] Show bulk price on single product page

Home Forums Support Show bulk price on single product page

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #1007685
    David
    Staff
    Customer Support

    I wonder if this filter still works:

    add_filter( 'woocommerce_format_sale_price', 'db_sale_price_only', 20, 3 );
    function db_sale_price_only( $price, $regular_price, $sale_price ) {
    	return wc_price( $sale_price );
    }
    #1007692
    Michiel Lap

    IT DOES!

    #1007694
    David
    Staff
    Customer Support

    Awesome 🙂

    #1007696
    Michiel Lap

    And can I also remove the striked through price of the bulk price?

    #1007699
    David
    Staff
    Customer Support

    On this article i linked before, check out example 2:

    https://booster.io/shortcodes/wcj_product_wholesale_price_table/

    I believe the price_row_format="%price%" argument is what you need.

    #1010412
    Michiel Lap

    This is a difficult one I guess:

    You see, when I am using example 2 as you can see on my site: https://gewoongezond.be/p/30min-afslankprogramma/ it is put in a horizontal table, but it looks like the table is 100% and the columns are equally (50-50) divided, so the price is in the center of the second column.
    Can I put the price behind right behind “Vanaf 3 stuks: ”

    #1010449
    Michiel Lap

    And what I also would like to know, if I can put a white line between the title and price of the product, and remove a line between the price and the wholesale price?

    #1010506
    David
    Staff
    Customer Support

    So this CSS to make the Wholesale price inline:

    .wcj_product_wholesale_price_table th, .wcj_product_wholesale_price_table td {
        display: inline;
    }

    And this CSS for adjusting the space above and below the normal price:

    .woocommerce div.product p.price {
        margin-top: 1em;
        margin-bottom: 1em;
    }
    #1010807
    Michiel Lap

    Looking good, thx!

    #1010951
    David
    Staff
    Customer Support

    Glad to be of help

    #1011783
    Michiel Lap

    Hey David,

    I have a strange thing:
    It happens with the use of plugins wholesale price by booster and extra product options.
    When I have a product option that adds €10 to the price, the price label is corrected, but the wholesale price is not. For example here, https://gewoongezond.be/p/herbalife-drinkontbijt-naturel when you choose
    Formule 1 smaak Vanille 780g.

    Is there a way to adjust this?

    #1011788
    David
    Staff
    Customer Support

    You would need to ask the Booster plugin developer that question.

    #1011800
    Michiel Lap

    OK I will, thx

    #1011922
    David
    Staff
    Customer Support

    You’re welcome

Viewing 14 posts - 16 through 29 (of 29 total)
  • You must be logged in to reply to this topic.