Editing Product Card in Collection pages to show discounted price before the original price.

Editing Product Card in Collection pages to show discounted price before the original price.

Artey
Tourist
12 0 5

Hi everyone,

 

I am on Dawn 15.0 theme. I would like to change the layout of the prices below the product card in the collections page as shown below. Can you provide instructions on how to implement this?

 

https://www.artey.com.au/collections/canvas-prints

 

Screen Shot 2024-07-20 at 6.18.41 pm.png

Replies 7 (7)

AK_Design_Dev
Shopify Partner
187 16 16

Hello @Artey 

Please share Your store url 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
AK_Design_Dev
Shopify Partner
187 16 16

You want this type

AK_Devloper_0-1721464945056.png


or this type 

AK_Devloper_1-1721465009571.png

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @Artey

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

<style>
.price__sale {
    display: flex !important;
    flex-direction: column !important;
}
span:has(.price-item.price-item--regular) {
    order: 2;
}

span.price-item.price-item--sale.price-item--last {
    order: 1;
}
</style>

Here is result: 

BSSCommerceHDL_0-1721465125133.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Artey
Tourist
12 0 5

Hello. Thank you for the initial response. What about for changing the words used? I want to change the word "From" to "Was". I might also change the word "Sale" to "Now" 

 

Artey
Tourist
12 0 5

Hello. Thank you for the initial response. What about for changing the words used? I want to change the word "From" to "Was". I might also change the word "Sale" to "Now".  

 

niraj_patel
Shopify Partner
2378 514 512

Hello @Artey 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .collection .price__sale {
         display: flex !important;
         flex-direction: column !important;
  }
   span:has(.price-item.price-item--regular) {
         order: 2;
   }
   span.price-item--sale.price-item--last {
         order: 1;
  }
</style>

techlyser_web_0-1721422570194.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com