- Posts: 57
- Thank you received: 1
how do i get from custom field table order
12 years 1 week ago #172593
by 888
how do i get from custom field table order was created by 888
-- 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
-- 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
Please Log in or Create an account to join the conversation.
12 years 1 week ago #172624
by Xavier
Replied by Xavier on topic how do i get from custom field table order
Hi,
You will have to edit the view "order / listing" and use code for the custom fields display, something like:
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.
You will have to edit the view "order / listing" and use code for the custom fields display, something like:
Code:
<?php
$fieldClass = hikashop_get('class.field');
$this->extraFields['order'] = $fieldClass->getField(29,'order');
if(!empty($this->extraFields['order'])){
JRequest::setVar('hikashop_check_order',1);
$this->type = 'order';
$js = '';
echo hikashop_getLayout('checkout', 'fields', $this->params, $js);
}
?>
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 or Create an account to join the conversation.
Time to create page: 0.147 seconds