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
|
|
Hi!
I want to use your language overrides to translate rule names. Unfortunately this does not work. Did you, maybe, not update to the current translation system of Joomla? Kind regards, Gerald |
|
Dear Gerald,
The rule names are automatically translated. I just checked (e.g. at demo.open-tools.net) and verified that it really works. Please note that Joomla's translation system does not properly handle human-readable identifier, so you need to use an all-uppercase identifier with no spaces or special characters. E.g. Name=SHIPPING_FREE; Amount>10; Shipping=0 Best regards, Reinhold |
|
Hi!
I think, I did what you described: Definition=myLabel; Value="SHIPPING_RULE_INFO_FREE"
Definition=myLabel; 61 in Categories; Value="SHIPPING_RULE_INFO_SMALL"
Definition=myLabel; 62 in Categories; Value="SHIPPING_RULE_INFO_MIDDLE"
Definition=myLabel; Amount >= 30; Value="SHIPPING_RULE_INFO_FREE"
Definition=myShipping; Value=NoShipping
Definition=myShipping; 61 in Categories; Value=4.083333333333333
Definition=myShipping; 62 in Categories; Value=6.583333333333333
Definition=myShipping; Amount >= 30; Value=NoShipping
Name="{myLabel}"; Shipping=myShipping Kind regards, Gerald |
|
Dear Gerald,
Ah, thanks for giving this example. Rule names are translated before variable substitution. The reason is that this allows translated rule names to contain variables. Your case would need the rule names to be translated after variable substitution, which would prevent including other variables (like ZIP or city or the weight or dimensions) in the rule names. There is a workaround, though: Instead of conditionally defining the label in a custom variable, you can also include the the conditions and the label directly into the final rule(s): Definition=myShipping; Value=NoShipping
Definition=myShipping; 61 in Categories; Value=4.083333333333333
Definition=myShipping; 62 in Categories; Value=6.583333333333333
Definition=myShipping; Amount >= 30; Value=NoShipping
Name="SHIPPING_RULE_INFO_SMALL"; 61 in Categories; Shipping=myShipping
Name="SHIPPING_RULE_INFO_MIDDLE"; 62 in Categories; Shipping=myShipping
Name="SHIPPING_RULE_INFO_FREE";Amount >= 30; Shipping=myShipping
Name="SHIPPING_RULE_INFO_FREE"; Shipping=myShipping Best regards, Reinhold |
|
Hi!
Thank you for your workaround. What do I need the definition of variable 'myShipping' for anymore then? I just could use Name="SHIPPING_RULE_INFO_SMALL"; 61 in Categories; Shipping=NoShipping
Name="SHIPPING_RULE_INFO_MIDDLE"; 62 in Categories; Shipping=4.083333333333333
Name="SHIPPING_RULE_INFO_FREE";Amount >= 30; Shipping=6.583333333333333
Name="SHIPPING_RULE_INFO_FREE"; Shipping=NoShipping Kind regards, Gerald |