Dropdown product attributes

4 posts / 0 new
Last post
yolandi
yolandi's picture
Dropdown product attributes

I am using your theme to sell coffee.
What I need to do is for every product have options available in terms of the product, i.e Filter Ground, Espresso Ground, Plunger Ground, Beans….

I have tried to make use of product variations through taxonomy but have not been able to get it right.

• I create the terms in taxonomy,
• create a field in the content type “Product”
• but when I want to manage the Display, the Format options does not allow for a dropdown box.
• My only options are: Link ; Plain text; RSS category; Rendered taxonomy term; Separated; Hidden
• I would like a dropdown box to be available….?

The other option I tried was to not use taxonomy & rather use a List (text) field in the Product type

• I create the field & use the List (text) option as the Field type
• I specify the options available
• I am forced to make a selection when editing the content or else the dropdown does not appear once saved
• And despite the dropdown then appearing, it only displays the option I had to select.
• Hence a client can not make use of the dropdown as it does not display any options.

support
support's picture
Hi there Yolandi:

Hi there Yolandi:

As you need to do this on the customer side, none of the contant type´s fields will do the job. All these features are defined for backend and content management purposes, so you have to try other modules for it. Take a look at these ones (I copy/pasted from Drupal.org):

Commerce Product Option

https://www.drupal.org/project/commerce_option

This module adds customizable product options to the "add to cart" form. The approach is generic, so all field types / widget can be used. This module is created only for the commerce module. For other systems you need different systems / approaches.

The module provides a field called option set. You can assign to your commerce product. Each option set consists of a list of fields. If a product is connected to a option set the add to cart form will be extended by the fields of the option sets.

Commerce Product Attributes

https://www.drupal.org/project/commerce_product_attributes

This module provides some enhancements to the Drupal Commerce attribute handling.

The improvement contains: Attribute field for line item Edit option for attributes

Best!!!

yolandi
yolandi's picture
product attributes not displaying in order

Thank you so much for your assistance with regards to my email, I managed to get everything up & running!
Your quick response time is much appreciated!
My problem now however is that these attributes are not displaying in the order.
I tried making changes to the order settings, but no luck.
Could you perhaps assist?

support
support's picture
Hi there Yolandi:

Hi there Yolandi:

I´m not pretty sure if you have already tried the order in the backend Manage Display section of the Content Type product or the Product Entity.

Anyway, another alternative is to use Display Suite Module https://www.drupal.org/project/ds it does enhaces a lot all the Manage Display features of Drupal backend for node pages.

Let me know.

Best!!!

Log in to post comments