Hi,
This is the code i use to display text in order/listing view depending on order status.
<?php
$url = JText::_( 'CUSTOM_POST_HYPERLINK' );
$url2 = JText::_( 'ORDER_TRACKING_AWAITING_PAYMENT' );
$url3 = JText::_( 'ORDER_TRACKING_AWAITING_SHIPMENT' );
$url4 = JText::_( 'NO_ORDER_TRACKING_NUMBER' );
if($row->order_status == 'shipped'){
echo '<a href="'.$url. $row->siuntosnumeris.'" target="_blank">'. $row->siuntosnumeris. '</a>';
}elseif ($row->order_status == 'created'){
echo '<span class="hikashop_order_listing_status hikashop_order_status_created">'.$url2.'</span>';
}elseif ($row->order_status == 'confirmed'){
echo '<span class="hikashop_order_listing_status hikashop_order_status_confirmed">'.$url3.'</span>';
}elseif ($row->order_status == 'refunded'){
echo '<span class="hikashop_order_listing_status hikashop_order_status_refunded">'.$url4.'</span>';
}elseif ($row->order_status == 'cancelled'){
echo '<span class="hikashop_order_listing_status hikashop_order_status_cancelled">'.$url4.'</span>';
}else{
echo JText::_( 'NO_ORDER_TRACKING_NUMBER' );
} ?>
Now, how can i display text depending on order status + payment method or shipping method?
Tried something like this:
}elseif ($row->order_status == 'created' && $row->order_payment_id== 8){
echo '<span class="hikashop_order_listing_status hikashop_order_status_created">'.$url3.'</span>';
Or this:
}elseif ($row->order_status == 'created' && $data->cart->order_shipping_id==XXX){
echo '<span class="hikashop_order_listing_status hikashop_order_status_created">'.$url3.'</span>';
But none worked.
Maybe because i do change payment method manually in back-end? Just to see if it works....
Also, where i could find payment or shipping id's? I only could see it with firebug...
Regards