All things Shopify and commerce
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 elysianclo.store
Hi,
1. To remove the cents on the price. Go to Settings -> Store details Find section "Store currency" and click "change formating".
{{amount_no_decimals_with_comma_separator}}
See here to more options https://help.shopify.com/en/manual/markets/pricing/currency-formatting
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 %}
<script>
window.location.href = '{{ "collections/all" | shopify_url }}';
</script>
{% endif %}
Like this example.
Note: Change the URL depend on what is you need.
Hey,
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:
<script>
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);
}
</script>
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024