Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Web design Help!

web design help needed

     

bestofkashmir

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

9:12 pm on Apr 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

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

12:49 pm on Apr 4, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

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>

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

Featured Threads

Hot Threads This Week

Hot Threads This Month