Viewing 6 replies - 1 through 6 (of 6 total)
  • What do you want to add between the normal price and the discount price? Sometimes its possible to add some text using a custom style, but to be able to advise you, can you post the url to a relevant page so the markup can be examined with browser tools. Different themes can have different markup.

    Altering the position of the add-to-basket button is likely to need a new page template. PHP skills will be required.

    Thread Starter jfosdal

    (@jfosdal)

    oh sorry. I wanna add a break ” < br > “. So the price and discount price is in two linies.

    I should be able to edit a existing template to change the posting of the basket button.

    http://www.terrassevarmeren.dk/product/solamagic-terrassevarmer-2000eco-pro-arc-m-trinloes-varmeregulering/

    Editing templates is not recommended because they can be overwritten by updates.

    I can’t add a tag with css, only text, but this should do what you want:

    .woocommerce .summary .price del
    {display:block}
    .woocommerce .summary .price ins
    {margin-left:0}

    If your theme does not have a setting where you can enter custom css, you can use a plugin like this one:
    https://wordpress.org/plugins/simple-custom-css/

    It would be a job to move the add-to-basket button below the prices, but there is another approach.

    If a variable product has different prices, WooCommerce will show the variation price between the dropdown and the add-to-basket. This does not happen if all the prices are the same. However, this helpful site has a small function which goes in functions.php for your child theme and it should show the price even if the variations are the same.
    http://bumbu.me/display-always-woocommerce-variable-product-price/

    Thread Starter jfosdal

    (@jfosdal)

    cool 🙂 that did the trick. cheers

    Thread Starter jfosdal

    (@jfosdal)

    btw, do you know how to remove those white spaces in the top ?
    no need to have much air between each of the linies

    http://www.terrassevarmeren.dk/spaces.jpg

    #header
    {padding-top:8px; padding-bottom:0; margin-bottom:10px}
    #navigation
    {margin-bottom:4px}
    #breadcrumbs
    {margin-bottom:0}
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Edit single-product’ is closed to new replies.