Price range

what to do if the price range does not add the following numbers after the space

Hi @antondavydenkow

If your Shopify price range doesn’t include the expected numbers after a space (e.g., “$50 – $100” instead of “$50–$100”), it’s usually due to formatting issues in the product or theme settings. Here’s a quick guide to troubleshoot and fix it:

1. Check Your Theme’s Settings

Some Shopify themes automatically format the price range based on the theme’s default styling. To adjust:

  • Go to Online Store > Themes > Customize.
  • Look for sections like Product Page, Collections, or Price Display Options.
  • Ensure the price formatting options (like spacing or separators) are set correctly.

2. Update Your Product Prices

Double-check your product prices in the Shopify Admin:

  • Navigate to Products > Select a product.
  • Ensure you’ve set Price and Compare at Price fields. If the fields are blank or inconsistent, Shopify may display incomplete ranges.

3. Check the Theme’s Code

If it’s still not working, the issue might be in the theme’s liquid code. You’ll need to edit this carefully:

  • Go to Online Store > Themes > Actions > Edit Code.
  • Open the product-card.liquid or price.liquid file (the exact file depends on your theme).
  • Look for the price range code snippet. It might look something like this:

{{ product.price | money }} – {{ product.compare_at_price | money }}

Ensure there’s a proper space before and after the dash (–). You can update it to:

{{ product.price | money }} – {{ product.compare_at_price | money }}

Save and preview your changes to see if the range displays correctly.

4. Clear Cache

Sometimes, Shopify or browser caching might show outdated data. Clear your browser cache or check the store in incognito mode to see updated results.

5. Use an App for Custom Formatting

If you’re not comfortable editing code, consider using a Shopify app like Custom Fields or Price Addons to manage your price displays.

If you’re still stuck or unsure about editing the code, feel free to reply, and I’ll help you figure it out.

Best regards,
Daisy

Thanks for your help, I’ve already fixed everything.