Display Custom field in admin order view

  • Posts: 6
  • Thank you received: 0
12 years 2 months ago #65949

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.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #66058

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.

  • Posts: 6
  • Thank you received: 0
12 years 1 month ago #66069

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.

<?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.054 seconds
Powered by Kunena Forum