Site logo

Archived topic

Show bulk price on single product page

28 replies · Started by Michiel Lap on August 29, 2019

Viewing posts 16–29 of 29

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 );
}

IT DOES!

Awesome :)

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

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: "

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?

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;
}

Looking good, thx!

Glad to be of help

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?

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

OK I will, thx

You're welcome

This archived topic is closed to new replies.