Problem with Woocommerce prices display

Hello,

I’m setting up an ecommerce and in the tax parameters I’am using the price display suffix in order to display the price with tax at first and the price without tax under.

When I’m using the shortcode {price_excluding_tax},If I put text before or after the shortcode like that : {price_excluding_tax}HT, it creates a line break and I want everything to be in line. I have seen people doing it the exact same way I’m doing and the text is in line. Is the problem coming from the theme ? I need after the price to put HT in line with the price in order to mention that it is the price witout tax.

Thanks a lot for your help,

Gaelle

Hi There,

Please wrap your shortcode with a div then you can add the custom CSS to make price and text inline.

For example: <div style="display: flex"><span class="ex-price-tax">{price_excluding_tax}</span> <span class="price-text">HT</span></div>

Hope it helps :slight_smile:

Hello Thai,

Thank you for your answer. Where do I enter this line in my website ? It’s not working in price suffix in Woocommerce. Thank you

Hi Gaelle,

What do you mean price suffix in Woocommerce? Would you mind providing a sample URL where this is displayed?

Thanks!

Hello Rad,

The shop is not online yet so I’m sending you print screens so you can understand. The only thing I would like to achieve is to align the price with the HT mention. Other people have done it exactly the same and it’s working so I can’t figure out the problem. The text I want to be displayed after the price needs to be inserted in Woocommerce / Tax / Add prefix /suffix to product price.

Thank you for your help

Gaelle

Hi Gaelle,

I think it’s best if we can check it directly, I tried it on my end and it appears to be inline. I tried it with all stacks and all suffix are inline.

I also recommend contacting a Woocommerce developer as this feature isn’t theme related, the theme only displays what’s supplied to it.

Thanks!

Hello Rad,

I answered you in a secure note.
Thank you for your help.

Gaelle

Hi Gaelle,

It’s because of your Ultimate product catalogue plugin, and it’s adding block styling on that part. Please deactivate it and test it again.

Thanks!

Thank you Rad, I have tried and the problem is coming from this conflict. I’m contacting the Product Catalog team.
Thanks a lot for your help.

You’re most welcome, Gaelle.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.