News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product link to price in non-default currency [Solved]

Started by Osearcaigh, October 24, 2017, 08:08:57 AM

Previous topic - Next topic

Osearcaigh

Joomla 3.8.1
Virtuemart 3.2.4

Is it possible to create a product page link where the product price is shown in another currency? For example, where the default currency is EUR, and we want to send a link to the product in USD can we generate a link along the lines of:

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1&currency=USD






Ghost


Osearcaigh

Thank you for your answer. It makes sense. I could not see it working in my case though. My base currency is EUR (ID 978) I expected:

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1&virtuemart_currency_id=554 to show me the product in NZD, which is configured with an exchange rate and is on the list of vendor accepted currencies. On the list of prices, sales price, tax etc etc, it showed by nothing from any of them. When I manually navigate to this product and select NZD from the currency selector, it works as expected but not via the direct link.

Can you think of anything else I should check, change or look at?



Ghost

#3
You need to use ID, not currency code.

ID is not shown on currency page but you can see it in the URL when editing currency, for example: /administrator/index.php?option=com_virtuemart&view=currency&task=edit&cid[]=107. In this case ID is 107.

Osearcaigh

Perfect, thank you for your help Ghost. That works exactly as expected.

For anyone else reading, the codes for each of the currencies I happen to be using are:

USD=144
NZD=107
AUD=9
EUR=47