Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 [Solved] Displaying two currencies
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sunshore@hotmail.com
VP-CART New User

149 Posts

Posted - November 17 2015 :  14:44:39  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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 ?
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - November 18 2015 :  15:55:52  Show Profile  Visit serjtankian's Homepage  Reply with Quote
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
Go to Top of Page

sunshore@hotmail.com
VP-CART New User

149 Posts

Posted - November 18 2015 :  16:19:01  Show Profile  Reply with Quote
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
Go to Top of Page

support
Administrator

4679 Posts

Posted - November 18 2015 :  21:03:33  Show Profile  Visit support's Homepage  Reply with Quote
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

Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 19 2015 :  01:10:58  Show Profile  Reply with Quote
what a great tutorial.

Thanks.
Go to Top of Page

sunshore@hotmail.com
VP-CART New User

149 Posts

Posted - November 21 2015 :  08:59:46  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00