Add to Cart links with options and custom fields

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
8 months 1 week ago #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 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:

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

Please Log in or Create an account to join the conversation.

  • Posts: 80502
  • Thank you received: 12830
8 months 1 week ago #350561


You need to add an extra parameter to the URL for each custom item field:

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum