homepage Welcome to WebmasterWorld Guest from 54.227.20.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Web design Help!
web design help needed
bestofkashmir



 
Msg#: 4436834 posted 7:46 pm on Apr 3, 2012 (gmt 0)

Hi, using BigCommerce.com for our ecommerce site, we wanted to have the currency converter as a drop-down list instead of the default.
We have been able to do the necessary changes and the currency changes work OK when different currencies are selected, BUT the display currency is always USD irrespective of which currency we may select.

Given below is the modified code in 2 parts (files). Please note Bigcommerce uses Placeholders designated by %%----%%:

Panels/SideCurrencySelector.html


<div>
<span>Currency</span>
<span><select ONCHANGE="location = this.options[this.selectedIndex].value";>
%%SNIPPET_ChooseCurrencyList%%
</select></span>
</div>


Snippets/SideCurrencySelectorCurrency.html

<option value="%%GLOBAL_CurrencySwitchLink%%">
<span>%%GLOBAL_CurrencyName%%</span>
</option>


Thanks for your help.

 

Staffa

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4436834 posted 9:12 pm on Apr 3, 2012 (gmt 0)

I would suggest that you check through the Placeholders code to see what GLOBAL_CurrencyName refers to. I might be that USD is hard coded.

bestofkashmir



 
Msg#: 4436834 posted 11:00 am on Apr 4, 2012 (gmt 0)

I don't think it is hard coded. Such placeholders start with LNG. Also, I have included a version without placeholders and the result is the same:

<select onchange="location = this.options[this.selectedIndex].value">
<option value="?setCurrencyId=1"> USD </option>
<option value="?setCurrencyId=2"> GBP </option>
<option value="?setCurrencyId=3"> EUR </option>
<option value="?setCurrencyId=4"> AUD </option>

</select>

Staffa

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4436834 posted 12:49 pm on Apr 4, 2012 (gmt 0)

If I understand correctly, your page shows a price in XYZ of 10.50

If I want this price to show in Euro, then I select Euro in Panels/SideCurrencySelector.html and 10.50 is correctly converted

but instead of showing Euro, Snippets/SideCurrencySelectorCurrency.html shows USD

If that's the case then I would look again at the original code of the default settings of Panels/SideCurrencySelector.html (before it was a dropdown box) and its connection to Snippets/SideCurrencySelectorCurrency.html for it seems that by converting to a dropdown box this connection was lost.

bestofkashmir



 
Msg#: 4436834 posted 4:06 pm on Apr 4, 2012 (gmt 0)

Original content given below:

Panels/SideCurrencySelector.html

<div class="Block Moveable Panel CurrencyChooser" id="SideCurrencySelector">
<h2>%%LNG_CurrencyConverter%%</h2>
<div class="BlockContent">
<p>%%LNG_ChooseCurrencyInfo%%</p>
<dl class="CurrencyList">
%%SNIPPET_ChooseCurrencyList%%
</dl>
</div>
</div>
-------------------------------------------------

Snippets/Sidecurrencyselectorcurrency.html

<dd class="ChooseCurrencyBox" style="%%GLOBAL_CurrencyFlagStyle%%">
<a href="%%GLOBAL_CurrencySwitchLink%%" class="%%GLOBAL_CurrencySelected%%">
<span class="Flag">%%GLOBAL_CurrencyFlag%%</span>
<span class="Text">%%GLOBAL_CurrencyName%%</span>
</a>
</dd>

-------------------------------------------------

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved