|
Welcome,
Guest
|
TOPIC:
Is it possible to have global variables? 20 May 2016 13:01 #1
|
VM Ordernumber Plugin
VM Downloads for Sale Plugin
VM Shipping by Rules Plugins
VM Add Buyers to Joomla Groups
Advanced Order Numbers for Magento
Basic / Advanced Order Numbers for WooCommerce
Shipping By Rules for WooCommerce
Tutorial: Automatic updates for Commercial VM and WP plugins
Tutorial: Extending VM with custom views
Tutorial: Upgrading a VM2 plugin to VM3
Advanced Ordernumbers for VirtueMart
Downloads for Sale for VirtueMart
Shipping by Rules for VirtueMart
EU Sales Reports for VirtueMart
Subscribe Buyers to AcyMailing for VirtueMart
Add Buyers to Joomla Groups for VirtueMart
VM Customers to Joomla Groups Admin Panel
Auto Parent Categories for VirtueMart
Name The Price for VirtueMart
Ordernumbers for Magento
Ordernumbers for WooCommerce
Shipping By Rules for WooCommerce
CB Usergroups Field Plugin With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.
It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!
|
Welcome,
Guest
|
|
Hello everybody,
I would like to ask you if it is possible to have variables used by more than one method. I have a list of post codes that is going to add something in the shipping price. As I want to have 2 shipping methods the express and the slower courier. I would like to have a parameter to multiply (No charge addition is 0) for all my methods. Here is a code I wrote Variable=ZIPADD; Value=0 Variable=ZIPADD; 1000<=ZIP<1500 ; Value=200 Variable=ZIPADD; 2000<=ZIP<2500 ; Value=300 ... shipping= ( ZIPADD + 10 ) I cannot use ZIPADD in another method and so I have to copy it in order to work. As these are a lot of lines it would be better to be written once. Thanks in advance |
|
Dear NatProd,
Thank you for the feature request, which absolutely makes sense. Unfortunately, it is currently not possible to have multiple methods share variables (or have global variables). I have put it on our list of possible future extensions, but unfortunately, I can't give either a timeline nor confirm whether we will really implement global variables. Sorry, Reinhold |