How to remove cents on the price?

39 0 2

Hi all, 


Currently editing my website and I would like to remove the cents on the price, For example, it's $50.00, I just want to be $50. 


Also, is there any way to remove the home page on Dawn theme? So it can go straight to the ALL COLLECTION page instead of having to go through the enter page.


my website is

Replies 2 (2)

Shopify Partner
36 10 5


1. To remove the cents on the price.  Go to Settings -> Store details Find section "Store currency" and click "change formating".




See here to more options


2. To Redirect from homepage to collection page

Go to your Shopify admin, then navigate to "Online Store" > Themes > Customize your theme.

In Homepage add new Section with "Custom Liquid" and write this code: 


{% if request.path == '/' and request.design_mode != true %}
    window.location.href = '{{ "collections/all" | shopify_url }}'; 
{% endif %}


Like this example.



Note: Change the URL depend on what is you need.

Available for hire : novayadi85[at]
Chat on WhatsApp
Buy me coffee

Shopify Partner
14 1 1

1. In your Shopify Admin go to online store > themes > actions > edit code and search theme.liquid file.
2. In your theme.liquid file, find the </body> (press CTRL + F  on Windows or command + F on Mac)
3. paste this code right above the </body> tag:


function updatePrice(){
var prices = document.querySelectorAll(`.price-item`);

if (!prices)return;

for (var each of prices){
each.innerText = each.innerText.replace('.00', '');

 window.onload = function() {
setTimeout(updatePrice, 50);