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

#   Order payment button

##

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

14 years 9 months ago [\#34672](#34672) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34672 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?

Existing code in order/view.html.php Code:

$default_status = $config-&gt;get('order_created_status','created'); foreach($rows as $k =&gt; $order){ if($order-&gt;order_status==$default_status){ $rows[$k]-&gt;show_payment_button = true; } }

Suggested alternative: Code:

if( $config-&gt;get('payable_order_status','') != '' ) { $payable_order_status = explode(',',$config-&gt;get('payable_order_status','')); foreach($rows as $k =&gt; $order){ if( in_array($order-&gt;order_status, $payable_order_status) ){ $rows[$k]-&gt;show_payment_button = true; } } }

This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM0NjcyLW9yZGVyLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

14 years 9 months ago [\#34718](#34718) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34718 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

I can see what you're saying. However it's already complex and users start asking questions about these order statuses options. Adding one more option will yet again make it more complex while the alternative of editing a bit the view for a website which would need that isn't so much of a problem.
I'm not convinced for now

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

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

14 years 9 months ago [\#34861](#34861) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34861 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

Understood.

I was about to say something to bear in mind for the future would be to add a payable / cancellable field to the order status configuration and then leave out the cancellable field in the configuration.

Then realised that the custom category fields apply to all types of categories - including the order statii. So another way of customising this.

However, this is a bit confusing when adding a custom field to a product category as it also appears in the order status and manufacturer configuration screens. Could an option be added to category custom fields so that they only appear / can be used in one place?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM0NjcyLW9yZGVyLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

14 years 9 months ago [\#34873](#34873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34873 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

You can already restrict custom category fields to only some categories with the category option on the right side of the custom field edition screen.

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

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

14 years 9 months ago [\#34925](#34925) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34925 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

I tried that and does not appear to work either as I would expect or in a way which would help in this issue.

In Hikashop demo.
Create custom category field as a single drop-down with 2 values.
Add fashion category and set include sub-categories to Yes.
Set back-end Form and Listing to Yes.

Go to Product Categories and the new custom category field appears in list at top level.
The new custom category field appears regardless of category selected.
I would expect it to appear only for the fashion category and categories below.

Go to System order statuses and the new custom category field appears in list.
Edit an order status and the new custom category field appears.
Looks like a category type select box might be needed when creating a custom category field.
This would link into the category_type column of the hikashop_category table.

Ditto Product Manufacturers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM0NjcyLW9yZGVyLXBheW1lbnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

14 years 9 months ago [\#34951](#34951) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34951 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

Ah yes, I didn't understand that you were talking about listings.
Indeed that is not taken into account for listings.

We'll look at improving that for next release.

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

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

14 years 9 months ago [\#34956](#34956) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Order payment button](/forum/2-general-talk-about-hikashop/34672-order-payment-button#34956 "Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?  Existing code in order/view.html.php  Suggested alternative:  This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.")*

Thanks.

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

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

[](#top)
