strikethrough line on product price - dawn theme

Topic summary

A user encountered an issue where the strikethrough line wasn’t appearing on compare-at prices in Shopify’s Dawn theme, despite setting both regular and compare-at prices correctly.

Initial troubleshooting attempts:

  • Multiple users suggested checking theme settings for compare-at price display
  • Recommendations included editing main-product.liquid or price.liquid files to add strikethrough styling
  • Code inspection revealed the price.liquid file already contained compare-at price logic

Root cause identified:

  • The problem only affected products imported from a previous WooCommerce store
  • Manually created test products displayed the strikethrough correctly
  • This indicated an import-related data issue rather than a theme problem

Resolution:

  • User resolved the issue by creating products manually instead of importing
  • A minor secondary issue emerged with French language text appearing despite store being in another language
  • Final suggestion from another user: add text-decoration: line-through; to .Price--compareAt class in theme.css for a CSS-based fix

The discussion concluded with the user thanking participants, though the import issue and language inconsistency weren’t fully explained.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

So i think i managed to solve the problem i guess

I imported all the products from my previous store that was made with wordpress + woocommerce, on all my imported products i have the problem with the compared-at price, but i just wanted to see if i upload a product manually (a test product), the problem will still be there ?

As an answer - no, the compared price appeared, but the text is in frech :rofl: i dont get it how because all the store is in another language not in frech, but still it’s much better than previous problem..

Thank you all for your help !

1 Like