News:

Support the VirtueMart project and become a member

Main Menu

Different Product Price For Each Currency

Started by raunhar, February 17, 2016, 06:25:47 AM

Previous topic - Next topic

raunhar

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 .

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

raunhar

Is there any detailed documentation for this option.

raunhar

Did not find any line with
VmConfig::get('myvalue','default')

Joomla 3.4.8
VM 3.0.12

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

raunhar

Nothing by that variable.
Attaching the config file for ref.

Milbo

lol, read the manual and understand it.

Writing vmcongig.txt instead of virtuemart.cfg tells all.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

raunhar

The file name was a typo error.
I copied the config file content and pasted as text file as , php attachment is not possible.

Milbo

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).
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

raunhar

#9
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.

raunhar

#10
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

Milbo

ehrm, I missed to say that this option was implemented for vm3.0.13.4 or so.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

raunhar

But 3.0.12 is the latest as shown in Virtuemart site.

raunhar

#13
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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/