sunshore@hotmail.com
VP-CART New User

149 Posts |
Posted - November 17 2015 : 14:44:39
|
I appreciate that VPASP 8 supports multiple currency now but we really like the dual currency from before because we could display both the Canadian price and the American price on our product page.
Is there a VPASP 8 version of [dualprice cprice] where I can display the American price along side our main (Canadian) currency again? |
Edited by - sunshore@hotmail.com on November 25 2015 12:30:43 |
|
ryo_best
VP-CART New User

90 Posts |
Posted - November 18 2015 : 15:34:49
|
Hi sunshore, i think you can use currency switcher from layout manager, or you mean that you want to show both currency at the same time in on page ? |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - November 18 2015 : 15:55:52
|
sorry my bad, set this to show dual price:
Xdualprice - Yes xdualconversionrate - fill with your conversion rate
this will show two price in your product page |
Edited by - serjtankian on November 18 2015 16:07:56 |
 |
|
sunshore@hotmail.com
VP-CART New User

149 Posts |
Posted - November 18 2015 : 16:19:01
|
I checked the config and I have xdualconversionrate_fcs_store_vp8: 0.7580064 xdualcurrencysymbol_fcs_store_vp8: US $ xdualprice_fcs_store_vp8: Yes xdualpricefield_fcs_store_vp8:
The result when displaying [dualprice cprice] is that everything shows up $0.00 |
 |
|
support
Administrator
    
4679 Posts |
Posted - November 18 2015 : 21:03:33
|
Hi there,
We had removed this feature but to get it to display on your product pages is fairly simple. It will not show in the shopping cart however as this will require more in depth changes.
Open shopfileio.asp
Locate the following:
value = formatnumber(strprice,GetConfig("xdecimalpoint"))
Change to:
value = ShopFormatDualCurrency(strprice,GetConfig("xdecimalpoint"))
Now locate:
sub GetDualPricevalue( value, strcprice, parsearray, parseRS) exit sub dim dualpricefield
Change to:
sub GetDualPricevalue( value, strcprice, parsearray, parseRS) '' exit sub dim dualpricefield
Save and test.
Hope this helps.
Thank you.
Cam Flanigan VPCart Customer Care Team www.vpcart.com
|
 |
|
danielrichardson
VP-CART Super User
 
Australia
276 Posts |
Posted - November 19 2015 : 01:10:58
|
what a great tutorial.
Thanks. |
 |
|
sunshore@hotmail.com
VP-CART New User

149 Posts |
Posted - November 21 2015 : 08:59:46
|
Thank you, it worked like a charm. I''m sure my boss will want it to show up on the shopping cart too.
If I wanted to give him an alternative such as a "click here to view in US dollars" (I know it''s in the mini-cart but we are keeping that hidden for the moment)
How can I see what currency is currently in session using javascript?
I tried language="JavaScript"> var Currency = <% Session(''CID'')%>; document.write (Currency); </script> but it came up blank. |
Edited by - sunshore@hotmail.com on November 21 2015 09:00:39 |
 |
|
|
Topic  |
|