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

#   Custom fields from checkout on invoice

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 3 weeks ago [\#174866](#174866) by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")  *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#174866 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")* was created by *[quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 2.5.27

We have a number of custom fields that show up for each cart item at checkout.
How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

12 years 3 weeks ago [\#174883](#174883) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#174883 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

Hi,

That should already be the case.
Can you provide a screenshot of an invoice ?
Did you customize the invoice with a previous version of HikaShop ?
If you did, then that would explain why you don't see them in the invoice. In that case, reverting your changes and applying them to the new version of the invoice would certainly help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 3 weeks ago [\#174994](#174994) by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")  Replied by *[quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#174994 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

We have the custom fields but we are trying to write to them through php.
The customization we added is in the hikashop_cart_product table and we need to write those to the custom fields in the order table through php so that way they show up in the invoice. We just cannot figure out what id's to grab or what links the order table with the cart product table.

Also, is there a way to display items individually rather than combined in the cart view. Right now - Hikashop combines 2 same items as one with a quantity of 2. Can we explode this to show each item separated in the cart so our custom fields can be applied to both?

Here is a screenshot of the cart right now.

[ ![how.jpg](/forum/attachment/20055) ](/forum/attachment/20055 "how.jpg")

- [ ![how.jpg](/forum/attachment/20055) ](/forum/attachment/20055 "how.jpg") [ ](/forum/attachment/20055?download=1 "how.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

12 years 3 weeks ago [\#175043](#175043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#175043 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

You have all these issues because you're not using standard custom item fields. If you did, you would see the fields on the product page, and if you would add a product with different custom item field values to the cart, it would automatically be saved as a second entry instead of being lumped together with the same product already in the cart. You would also not have to save the fields from the cart_product table to the order_product table upon order creation as it would be done by hikashop for you.
All left for you would be to customize the cart view file to have these fields to be able to update the values of the fields for each product in the cart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 3 weeks ago [\#175059](#175059) by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")  Replied by *[quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#175059 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

Nicolas,

We were able to get it to work with custom fields as you advised.

Still curious if there is a way to make items not group together at all in the cart. For example - If I add 2 of the same item, they appear as two individual items in the cart rather than one item with a quantity of 2.

I appreciate the help so far and really enjoy the product - very clean and expandable.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#175159](#175159) by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")  Replied by *[quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#175159 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

Let me rephrase - We need to separate the items in the cart instead of combining them by quantity. (ie. Product 12345, Product 12345 instead of Product 12345 Quantity 2) We just need to know what to change and where to change it. We are currently looking in “administrator/components/com_hikashop/classes/cart.php”. We have separate “Gift To” address custom fields for the items in the cart view and can not have them in the product listings. We are comfortable with PHP and making adjustments to the code - we are just uncertain where to look.

Last edit: 12 years 3 weeks ago by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 3 weeks ago [\#175193](#175193) by [quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")  Replied by *[quantuscreative](/forum/user/15605-quantuscreative "View quantuscreative's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#175193 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

Nevermind - We found the on/off in the administrator/components/com_hikashop/classes/cart.php.

Thanks for the help with the custom fields!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#175194](#175194) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom fields from checkout on invoice](/forum/31-development/872193-custom-fields-from-checkout-on-invoice#175194 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 2.5.27  We have a number of custom fields that show up for each cart item at checkout. How can we add these custom fields to the order product table on checkout so they can be displayed on the invoices?")*

Hi,

No problem.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjE5My1jdXN0b20tZmllbGRzLWZyb20tY2hlY2tvdXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.115 seconds

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

[](#top)
