Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to Consistently Align Price Information at the Bottom of Product Cards?

Solved

How to Consistently Align Price Information at the Bottom of Product Cards?

bynatasyayoe
Tourist
7 0 1

How can I ensure that the price information on my product cards is consistently aligned at the bottom? I've tried various solutions from previously resolved questions, but none have worked.

 

Currently, the alignment is inconsistent, with some prices at the top and others at the bottom. I'd like all prices to align at the bottom, right above a specific line. Any assistance would be greatly appreciated. Thank you!

bynatasyayoe_0-1732589010249.png

 

Accepted Solution (1)
Dan-From-Ryviu
Shopify Partner
10241 2036 2106

This is an accepted solution.

Please add this more code 

.card-information .price--on-sale .price__sale {
    display: flex;
    flex-direction: column;
}

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 15 (15)

Dan-From-Ryviu
Shopify Partner
10241 2036 2106

Hi @bynatasyayoe 

Could you share your store link so I can check?

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

bynatasyayoe
Tourist
7 0 1
Dan-From-Ryviu
Shopify Partner
10241 2036 2106

Hi @bynatasyayoe 

Please add this code to Custom CSS in Oline Store > Themes > Customize > Theme settings 

.card__content .card__information {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

Screenshot 2024-11-26 at 10.18.12.png

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

bynatasyayoe
Tourist
7 0 1

Hi Dan,

 

Thank you for the solution! It seems like it managed to push the price information to the bottom. However, the layout is still different for some products. For some the original price is at the top and for some it's on the same line as the sale price. How do I make the layout look like the most right product card? (original price on top, sale price at the bottom). Thank you!

bynatasyayoe_0-1732591610721.png

 

Dan-From-Ryviu
Shopify Partner
10241 2036 2106

There is not enough space to display in one line if your price has "From..." text

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

bynatasyayoe
Tourist
7 0 1

Hi Dan,

 

I want the price to be in 2 lines like the furthest right product card (Calvin Klein Eternity Intense Woman Eau de Parfum). Shouldn't that give more space to the price instead of making it 1 line? So the layout will be:

  1. Original price (the one in black) at the top
  2. Sale/From price (the red one) at the bottom

Please let me know if this is possible! Thank you.

Dan-From-Ryviu
Shopify Partner
10241 2036 2106

This is an accepted solution.

Please add this more code 

.card-information .price--on-sale .price__sale {
    display: flex;
    flex-direction: column;
}

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

bynatasyayoe
Tourist
7 0 1

Thank you so much Dan! It worked. You're amazing!😁

Dan-From-Ryviu
Shopify Partner
10241 2036 2106

You are very welcome! 

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

AnneLuo
Shopify Partner
1138 211 235

Hi, @bynatasyayoe 

Can you please share the store URL so that I can assist you?

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

bynatasyayoe
Tourist
7 0 1

Hi Anne, please see my reply above! Thank you.

AnneLuo
Shopify Partner
1138 211 235

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the </head> tag

<style>
.card__information .card__heading {
    margin-bottom: 25px !important;
}
.card__information .card-information {
    position: absolute !important;
    bottom: 80px !important;
}
</style>

Result:

AnneLuo_0-1732591343307.png


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

suyash1
Shopify Partner
10130 1253 1593

@bynatasyayoe  can you please share your website link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
bynatasyayoe
Tourist
7 0 1

Hi Suyash, please see my reply above! Thank you.

suyash1
Shopify Partner
10130 1253 1593

@bynatasyayoe   please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

.card__information {display: flex; flex-direction: column; justify-content: space-between;}

 

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.