-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
I think I may have found a bug for displaying the button to pay for a order that hasn't been confirmed.
The feature of "Payment of orders not paid immediately" in the Configuration is set to "Yes" but unfortunately it is not showing the button at all.
Here is the default code from line 128 in /component/com_hikashop/order/listing.php
<?php if(!empty($row->show_payment_button) && bccomp($row->order_full_price,0,5)>0){ ?>
I did quite a bit of testing and found out that no matter what setting I do in the Configuration, "$row->show_payment_button" is always empty.
I removed $row->show_payment_button from the code and the button started showing.
Obviously this is not really a solution because now the buttons show on every order regardless of the status, even if already paid for and set as "confirmed" the button will still show.
I built a temporary patch for this with the following code:
<?php if($row->order_status == "created" && bccomp($row->order_full_price,0,5)>0){ ?>