Home › Forums › WoodMart support forum › WoodMart Loop Builder – Price alignment between sale and regular products

WoodMart Loop Builder – Price alignment between sale and regular products

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #731908

    mralperem
    Participant

    Hello,

    I’m using WoodMart Loop Builder to create a custom product grid.

    I changed the price layout so that the regular (old) price appears above the discounted price instead of beside it.

    However, when discounted and non-discounted products appear side by side, their price sections and add-to-cart icons do not align consistently.

    My desired layout:

    Discounted product Regular product

    Product title Product title

    ₺50,00 (old price)

    ₺40,00 [+] ₺50,00 [+]

    I want the current prices and add-to-cart icons to align horizontally across all product cards, regardless of whether a product is on sale.

    My current CSS:

    .wd-loop-prod-price .price {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    }

    .wd-loop-prod-price .price del {
    color: #bbb !important;
    }

    .wd-loop-prod-price:has(del) .price ins {
    display: block;
    line-height: 1;
    }

    .wp-block-wd-container:has(> .wd-loop-prod-price del) > .wd-add-btn-wrapp {
    align-self: flex-end;
    }

    I’ve tried adjusting flex alignment, container heights, margins, and line heights, but haven’t found a reliable solution.

    The product cards already have equal heights, and their price row containers share the same bottom position.

    Is there a recommended way to achieve this layout using WoodMart Loop Builder?

    Ideally, I’d like to avoid hardcoded heights, manual pixel offsets, or adding empty price elements to products without discounts.

    Thank you!

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)