Potential Bug: Orders Listing Payment Button

  • Posts: 27
  • Thank you received: 3
9 years 3 weeks ago #196454

-- 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){ ?>


Personal: michaeltunnell.com
Business: visuex.com
Last edit: 9 years 3 weeks ago by MichaelTunnell.

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

  • Posts: 27
  • Thank you received: 3
9 years 3 weeks ago #196456

I got the button to show but I was unable to pay for the order due to an issue with the order.php file saying that "created" is not a valid status thus receiving "cannot be paid anymore".

I solved the next issue of the button not working by making a new Order Status of "unpaid" and then setting the Default Status to "unpaid". Now I am able to pay for the order after checkout.


Personal: michaeltunnell.com
Business: visuex.com

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 3 weeks ago #196459

Hi,

You have to configure HikaShop to display the button and you also have to configure the order statuses in order to indicate to HikaShop which order status is valid for the payment.
www.hikashop.com/support/support/documen...nfig.html#main_order

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 27
  • Thank you received: 3
9 years 3 weeks ago #196525

That link gives a 404 error.


Personal: michaeltunnell.com
Business: visuex.com

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 3 weeks ago #196529

Hi,

The link is working fine for me.
Please be sure that you use the real link and not the text with some "..." into
www.hikashop.com/support/documentation/5...nfig.html#main_order

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 71
  • Thank you received: 3
9 years 1 week ago #198091

You have to configure HikaShop to display the button and you also have to configure the order statuses in order to indicate to HikaShop which order status is valid for the payment.


Hello Jerome,
I have the same problem, and I don't understand clearly how to solve it : what do you mean by configuring Hikashop to display the button ? Where can I do that ?
And what should be the right order statuses configuration ??
Many thanks

EDIT: I found. The field to be configured is Unpaid order statuses.

Last edit: 9 years 1 week ago by marremp2.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum