- Posts: 251
- Thank you received: 2
Translate banktransfer
15 years 2 months ago - 15 years 2 months ago #20473
by Nello
Translate banktransfer was created by Nello
Last edit: 15 years 2 months ago by Nello.
Please Log in or Create an account to join the conversation.
15 years 2 months ago #20500
by nicolas
Replied by nicolas on topic Re: Translate banktransfer
There is indeed a problem. Please add the code
after the code
in the file administrator/components/com_hikashop/types/plugins.php and try again. That should solve the problem.
Code:
if(!empty($this->methods[$this->type][(string)@$this->order->order_id])){
$max = 0;
$already = array();
foreach($this->methods[$this->type][(string)@$this->order->order_id] as $method){
if(!empty($method->ordering) && $max<$method->ordering){
$max=$method->ordering;
}
}
foreach($this->methods[$this->type][(string)@$this->order->order_id] as $k => $method){
if(empty($method->ordering)){
$max++;
$this->methods[$this->type][(string)@$this->order->order_id][$k]->ordering=$max;
}
while(isset($already[$methods[$k]->ordering])){
$max++;
$this->methods[$this->type][(string)@$this->order->order_id][$k]->ordering=$max;
}
$already[$this->methods[$this->type][(string)@$this->order->order_id][$k]->ordering]=true;
}
}
Code:
$pluginsClass = hikashop_get('class.plugins');
$this->methods[$this->type][(string)@$this->order->order_id] = $pluginsClass->getMethods($this->type);
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds