Skip to main content

Order translate doesn't work on order list

More
12 years 1 month ago #168495 by andreasuriani
-- 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.

More
12 years 1 month ago #168514 by Mohamed Thelji
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.

More
12 years 1 month ago #168578 by andreasuriani
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


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

More
12 years 1 month ago #168587 by Jerome
Hi,

Please edit the file "administrator/components/com_hikashop/types/categorysub.php" and replace the code
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
Code:
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.
The following user(s) said Thank You: PioneerDesign

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

More
12 years 1 month ago #168620 by andreasuriani
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.253 seconds
Powered by Kunena Forum