VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: raunhar on February 17, 2016, 06:25:47 AM

Title: Different Product Price For Each Currency
Post by: raunhar on February 17, 2016, 06:25:47 AM
Is there any plugin in VM for Different Product Price For Each Currency .
I found one for open cart (http://www.opencart.com/index.php?route=extension/extension/info&extension_id=6068), but need for Virtuemart .
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 17, 2016, 12:56:33 PM
exists already as hidden config

http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html

"pricesbyCurrency"
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 22, 2016, 09:24:31 AM
Is there any detailed documentation for this option.
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 22, 2016, 11:21:06 AM
Did not find any line with
VmConfig::get('myvalue','default')

Joomla 3.4.8
VM 3.0.12
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 22, 2016, 11:29:14 AM
listed as last option
pricesbyCurrency

look in the file and you see explanations. But these comments must be deleted if you use a version below vm3.0.13.2
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 22, 2016, 11:35:22 AM
Nothing by that variable.
Attaching the config file for ref.
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 22, 2016, 14:48:45 PM
lol, read the manual and understand it.

Writing vmcongig.txt instead of virtuemart.cfg tells all.
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 22, 2016, 15:55:25 PM
The file name was a typo error.
I copied the config file content and pasted as text file as , php attachment is not possible.
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 22, 2016, 19:21:09 PM
Yeh you used it completly wrong, please read the manual.

HOW TO USE A HIDDEN CONFIGURATION PARAMETER?

open the virtuemart.cfg (at /administrator/components/com_virtuemart/virtuemart.cfg)
Preset any value used in VmConfig::get('myvalue','default').
In the example, change the line myvalue=default to myvalue=mydefaultvalue
Save the file
Enter the virtuemart backend:
For VirtueMart 3: store the configuration file once. The configuration file is load first and overwritten by the form and you should keep all settings.
For VirtueMart 2: you must use the button in tools "udpate config by file". Be aware that you loose your settings then.
Of course, you could theoretically set all config defaults into the virtuemart.cfg (interesting for retailers actually).
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 23, 2016, 07:21:08 AM
in the virtuemart.cfg file I added
pricesbyCurrency=-1
(Changed this value to 0 and 1 also)

under ##Pricing
but nothing changed in the VM backend. The option pricesbyCurrency never showed up.
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 25, 2016, 08:39:47 AM
How to:
For VirtueMart 3: store the configuration file once. The configuration file is load first and overwritten by the form and you should keep all settings.

Need help.
The config is as:

[config]
##shop settings
shop_is_offline=0
offline_message=Our Shop is currently down for maintenance. Please check back again soon.
use_as_catalog=0
currency_converter_module=convertECB.php
order_mail_html=1
useSSL=0
useVendorEmail=0
dangeroustools=0
debug_enable=none
dev=none
vmdev=none
google_jquery=0
multix=none
usefancy=1
jchosen=1
enableEnglish=1
pricesbyCurrency=1
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 25, 2016, 14:19:47 PM
ehrm, I missed to say that this option was implemented for vm3.0.13.4 or so.
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 26, 2016, 06:00:16 AM
But 3.0.12 is the latest as shown in Virtuemart site.
Title: Re: Different Product Price For Each Currency
Post by: raunhar on February 26, 2016, 09:23:00 AM
Thanks a lot.

Its done.

But now the currency symbols are not showing properly (sometimes).

http://192.185.163.163/~jvm/index.php/store/headpiece/ceg-a-33-detail?s=&showall=1

When the page opens in default currency, the symbols are proper, but when currency is changed, the symbols get damaged.

Please suggest.
Title: Re: Different Product Price For Each Currency
Post by: Milbo on February 29, 2016, 17:14:05 PM
Btw, new version is online  (directlink) http://dev.virtuemart.net/attachments/download/992/com_virtuemart.3.0.13.6_extract_first.zip
Title: Re: Different Product Price For Each Currency
Post by: raunhar on March 03, 2016, 08:34:38 AM
I did download the new version and installed it.
But the Currency Symbol is showing junk characters.

I checked in 3.0.12 version also.
There under each product pricing option, an Option is there to add another price, where we can define the currency and the price.
Title: Re: Different Product Price For Each Currency
Post by: Milbo on March 03, 2016, 22:28:22 PM
I am sorry, I do not understand.
Title: Re: Different Product Price For Each Currency
Post by: Studio 42 on March 04, 2016, 00:16:04 AM
Use html code at place of your currency symbol can help .
check here http://character-code.com/currency-html-codes.php
Title: Re: Different Product Price For Each Currency
Post by: sebasvaqm on April 06, 2016, 08:17:47 AM
Hello!

I tried a lot of ways of use pricesbyCurrency, changed virrtuemart.cfg file and uploaded it lot of times, and I canĀ“t do it, I ask for your help please, tell me how can I do it, thank you, regards.
Title: Re: Different Product Price For Each Currency
Post by: Studio 42 on April 06, 2016, 15:50:13 PM
The currencies can be changed by the currency module.
You cannot set multiple currency price display in product.
If you need to display price in multiple currency, you can use currencyDisplay and loop all your currencies. to render this in the product
Title: Re: Different Product Price For Each Currency
Post by: mainspring on March 10, 2018, 17:13:35 PM
Is this option still available in 3.2.4? I have entered pricesbyCurrency=1 then in backed clicked om "save the configuration settings but I still cant get different prices for different currencies without conversions. Any suggestions?

Thank you
Title: Re: Different Product Price For Each Currency
Post by: Studio 42 on March 10, 2018, 17:50:43 PM
mainspring, what is your final goal ?
Display price in different currencies in product details ?