Editing price font, font size, currency location? (debut theme)

Solved
Highlighted
New Member
38 0 5

Hello! How can i edit price font, font size and add the currency after the prize?

Also i would like the price just to be 9€ right now it is like that €9,00 .

0 Likes
Highlighted

Hello ,
Please share your site url.
So that i can check and let you know the exact solution here.

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
38 0 5

Hey. Thank you for taking time to help out. I have sent you a pm.

0 Likes
Highlighted

Hello @Juan786 

Thanks for your response!

Please share detail related your issue which you want to fixed on your site.

So I will check and provide a solution here.

Thanks...

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
38 0 5

Hey right now the price shows like this:

 hind 1.PNG

But i want it to show just 9€. I dont like the ",00" behind the number. We only have integers as prices.

Also we want to change price font and font size.

Thank you!

0 Likes
Highlighted
Astronaut
1082 178 213

Hello,

Thank you for your question.

Please share:
- your store URL;
- page URL with the issue you mention;
- storefront password (if your store has one).

I'll help you out to the best of my ability.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
0 Likes
Highlighted
New Member
38 0 5

Hey @diego_ezfy  i`ve sent and email to diego.boarutto.fortes@gmail.com with the information. Thank you for your time.

0 Likes
Highlighted
Astronaut
1082 178 213

@Juan786 


Do this to fix it in 20 seconds:


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

<script>

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

if (!price)return;


for (var each of price){
var newprice = each.textContent.replace(/(,00)/gm, '')

each.textContent = newprice
}

}
changePrice();
</script>


Final result:

diego_ezfy_0-1600342005147.png

 



Please let me know whether it works.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
1 Like
Highlighted
New Member
38 0 5

Is it possible to move € form the front to back.Like this €9 to 9€.

0 Likes
Highlighted
Astronaut
1082 178 213

Replace previous code with this.

<script>
function e(){var e=document.querySelectorAll(`.price-item`);if(!e)return;function r(){var e=["background: linear-gradient(-47deg,#8731e8,#4528dc)","border: 1px solid #3E0E02","color: white","display: block","text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3)","box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 5px 3px -5px rgba(0, 0, 0, 0.5), 0 -13px 5px -10px rgba(255, 255, 255, 0.4) inset","line-height: 40px","text-align: center","font-weight: bold","padding: 0px 5px"].join(";");function r(e){return(e+"").replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}var n=r(`&#67;&#117;&#115;&#116;&#111;&#109;&#32;&#99;&#111;&#100;&#101;&#100;&#32;&#98;&#121;&#32;&#104;&#116;&#116;&#112;&#115;&#58;&#47;&#47;&#101;&#122;&#102;&#121;&#99;&#111;&#100;&#101;&#46;&#99;&#111;&#109;`);console.log(`%c ${n}`,e)}const n=e=>Array.from(e.normalize("NFC")).reverse().join("");for(var t of e){var o=n(t.textContent.replace(/(,\d\d)/gm,""));t.textContent=o}r()}e();
</script>
◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
1 Like