- Posts: 177
- Thank you received: 1
Order translate doesn't work on order list
- andreasuriani
-
Topic Author
- Offline
Less
More
12 years 1 month ago #168495
by andreasuriani
Order translate doesn't work on order list was created 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
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 1 month ago #168514
by Mohamed Thelji
Replied by Mohamed Thelji on topic Order translate doesn't work on order list
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 ?
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.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
12 years 1 month ago #168578
by andreasuriani
Replied by andreasuriani on topic Order translate doesn't work on order list
Please Log in or Create an account to join the conversation.
12 years 1 month ago #168587
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Order translate doesn't work on order list
Hi,
Please edit the file "administrator/components/com_hikashop/types/categorysub.php" and replace the code
By
It will fix your problem in the front-end order listing.
Regards,
PS: This modification will be in the next HikaShop package.
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;
}
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;
}
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.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
12 years 1 month ago #168620
by andreasuriani
Replied by andreasuriani on topic Order translate doesn't work on order list
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
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