Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

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!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Translations Advanced shipping by rules!?¿! 05 Dec 2016 12:43 #1

  • dkaneloglou
  • dkaneloglou's Avatar Topic Author
Hello I have a multilingual website,
how is it possible to translate the shipping methods?
ex.
Name= - ACS SMART BUY! - Your order is more than 43€. We offer Free Shipping in your country; Amount>=43; Shipping=0

I tried
Name= - ACS SMART BUY! - COM_VIRTUEMART_YOUR_ORDR_IS_MORE 43€. We offer Free Shipping in your country; Amount>=43; Shipping=0
and I included a file in the /language/overrides/el-GR
named
el-GR.com_shipping.ini
with this line
COM_VIRTUEMART_YOUR_ORDR_IS_MORE = "Your Order Is more"
but in front end appears this text
COM_VIRTUEMART_YOUR_ORDR_IS_MORE
Is there another way?
Thank you!

Translations Advanced shipping by rules!?¿! 06 Dec 2016 16:31 #2

  • dkaneloglou
  • dkaneloglou's Avatar Topic Author
Please I need a solution!
I have the greek version of my site with english text..

Translations Advanced shipping by rules!?¿! 06 Dec 2016 20:50 #3

Dear Dkaneloglou,
You can translate shipping method names, but you need to to use the whole name as the key:
Name=SHIPPINGMETHOD_ORDER_IS_MORE; Amount>=43; Shipping=0
Then you can simply translate SHIPPINGMETHOD_ORDER_IS_MORE to any language you need.
If you need to insert a variable value into the name, you can include any defined (built-in or user-defined) variable, just like you would directly in the name:
SHIPPINGMETHOD_ORDER_IS_MORE=Your order amount is {Amount}, so you get free shipping
If you want to hae a flexible threshold, you need to define a custom variable (advanced version only):
Variable=Threshold; Value=43
Variable=Threshold; Condition=contains_any(SKUs, "SKU1"); Value=10
Name=SHIPPINGMETHOD_ORDER_IS_MORE; Amount>=Threshold; Shipping=0
and in the language file
SHIPPINGMETHOD_ORDER_IS_MORE=Your order amount is above {Threshold}, so you get free shipping

Best regards,
Reinhold

PS: When you add translations, I would recommend using the Translation overrides section of the Joomla Backend, because that automatically uses the correct language file. In particular, I don't think that the el-GR.com_shipping.ini file is loaded by Joomla at all. I would rather expect the name to be something like language/overrides/el-GR.override.ini
  • Page:
  • 1