Order translate doesn't work on order list

  • Posts: 177
  • Thank you received: 1
9 years 8 months ago #168495

-- url of the page with the problem -- : www.andreasuriani.com/newsite
-- HikaShop version -- : latest

HI All,
I noticed that the order status on the page "order list" is not translated.
Only on this page: why?

Thanks

Andrea

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

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #168514

Hello Andrea,
Firstly can you show me through some screenshots how did you configured your order statuses via the page "Hikashop->System->Order statuses" ?
Also, how did you translated them ?

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

  • Posts: 177
  • Thank you received: 1
9 years 8 months ago #168578

Hello Mohamed,
of course: in attachment you can find the list.

Anyway, i didn't touch it and i didn't change the translation file


Attachments:

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #168587

Hi,

Please edit the file "administrator/components/com_hikashop/types/categorysub.php" and replace the code

	function trans($status){
		foreach($this->categories as $value){
			if($value->category_name == $status){
				return $value->value;
			}
		}
		foreach($this->categories as $value){
			if($value->category_namekey == $status){
				return $value->value;
			}
		}
		return $status;
	}
By
	function trans($status){
		foreach($this->categories as $value){
			if($value->category_name == $status){
				if($this->type == 'status' && $value->value == $status)
					return hikashop_orderStatus($status);
				return $value->value;
			}
		}
		foreach($this->categories as $value){
			if($value->category_namekey == $status){
				if($this->type == 'status' && $value->value == $status)
					return hikashop_orderStatus($status);
				return $value->value;
			}
		}
		if($this->type == 'status')
			return hikashop_orderStatus($status);
		return $status;
	}
It will fix your problem in the front-end order listing.

Regards,

PS: This modification will be in the next HikaShop package.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: PioneerDesign

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

  • Posts: 177
  • Thank you received: 1
9 years 8 months ago #168620

Hi Jerome,
works, but i've needed to translate this strings :
ORDER_STATUS_CREATED
ORDER_STATUS_PENDING
ORDER_STATUS_CONFIRMED
ORDER_STATUS_CANCELLED
ORDER_STATUS_REFUNDED
ORDER_STATUS_SHIPPED

It doesn't translate on Language File.
After my work, i'll put in on Italian File for the community.

Thanks
Andrea

The following user(s) said Thank You: Jerome

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

Time to create page: 0.077 seconds
Powered by Kunena Forum