The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 03-16-2014, 10:44 AM
Seb's Avatar
Seb is offline
Junior Member
 
Join Date: Feb 2014
Posts: 4
Default

custom text under "Checkout" button on "Your Shopping Bag" page..


Hello,

I would like to add custom text under "Checkout" button on "Your Shopping Bag" page. Though I am not seeing an update after pasting the following code in my Weebly page where my Ecwid widgets are.

Can anyone see what is wrong with the code below??


<script>
ecwidMessages = {
"ShoppingCartView.custom_terms_n_conditions":"Don' t have a PayPal account?,
...and want to pay via credit card?,
Look out for credit card options in PayPal.",
}
</script>



Many Thanks!
  #2  
Old 03-17-2014, 12:34 PM
Corwin's Avatar
Corwin Corwin is offline
Ecwid Team
 
Join Date: Jan 2014
Posts: 310
Default

Quote:
Originally Posted by Seb View Post
Hello,

I would like to add custom text under "Checkout" button on "Your Shopping Bag" page. Though I am not seeing an update after pasting the following code in my Weebly page where my Ecwid widgets are.

Can anyone see what is wrong with the code below??


<script>
ecwidMessages = {
"ShoppingCartView.custom_terms_n_conditions":"Don' t have a PayPal account?,
...and want to pay via credit card?,
Look out for credit card options in PayPal.",
}
</script>



Many Thanks!
All text shown by Ecwid on the storefront can be changed by inserting javascript code with updated text labels as described in this article.

The code that you provided isn’t working because you specified the value of ShoppingCartView.custom_terms_n_conditions text label in multiple lines which prevented Ecwid from interpreting it correctly. If you wish to show the text label in multiple lines you should use <br> line breaker HTML tag in the value of text label for that:

Code:
<script>
ecwidMessages = {
"ShoppingCartView.custom_terms_n_conditions":"Don' t have a PayPal account?<br>...and want to pay via credit card?<br>Look out for credit card options in PayPal."
}
</script>
The javascript code for modification of text labels should be inserted before Ecwid integration code. This is how to do that for a Weebly web-site:

- Log into your Weebly account and proceed to DESIGN page through the navigation menu at the top.
- Click the “Edit HTML/CSS” button.
- Select the HTML file that you used as a layout for the page to which you added Ecwid.
- Add the code I listed above right after the <body> tag.
- Save changes and publish your web-site.

That will add the text your javascript code contains below the “Checkout” button on the shopping basket page.
__________________
Bulat F.,
Ecwid Team

help portal
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
custom text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:46 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.