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

#   Dislplay custom field on cart page

##

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 10 months ago [\#286013](#286013) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  *[Dislplay custom field on cart page](/forum/25-install-update/893484-dislplay-custom-field-on-cart-page#286013 "-- HikaShop version -- : 3.2.2  Hi,  how can I pull from the database a custom field value to diplay it on the cart page(cart/show.php)?  For example on product listing page I do it with this code: $this-&gt;row-&gt;product&#95;column&#95;name.  thanks!")* was created by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")*

-- HikaShop version -- : 3.2.2

Hi,

how can I pull from the database a custom field value to diplay it on the cart page(cart/show.php)?

For example on product listing page I do it with this code: $this-&gt;row-&gt;product_column_name.

thanks!

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 10 months ago [\#286016](#286016) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Dislplay custom field on cart page](/forum/25-install-update/893484-dislplay-custom-field-on-cart-page#286016 "-- HikaShop version -- : 3.2.2  Hi,  how can I pull from the database a custom field value to diplay it on the cart page(cart/show.php)?  For example on product listing page I do it with this code: $this-&gt;row-&gt;product&#95;column&#95;name.  thanks!")*

Hello,

It will actually depends on how you have set the "Table" option, if you custom field is part of the "Product" table it should already be displayed.
Else, you'll have to directly do a database request to load and display its value.

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 10 months ago [\#286080](#286080) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Dislplay custom field on cart page](/forum/25-install-update/893484-dislplay-custom-field-on-cart-page#286080 "-- HikaShop version -- : 3.2.2  Hi,  how can I pull from the database a custom field value to diplay it on the cart page(cart/show.php)?  For example on product listing page I do it with this code: $this-&gt;row-&gt;product&#95;column&#95;name.  thanks!")*

Hi,

yes it is part of the product table. It's an Ajax image field. The field label is displayed but the value not. I prefer to not do a new database query if it is not needed.

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MzQ4NC1kaXNscGxheS1jdXN0b20tZmllbGQtb24tY2FydC1wYWdlP3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

8 years 10 months ago [\#286083](#286083) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dislplay custom field on cart page](/forum/25-install-update/893484-dislplay-custom-field-on-cart-page#286083 "-- HikaShop version -- : 3.2.2  Hi,  how can I pull from the database a custom field value to diplay it on the cart page(cart/show.php)?  For example on product listing page I do it with this code: $this-&gt;row-&gt;product&#95;column&#95;name.  thanks!")*

Hi,

Here is a thread which talks about that:
[ www.hikashop.com/forum/development/88397...tom-field-image.html](https://www.hikashop.com/forum/development/883977-insert-a-custom-field-image.html)
Note that in cart / show.php the product variable is $cart_product and not $this-&gt;element or $this-&gt;row

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

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