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

#   order listing payment option on different statuses

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

12 years 3 months ago [\#164988](#164988) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#164988 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- url of the page with the problem -- : [ www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen](http://www.giftprint.nl/giftprint.nl/index.php/klant-login/mijn-bestellingen)
-- HikaShop version -- : hikashop_business_2.3.2_2014-07-19
-- Joomla version -- : 3.3
-- PHP version -- : 5.4.25-1
-- Browser(s) name and version -- : Chrome 36.0.1985.125

Hi,

When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is "Created", but also for other statuses.

In the former version I altered this line:

&lt;?php if($row-&gt;order_status=='Confirmed'&#124;&#124; $row-&gt;order_status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order_full_price,0,5)&gt;0){ ?&gt;
&lt;form action="&lt;?php echo $orderUrl; ?&gt;" method="post" name="adminForm_&lt;?php echo $row-&gt;order_id; ?&gt;"&gt;

but if I do the same in the new file it doesnt work as I get the message in the frontend: "This order can't be paid anymore".

I guess I have to alter this line:

echo $this-&gt;order_statuses-&gt;trans($row-&gt;order_status); ?&gt;&lt;/span&gt;
&lt;?php if(!empty($row-&gt;show_payment_button) &amp;&amp; bccomp($row-&gt;order_full_price,0,5)&gt;0){ ?&gt;

What do I have to add here?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#164993](#164993) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#164993 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")*

Hi,

I think that just removing: Code:

!empty($row-&gt;show_payment_button) &amp;&amp;

And adding your custom check instead should be sufficient.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

12 years 3 months ago [\#165096](#165096) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#165096 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")*

Hi Xavier,

Thanks for your quick reply. What your suggeting is just what I did. But then I get a message in the frontend when trying to pay: "The order xxxx cannot be paid anymore." Something is preventing the excecution of the payment.
See screenshot:
[ ![h810a099.jpg](/forum/attachment/18618) ](/forum/attachment/18618 "h810a099.jpg")

Michel.

- [ ![h810a099.jpg](/forum/attachment/18618) ](/forum/attachment/18618 "h810a099.jpg") [ ](/forum/attachment/18618?download=1 "h810a099.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#165101](#165101) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#165101 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")*

Hi,

There seems to be indeed and fortunately more checks for that.
The checks are based on the order status, if the status is a confirmed one, so we can no more pay.

So, why not create new order statuses ? This way, by default, they will not be recognized as confirmed one, and will allow to pay the order later. Could that be a good solution, or you really need to allow the payment on confirmed orders ?

The following user(s) said Thank You: [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

12 years 3 months ago [\#165232](#165232) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#165232 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")*

Hi Xavier,

No, that would be fine. The problem is that the payment option is **only** shown when the status is "created". In all the other statuses the payment option is not available.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

12 years 3 months ago [\#165312](#165312) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order listing payment option on different statuses](/forum/35-orders-management/869872-order-listing-payment-option-on-different-statuses#165312 "-- url of the page with the problem -- :   www.giftprint.nl/giftprint.nl/index.php/...in/mijn-bestellingen  -- HikaShop version -- : hikashop&#95;business&#95;2.3.2&#95;2014-07-19 -- Joomla version -- : 3.3 -- PHP version -- : 5.4.25-1 -- Browser(s) name and version -- : Chrome 36.0.1985.125  Hi,  When my customers want to pay afterwards, they can in the order listing. I made an adjustment in Hikashop 2.0 in the view listing, but that doesn't work anymore in this new version. I want my customers to be able to pay not only when te status is &quot;Created&quot;, but also for other statuses.  In the former version I altered this line:  order&#95;status=='Confirmed'|| $row-&gt;order&#95;status=='De order is in productie en in afwachting van uw betaling' &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt; form action=&quot;&amp;lt;?php echo $orderUrl; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;order&#95;id; ?&gt;&quot;&gt;  but if I do the same in the new file it doesnt work as I get the message in the frontend: &quot;This order can't be paid anymore&quot;.  I guess I have to alter this line:  echo $this-&gt;order&#95;statuses-&gt;trans($row-&gt;order&#95;status); ?&gt; show&#95;payment&#95;button) &amp;&amp; bccomp($row-&gt;order&#95;full&#95;price,0,5)&gt;0){ ?&gt;  What do I have to add here?")*

Hi,

You would have to also remove the code: Code:

$default_status = $config-&gt;get('order_created_status','created'); if($order-&gt;order_status!=$default_status){ $app =&amp; JFactory::getApplication(); $app-&gt;enqueueMessage('The order '.$order-&gt;order_number.' cannot be paid anymore.'); parent::listing(); return false; }

from components/com_hikashop/controllers/order.php if you want to allow other statuses that "created" for the display of the payment button.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg2OTg3Mi1vcmRlci1saXN0aW5nLXBheW1lbnQtb3B0aW9uLW9uLWRpZmZlcmVudC1zdGF0dXNlcz90bXBsPW1hcmtkb3du) 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.060 seconds

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