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

#   how do i get from custom field table order

##

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

Less More

- Posts: 57
- Thank you received: 1
-
-

12 years 2 months ago [\#172593](#172593) by [888](/forum/user/32855-888 "View 888's Profile")  *[how do i get from custom field table order](/forum/35-orders-management/871786-how-do-i-get-from-custom-field-table-order#172593 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5.14-1  hi  how do i get from custom field table order I need users to choose yes or no in order / listing.php pages (are you satisfied with the product) choose yes or no I did custom field in table: order. Field type: checkbox and i need user to apply yes or no in order / listing.php page see pic")* was created by *[888](/forum/user/32855-888 "View 888's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.5.14-1

hi

how do i get from custom field table order
I need users to choose yes or no in order / listing.php pages
(are you satisfied with the product) choose yes or no
I did custom field in table: order. Field type: checkbox and i need user to apply yes or no in order / listing.php page see pic

- [ ![test&#95;2014-09-22.jpg](/forum/attachment/19732) ](/forum/attachment/19732 "...2014-09-22.jpg") [ ](/forum/attachment/19732?download=1 "...2014-09-22.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MTc4Ni1ob3ctZG8taS1nZXQtZnJvbS1jdXN0b20tZmllbGQtdGFibGUtb3JkZXI/dG1wbD1tYXJrZG93bg==) 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 2 months ago [\#172624](#172624) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how do i get from custom field table order](/forum/35-orders-management/871786-how-do-i-get-from-custom-field-table-order#172624 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5.14-1  hi  how do i get from custom field table order I need users to choose yes or no in order / listing.php pages (are you satisfied with the product) choose yes or no I did custom field in table: order. Field type: checkbox and i need user to apply yes or no in order / listing.php page see pic")*

Hi,

You will have to edit the view "order / listing" and use code for the custom fields display, something like: Code:

&lt;?php $fieldClass = hikashop_get('class.field'); $this-&gt;extraFields['order'] = $fieldClass-&gt;getField(29,'order'); if(!empty($this-&gt;extraFields['order'])){ JRequest::setVar('hikashop_check_order',1); $this-&gt;type = 'order'; $js = ''; echo hikashop_getLayout('checkout', 'fields', $this-&gt;params, $js); } ?&gt;

Where you have to replace "29" by the id of your custom order field.

And then add code to save the order with the new params, so get the order data, when pressing "submit" get the value of the custom field and save the order thanks to the function in the order class.

It require good PHP knowledges.

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

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