Changing Currency

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Changing Currency

Post by zinc »

Pablo

I have two questions (One is a request):

1. Is there a reason why, when setting up currency, the site defaults to US Dollars when my first entry is GPB?

2. Is there any way to AUS/NZ/CDN to the $ sign to not confuse the customer when changing currency? (See your own sample)

Z
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
User avatar
Pablo
 
Posts: 24815
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Changing Currency

Post by Pablo »

The default currency can be set in either a PayPal button or eCommerce event. Because that determines the base price.
The order of the currencies in the dropdown menu does not affect this.

There is no standard option to add a currency sign.
User avatar
BaconFries
 
 
Posts: 6346
Joined: Thu Aug 16, 2007 7:32 pm

Re: Changing Currency

Post by BaconFries »

@zinc is thus what your after?
Image

Image

Image
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Changing Currency

Post by zinc »

BaconFries wrote: Mon Aug 10, 2026 10:12 am @zinc is thus what your after?
Image

Image

Image
EXACTLY!!!!!
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Changing Currency

Post by zinc »

Pablo wrote: Mon Aug 10, 2026 9:12 am The default currency can be set in either a PayPal button or eCommerce event. Because that determines the base price.
The order of the currencies in the dropdown menu does not affect this.

There is no standard option to add a currency sign.
OK - Thank you.
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
User avatar
BaconFries
 
 
Posts: 6346
Joined: Thu Aug 16, 2007 7:32 pm

Re: Changing Currency

Post by BaconFries »

@zinc just for testing simply just paste in a blank page between the <body></body> to see it work when selecting the currency from the dropdown.

Code: Select all

<select id="currency-select" onchange="updatePrices()">
    <option value="USD">USD</option>
    <option value="CAD">CAD</option>
    <option value="AUD">AUD</option>
   <option value="NZD">NZD</option>
</select>

<span class="price" data-amount="49.99">US$49.99</span>

<script>
const symbols = {
    USD: 'US$',
    CAD: 'CA$',
    AUD: 'AU$',
    NZD: 'NZ$'
};

function updatePrices() {
    const selectedCurrency = document.getElementById('currency-select').value;
    const symbol = symbols[selectedCurrency];
    
    document.querySelectorAll('.price').forEach(el => {
        const amount = el.getAttribute('data-amount');
        el.textContent = symbol + amount;
    });
}
</script>
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Changing Currency

Post by zinc »

This is amazing and it works wonderfully. Can I email you something?
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
User avatar
BaconFries
 
 
Posts: 6346
Joined: Thu Aug 16, 2007 7:32 pm

Re: Changing Currency

Post by BaconFries »

Yes no problem but heading out for a few hours but will read when back home
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Changing Currency

Post by zinc »

BaconFries wrote: Mon Aug 10, 2026 10:29 am Yes no problem but heading out for a few hours but will read when back home
No rush and no worries when you can.
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
User avatar
zinc
 
 
Posts: 2201
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Changing Currency

Post by zinc »

zinc wrote: Mon Aug 10, 2026 10:30 am
BaconFries wrote: Mon Aug 10, 2026 10:29 am Yes no problem but heading out for a few hours but will read when back home
No rush and no worries when you can.

What is the email again?
Proudly running WYSIWYG Web Builder since 2007...

https://50yearsofads.com/
Post Reply