Skip to main content

Display Custom field in admin order view

More
14 years 2 weeks ago #65949 by Lbrown
I'm trying to add a specific custom field (location) to my admin order view. I have successfully added custom fields to the frontend views, but can not for the life of me get the admin view to work. help please!!

Please Log in or Create an account to join the conversation.

More
14 years 2 weeks ago #66058 by nicolas
Please give more information on what type of custom fields you're trying to add and do a screenshot of your custom field so that we can see what is wrong with it.

Please Log in or Create an account to join the conversation.

More
14 years 2 weeks ago #66069 by Lbrown
I figured it out. Sorry for spamming you! For people looking to do this I found that the following code works well on BOTH front end and admin views.
Code:
<?php $class=hikashop_get('class.product'); $prod = $class->get($product->product_id); echo $prod->INSERTYOURCOLUMNNAME; ?>

Have tested this on order views in admin/frontend and checkout/cart pages on frontend.

Please Log in or Create an account to join the conversation.

Time to create page: 0.168 seconds
Powered by Kunena Forum