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

#   Add to Cart links with options and custom fields

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

3 years 8 months ago [\#350559](#350559) by [Dennis.slotta](/forum/user/74303-dennis-slotta "View Dennis.slotta's Profile")  *[Add to Cart links with options and custom fields](/forum/31-development/906167-add-to-cart-links-with-options-and-custom-fields#350559 "For a shop that produces products on behalf of the customer, I am creating a page that displays the entered name in a preview and calculates sizes in PHP (as an overview for 20 or more produkts). For...")* was created by *[Dennis.slotta](/forum/user/74303-dennis-slotta "View Dennis.slotta's Profile")*

For a shop that produces products on behalf of the customer, I am creating a page that displays the entered name in a preview and calculates sizes in PHP (as an overview for 20 or more produkts). For this page, I need an Add to Cart button that passes the entered name (Custom Text Field), the selected color (Custom Drop Down Field), and the selected height (an option in a dropdown) to the shopping cart.

All attempts to accomplish this via a link have failed thus far. This link adds the item to the shopping cart twice:
http://168.0.101:8060/index.php/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;product_id=1&amp;quantity=1&amp;Itemid=153&amp;hikashop_return_url=http://192.168.0.101:8060/index.php/&amp;hikashop_product_option[4]=68

Once for the base item and once for the selected option. I am unable to get the custom fields into the shopping cart.

How should the link be structured?
Alternatively, a JavaScript Add to Cart would also work, but I am missing the parameters and my programming skills are reduced to vb.net

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwNjE2Ny1hZGQtdG8tY2FydC1saW5rcy13aXRoLW9wdGlvbnMtYW5kLWN1c3RvbS1maWVsZHM/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: 86593
- Thank you received: 14334
-
-

3 years 8 months ago [\#350561](#350561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to Cart links with options and custom fields](/forum/31-development/906167-add-to-cart-links-with-options-and-custom-fields#350561 "For a shop that produces products on behalf of the customer, I am creating a page that displays the entered name in a preview and calculates sizes in PHP (as an overview for 20 or more produkts). For...")*

Hi,

You need to add an extra parameter to the URL for each custom item field:
[ www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16220](https://www.hikashop.com/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html#16220)

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

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