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

#   Adding A Product Custom Field To Account Page

##

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

Less More

- Posts: 447
- Thank you received: 20
-
-

6 years 7 months ago [\#317762](#317762) by [davec](/forum/user/7092-davec "View davec's Profile")  *[Adding A Product Custom Field To Account Page](/forum/35-orders-management/899611-adding-a-product-custom-field-to-account-page#317762 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  Hi  I am trying to add a custom field from the table product to the account page. I already have one field from table order which shows as per attachment of the view user / cpanel&#95;orders.php.  I now have a text field of eta for the table product , which displays on the product listing and product page. Is it possible to add code so that it also display in the user cpanel? I did try this but it doesn't show eta; ?&gt;  Thanks  Dave B)")* was created by *[davec](/forum/user/7092-davec "View davec's Profile")*

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16

Hi

I am trying to add a custom field from the table product to the account page. I already have one field from table order which shows as per attachment of the view user / cpanel_orders.php.
Code:

&lt;div&gt; &lt;?php echo $order-&gt;notes; ?&gt;&lt;/div&gt;

I now have a text field of eta for the table product , which displays on the product listing and product page. Is it possible to add code so that it also display in the user cpanel? I did try this but it doesn't show &lt;?php echo $product-&gt;eta; ?&gt;

Thanks

Dave ![B)](/media/kunena/emoticons/9.png "B)")

- [ ![customer-cp-orders.jpg](/forum/attachment/49130) ](/forum/attachment/49130 "...-cp-orders.jpg") [ ](/forum/attachment/49130?download=1 "...-cp-orders.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5OTYxMS1hZGRpbmctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC10by1hY2NvdW50LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 7 months ago [\#317765](#317765) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding A Product Custom Field To Account Page](/forum/35-orders-management/899611-adding-a-product-custom-field-to-account-page#317765 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  Hi  I am trying to add a custom field from the table product to the account page. I already have one field from table order which shows as per attachment of the view user / cpanel&#95;orders.php.  I now have a text field of eta for the table product , which displays on the product listing and product page. Is it possible to add code so that it also display in the user cpanel? I did try this but it doesn't show eta; ?&gt;  Thanks  Dave B)")*

Hi,

The data is not loaded there.
So you need to load it yourself, like this: Code:

$class = hikashop_get('class.product'); $data = $class-&gt;get($product-&gt;product_id); echo $data-&gt;eta;

The following user(s) said Thank You: [davec](/forum/user/7092-davec "View davec's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5OTYxMS1hZGRpbmctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC10by1hY2NvdW50LXBhZ2U/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.045 seconds

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