Jump to content

Change "from price" text

Recommended Posts

  • 2 weeks later...
On 3/19/2020 at 5:18 PM, paul2009 said:

Please provide a little more information. It will help us if you include a working link to the page and explain what you want to change about the text "from". For example, is it the size, the font or do you want to translate the word?

To translate the word :-)

Link to comment
  • 2 weeks later...
  • 7 months later...
On 12/3/2020 at 4:23 PM, Mr-WOODLVING said:

I have  similar problem. I want to change "from 445.00" to "fra 445.00" It is basically the same just in Danish.

 

If you share link to a product, we can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 12/10/2020 at 8:27 PM, jacobtdb said:

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  $(document).ready(function() {  
		$("#productDetails .product-price").html(function() { 
          return $(this).html().replace("from", "new text");  
    });
	});
</script>

Can you share link to a product?

On 1/16/2021 at 12:59 AM, DavidHortvik said:

Hi, I just came across the same thing. I would like to translate the word "from " price on my websites as well. On template 7.0.

Have you had luck and solved this?

Thanks, David

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 1/18/2021 at 3:36 PM, DavidHortvik said:

Hi, please check https://www.ekustik.cz/katalog/absorber-woody-kid

My site is in Czech language and the "from" is the last big visible thing in english:

image.png.fc610242193a489020e9b7199bc590e6.png

 

Btw, do you think the "select" could be changed too? Either to translate it or hide it.

Thank you!

 

 

With form, add to Design > Custom CSS

.product-price {
    visibility: hidden;
}
.product-price * {
    visibility: visible;
    position: absolute;
    margin-left: -50px;
}

With select, try this guide.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Hi, thanks, this works partially. 

When I choose different option of the product, it then hides the whole price. I assume that it's because the price of the variant is not "from price" but the final price. And by moving it 50px to the left I cover it. 

It's interesting how there is just no way to simply change the word 'from' to any other word I would like...

The second option to remove "select" works only on 7.1, so that's a bummer.

Anyways, thanks for the help 🙂

Link to comment
On 1/18/2021 at 7:36 AM, tuanphan said:

Add to Home > Settings > Advanced > Code Injection > Footer


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  $(document).ready(function() {  
		$("#productDetails .product-price").html(function() { 
          return $(this).html().replace("from", "new text");  
    });
	});
</script>

Can you share link to a product?

 

Thanks it works great! :-)

Also how can i change the text "from" on pages like here ? https://www.truenorth-designs.dk/hjemmearbejdspladser

Its just under the Product Title

Best regards
Jacob

Link to comment
37 minutes ago, jacobtdb said:

Thanks it works great! :-)

Also how can i change the text "from" on pages like here ? https://www.truenorth-designs.dk/hjemmearbejdspladser

Its just under the Product Title

Best regards
Jacob

Just found a code that solved this problem - exchange 'fra' with your own text. Add this to Home > Settings > Advanced > Code Injection > Footer

<script>
$('.product-price').each(function() {
   var text = $(this).text();
   $(this).text(text.replace('from', 'fra'));
});
</script>

Link to comment
  • 11 months later...
On 1/26/2021 at 3:41 PM, jacobtdb said:

Just found a code that solved this problem - exchange 'fra' with your own text. Add this to Home > Settings > Advanced > Code Injection > Footer

<script>
$('.product-price').each(function() {
   var text = $(this).text();
   $(this).text(text.replace('from', 'fra'));
});
</script>

Hey any update on this as it dosent seem to be working for me?

cheers

Link to comment
8 hours ago, Jackfrompsc said:

would there be any way to only show a price after all varients (selections) have been made?

This is a different feature than changing the from. It is easier to help if we can keep each thread to one topic. Please start a new thread with your request. I think it could be done.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 years later...
On 3/2/2024 at 12:45 AM, architectureshooting said:

Useful thread!

Would there be also a code for changing the "from" text on the shop page like this one one my  website?

https://architectureshooting.com/druckeditionen-fine-art-print-editions

My template is wells.

Thank you and cheers

Markus

 

 

 

Try this code to Last Line in Code Injection > Footer

<script>
$(document).ready(function(){
    $(".product-price").html(function() { 
          return $(this).html().replace("from", "new text");  
    });
});
</script>

image.png.612946668339d16de7f71b0ba7f82ed0.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.