1

Is it possible to create a product, for which before adding to the cart, customer must define some attributes. For example, I need a number field where the customer defines the size of the product (105x200mm, or 1000x600mm). There are no predefined sizes, I only need an empty text field for width and height where the customer can type their specific size.

After that I want to add it to the cart but without price. I only want to collect customer orders where the products have sizes. Information about final prices will be sent later by email. We don't want to display prices and no payment.

Thanks a lot

4

Absolutely. What you need is the Commerce Customizable Products module.

That allows you to set up Line Item Types that are entirely fieldable! You can add text fields, select boxes, radio buttons and any field you want to be displayed as the user is adding the product to their cart.

Once the module is enabled, do the following

  • Add a new Line Item Type at /admin/commerce/config/line-items
  • Add any fields you need to it (in your case, just a text field)

enter image description here

  • Make sure to check the box that asks whether this is a field you want added to the 'Add to Cart' form

enter image description here

  • Finally, go to the 'Manage display' tab of the content type you have that displays your product, and go into the settings of the 'Product' field. You will see a new option which allows you to choose a 'Line item type' to display. Select the one you just created, Update, and Save!

enter image description here

Final result:

enter image description here

Let us know if this works for you...

  • yes.. perfekt, thanks a lot Boriana. I was looking for this. – scooti Jun 19 '13 at 18:50
  • Great tutorial, Boriana! : ) – Ryan Szrama Jun 20 '13 at 1:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.