Hi there,
I’m using the capital theme. Is there a way to have the sale banner appear on items that have multiple prices for different variants?
Thank you!
Issue: Add a “Sale” badge on product cards in the Capital theme, including items with multiple variant prices (e.g., the silver backpack should show a sale tag).
Proposed solution: Insert a Liquid condition on product cards to show the badge when a product is discounted:
Technical notes:
Assets shared: Store URL and screenshots illustrating the desired badge and insertion point.
Status: Not yet resolved. The requester couldn’t find the referenced element; helper clarified alternate snippet names and offered direct assistance/store access. Discussion remains open.
Hi there,
I’m using the capital theme. Is there a way to have the sale banner appear on items that have multiple prices for different variants?
Thank you!
hi,
Please share the store URL and also share the screenshots for where you want to place sale badge. in this case some coding are required.
I have some code for fill your requirement.
firstly, go to snippets, then find product-grid in snippet folder. then find product-item__image-wrapper after that paste given code above . (also see the screenshot).
{% if card_product.compare_at_price > card_product.price %}
After that, another code given below. paste this code above
layout >> theme.liquid
.tc_sale-badge { position: absolute; background: #eb0707; font-size: 16px; font-weight: 600; padding: 0px 10px; border-radius: 30px; color: #fff; display: inline-flex; align-items: center; right: 8px; top: 8px; }after paste the whole given code. sale badge look like this,
capital
@bgold I have given you the code, with screenshots, apply that code and see, even if you need any help, then contact us. thank you ![]()
thank you! I couldn’t find product-item__image-wrapper in the snippets folder
find product-card or product grid or card-product in snippet folder not product-item__image-wrapper.
after that find product-item__image-wrapper.
any problem to finding then you can give me access of your store i can add the sale badge.