Home Forums WoodMart support forum adding pretext to variation price

adding pretext to variation price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #266365

    Dakenmarkt
    Participant

    Hi,

    There is an option in the template to hide multiple prices for products with variations.
    I have enabled this option but would like to see an additional text in front. like “From”
    For example: From $10,00

    I tried other plugins and snippets but they all mess up the woodmart template.
    So none off them are compatible with the woodmart template.

    Can you point out the php line or js file in woodmart theme that is responsible for hidding the second part of the variation price?

    #266464

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    body .product-type-variable .price span.amount:before {
    content:"from ";
    }

    Best Regards

    #266493

    Dakenmarkt
    Participant

    CSS is king lol.

    Thanks for the help in the right direction .. works like a charm

    Only after selected a more expensive variation on the product page you might not want the “From” showing in front off all variations. So for anyone who doesnt want the prefix showing at the product page i figured out the following CSS addition.

    .pewc-main-price span.woocommerce-Price-amount:before {content:"" !important;color: #777;
    font-size: 80%; font-weight: 500; } 
    #266713

    Hello,

    If you have any questions please feel free to contact us.

    Best Regards

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)