hi! could anyone help me, i’m trying to remove the currency decimals that show on the product cards in the collections? i’ve successfully done it for the default store currency, but for any other currency, it still shows the currency the decimals
Topic summary
Main Issue: A user successfully removed currency decimals for their default store currency on product cards in collections, but decimals still appear for other currencies in their multi-currency setup.
Proposed Solution:
- Navigate to Online Store > Themes > Actions > Edit Code
- Locate the product pricing code in files like product-card.liquid or collection-template.liquid
- Find the price display code (typically
{{ product.price | money }}) - Replace it with
{{ product.price | money_without_trailing_zeros }}to remove decimals globally across all currencies - Save changes and refresh the site
Status: The thread includes an unrelated question about header menu text color and another about integrating Bandcamp items into Shopify collections (answered with external link workarounds). The original decimal removal question appears to have received a technical solution but no confirmation of resolution from the original poster.
Hi @Element1
To remove currency decimals from product cards for all currencies in Shopify collections, ensure you’re using a proper formatting method for multi-currency handling. You can update your code as follows:
- Go to Online Store > Themes > Actions > Edit Code: https://prnt.sc/U-e0sESi0__h
- Open the file where product pricing is displayed, often product-card.liquid or collection-template.liquid.
- Find the code displaying the price, usually {{ product.price | money }}.
- Replace it with {{ product.price | money_without_trailing_zeros }} to remove decimals globally.
- Save and refresh your site.
This ensures decimal removal for all currencies.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy
Please help me. Thank you.
Hi @Beelze6
Bandcamp items cannot directly integrate into Shopify collections. However, you can add Bandcamp products or items from another webpage by creating external links within your Shopify store. Here’s how:
- Go to Products > Add Product in your Shopify admin: https://prnt.sc/r0Z3Tst4wlGk
- Use a placeholder product name and description.
- Add an “external link” in the product’s URL field that redirects to the Bandcamp page: https://prnt.sc/XxxzP4438AKP
- Assign the product to your desired collection to include it in “All items.”
This way, clicking the product will redirect users to the external page.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy
