[Skip to main content](#vessel-content)

#   Potential Bug: Orders Listing Payment Button

##

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

11 years 7 months ago -  11 years 7 months ago [\#196454](#196454) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")* was created by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")*

-- 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 Code:

&lt;?php if(!empty($row-&gt;show_payment_button) &amp;&amp; bccomp($row-&gt;order_full_price,0,5)&gt;0){ ?&gt;

I did quite a bit of testing and found out that no matter what setting I do in the Configuration, "$row-&gt;show_payment_button" is always empty.

I removed $row-&gt;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: Code:

&lt;?php if($row-&gt;order_status == "created" &amp;&amp; bccomp($row-&gt;order_full_price,0,5)&gt;0){ ?&gt;

---

Personal: [ michaeltunnell.com](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Last edit: 11 years 7 months ago by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

11 years 7 months ago [\#196456](#196456) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  Replied by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")* on topic *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#196456 "-- 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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")*

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](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196459](#196459) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#196459 "-- 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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")*

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](http://www.hikashop.com/support/support/documentation/54-hikashop-config.html#main_order)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

11 years 7 months ago [\#196525](#196525) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  Replied by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")* on topic *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#196525 "-- 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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")*

That link gives a 404 error.

---

Personal: [ michaeltunnell.com](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196529](#196529) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#196529 "-- 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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")*

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](http://www.hikashop.com/support/documentation/54-hikashop-config.html#main_order)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")**
- [![marremp2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35420-marremp2 "View marremp2's Profile")
- [ Offline](/forum/user/35420-marremp2)

Less More

- Posts: 71
- Thank you received: 3
-
-

11 years 7 months ago -  11 years 7 months ago [\#198091](#198091) by [marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")  Replied by *[marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")* on topic *[Potential Bug: Orders Listing Payment Button](/forum/31-development/876015-potential-bug-orders-listing-payment-button#198091 "-- 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 &quot;Payment of orders not paid immediately&quot; in the Configuration is set to &quot;&quot; but unfortunately it is not showing the button at all.  Here is the default code from line 128 in /component/com&#95;hikashop/order/listing.php  I did quite a bit of testing and found out that no matter what setting I do in the Configuration, &quot;$row-&gt;show&#95;payment&#95;button&quot; is always empty.  I removed $row-&gt;show&#95;payment&#95;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 &quot;confirmed&quot; the button will still show.  I built a temporary patch for this with the following code:")*

> 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: 11 years 7 months ago by [marremp2](/forum/user/35420-marremp2 "View marremp2's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NjAxNS1wb3RlbnRpYWwtYnVnLW9yZGVycy1saXN0aW5nLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
