Rename Australia Post services

  • Posts: 6
  • Thank you received: 0
9 years 3 weeks ago #219003

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Firefox 41.0.2
-- Error-message(debug-mod must be tuned on) -- : no message

Hello,

I am using Australian Post v2 shipping plugin. Is any way to rename shipping services? See attached file.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 weeks ago #219008

Hi,

Change the line:

$info->shipping_name .=' '.$service->name;
to:
$shipping_name = JText::_($service->code.'_NAME');
						if($shipping_name != $service->code.'_NAME')
							$info->shipping_name .=' '.$shipping_name;
						else
							$info->shipping_name .=' '.$service->name;
in the file plugins/hikashopshipping/aupost2/aupost2.php and then you'll be able to use a translation override like this:
AUS_PARCEL_REGULAR="Parcel Poost"
hikashop.com/download/languages.html#modify

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
9 years 3 weeks ago #219084

Thank you for your reply, but unfortunately this doesn't help - see attachments

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 weeks ago #219106

I've made a typo. It should be:
AUS_PARCEL_REGULAR_NAME="Parcel Post"
in your translation override

Please Log in or Create an account to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum