- Posts: 202
- Thank you received: 2
Custom Order field - Display only in user account
I created the custom file field, and set "Front End" to "No". I need to do this to keep it from displaying with my other custom Order fields during checkout. I am assuming that I now need to customize the Dashboard->Order view to include this field in that list, but I cannot seem to figure out how to do this. I can simply replace the price column, as it is not needed for my purposes. Is there a way to do this?
Please Log in or Create an account to join the conversation.
<?php echo $row->order_number; ?>
to:
<?php echo $row->order_number; ?>
<br/>
<?
$class = hikashop::get('class.field');
$field = $class->getField('FIELD_COLUMN_NAME','order');
echo $class->show($field,$row->FIELD_COLUMN_NAME);
?>
You need to replace FIELD_COLUMN_NAME by the column name of your field.
Please Log in or Create an account to join the conversation.
I know you had discussed the possibility of the next version of HikaShop allowing for a more widespread use of custom fields. Is the something that would be included in that?
Please Log in or Create an account to join the conversation.
If you do that change via the interface, you will still be able to update HikaShop later on without loosing your modifications.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I cannot find the line you reference:
Am I in the right file?
And if I am, and wish to replace the Order Total with this custom field, do I replace this line:
Thanks!!
Please Log in or Create an account to join the conversation.
Before that version it was:
echo hikashop::encode($row);
Please Log in or Create an account to join the conversation.
<?php echo $row->order_number; ?>
But I do find the line:
echo hikashop::encode($row);
Just thought I would mention it, because I am just not seeing what you are.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Do you ever sleep? You have provided support that is on-par with Geraint Edwards (JEvents), and I never thought I would find a developer I would say that to. It is SO rare to find this, even with commercial extensions, in the Joomla world. Thank you, thank you, thank you!!
Please Log in or Create an account to join the conversation.
Profil -> Order (and here I would like to display the orders they have done, if it is possible with a picture and the name of the product and a link the the digital order they made)
Please Log in or Create an account to join the conversation.
You can create a new menu item of the type "hikashop orders listing" via the Joomla menu manager so that your customers will be able to access it. There, they'll get a listing of all the orders they previously made on your website and when opening one, they'll be able to see the downloads of the products of that order.
Please Log in or Create an account to join the conversation.
If that would be possible - it would be great.
Please Log in or Create an account to join the conversation.
There is no option for that. But if you want to add it, it's possible. You need to edit the file "show" of the view "order" via the menu Display>Views and add the HTML for your image tag and link around it.
Please Log in or Create an account to join the conversation.