Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,
    That must be an error in your template. The price is being displayed above that, and the div that pops up has no content, so css cant help you. You need to edit your template and add php code to display the price there.

    Thread Starter Hampmir

    (@hampmir)

    Damn thats not good, then i guess i just need to live with this error ??

    Thread Starter Hampmir

    (@hampmir)

    UPDATE: i can see that if i delete all the custom css i have made, the empty price box doesn’t pop up. So it must be something i have made in CSS ??

    Yes, if you need the empty block not to pop up, that can surely be achieved with CSS.

    Thread Starter Hampmir

    (@hampmir)

    Yes i have now located the error, though i dont know how to corrects it. the problem is this code i made in custom CSS:

    div.woocommerce-variation-price {
    height: 40px; <————- THIS. This forces the box to appear. its made to get som padding between the price that pops up and the quantity box. So then i replace it with padding-bottom instead and that sort of works but it still gives a small blink on the products where the price doesnt show. If i remove the height and padding completly everything works fine, but then the price will be placed very close to the quantity box on the products where the price shows, like the woocommerce test product. Any suggestions on how to solve this?

    i guess i could just add padding-top to the quantity box and the button, but that semme like a weird solution ??

    Thread Starter Hampmir

    (@hampmir)

    UPDATE: I solved it by using lineheight to make the padding instead. It’s not really the right way to do it i guess but it works ??

    You can simply hit it with display:none, cant you?

    Thread Starter Hampmir

    (@hampmir)

    I need the price to pop up on some products where the variations have different prices, so i cant do display:none i guess ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to show price after choosing variation?’ is closed to new replies.