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

#   Custom product fields - add to cart

##

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

13 years 6 months ago [\#103238](#103238) by [momentis](/forum/user/364-momentis "View momentis's Profile")  *[Custom product fields - add to cart](/forum/2-general-talk-about-hikashop/81643-custom-product-fields-add-to-cart#103238 "I have found and read this post about including a custom field in an add-to-cart link:    www.hikashop.com/en/forum/2-general-talk...-product-fields.html  In the post, it describes using a link such as this to add a product to the cart:  If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:  so that both custom fields are passed to the cart?")* was created by *[momentis](/forum/user/364-momentis "View momentis's Profile")*

I have found and read this post about including a custom field in an add-to-cart link:

[ www.hikashop.com/en/forum/2-general-talk...-product-fields.html](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html)

In the post, it describes using a link such as this to add a product to the cart:
Code:

http://myshop.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=887&amp;data[item][tracking_id]=123456

If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:
Code:

http://myshop.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=887&amp;data[item][tracking_id]=123456&amp;data[item][custom_desc]='product description'

so that both custom fields are passed to the cart?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

13 years 6 months ago [\#103239](#103239) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Custom product fields - add to cart](/forum/2-general-talk-about-hikashop/81643-custom-product-fields-add-to-cart#103239 "I have found and read this post about including a custom field in an add-to-cart link:    www.hikashop.com/en/forum/2-general-talk...-product-fields.html  In the post, it describes using a link such as this to add a product to the cart:  If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:  so that both custom fields are passed to the cart?")*

And, as a follow-up, how would I add these two fields to display in the cart?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

13 years 6 months ago [\#103248](#103248) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Custom product fields - add to cart](/forum/2-general-talk-about-hikashop/81643-custom-product-fields-add-to-cart#103248 "I have found and read this post about including a custom field in an add-to-cart link:    www.hikashop.com/en/forum/2-general-talk...-product-fields.html  In the post, it describes using a link such as this to add a product to the cart:  If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:  so that both custom fields are passed to the cart?")*

I found that I can insert both custom fields with one URL, so that part of my question has been answered.

When I add the product to the cart, the two custom fields appear on top of one another, like:

> Product ID: 1081-17HT
>
> Product Description: DISS Fittings; DISS Body Adaptors; Body Adaptor, Hose Bard with Hand Grip Collar; Carbon Dioxide

Is there a way to edit the cart itself, so that these two fields appear next to each other? Basically, I want to replace existing columns in the cart (image, product name, price) with the custom fields Product ID and Product Description. Is this possible?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

13 years 6 months ago [\#103262](#103262) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Custom product fields - add to cart](/forum/2-general-talk-about-hikashop/81643-custom-product-fields-add-to-cart#103262 "I have found and read this post about including a custom field in an add-to-cart link:    www.hikashop.com/en/forum/2-general-talk...-product-fields.html  In the post, it describes using a link such as this to add a product to the cart:  If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:  so that both custom fields are passed to the cart?")*

I am going to open a new topic on this issue. This one has been answered.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNjQzLWN1c3RvbS1wcm9kdWN0LWZpZWxkcy1hZGQtdG8tY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103279](#103279) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom product fields - add to cart](/forum/2-general-talk-about-hikashop/81643-custom-product-fields-add-to-cart#103279 "I have found and read this post about including a custom field in an add-to-cart link:    www.hikashop.com/en/forum/2-general-talk...-product-fields.html  In the post, it describes using a link such as this to add a product to the cart:  If I have two custom fields, can I create the URL to add both of these fields? So, can I do the following:  so that both custom fields are passed to the cart?")*

Hi,

Ok.

Regards,

---

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

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

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