Adam
Adam

Reputation: 6201

Show Magento attribute as a selectable option on frontend

In my Magento shop I want customers to select the size of the product which they wish to order. I've created a custom attribute ringsize with options ranging from 15 to 22. I see the attribute dropdown appear in the backend when adding a new product, however, I don't select a value here, since that is up to the visitor on the frontend.

Now, when I visit my product detail page on the frontend I don't see a dropdown where a visitor can select the site of the product. How do I enable that? Should it be done in the template or is this something Magento would provide out of the box?

Upvotes: 1

Views: 4871

Answers (2)

Sergei Guk
Sergei Guk

Reputation: 1775

It's not possible to do this with Attributes (at least out of the box). You need to use either Configurable product functionality or Custom options (here is the info on how to create them).

Here is the info about their differences:

Use custom options if:

  • You have a small catalog and are looking for a quick way to create customizable products.
  • You don't need to manage inventory.
  • You have a small catalog and want an easy way to offer product variations.
  • The options are applied after the product is ordered, such as custom embroidery on a tee shirt.

Use a configurable product options if:

  • You manage a large catalog of products with many variations.
  • You want to manage inventory separately for each variation.
  • You want each variation to have its own product page.

Upvotes: 2

Oleg Ishenko
Oleg Ishenko

Reputation: 2233

You probably need a configurable product for that. First, create two simple products with the ringsize attribute set to 15 and 22 respectively. Then create a configurable product with ringsize as a configurable attribute and specify the two simple products as configurable associated products.

Upvotes: 0

Related Questions