Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Product title with many optional variations

I have a product type with many variations, but only one or two are used at the same time. This gives me this kind of title:
Product1 (, , , , , , , blue, , )

What can I do to make it look like this?
Product1 (blue)

Asked by: idflood
on October 10, 2012

Comments

I'm having this same issue - is there a solution, or way I can help?

- mythos2112 on November 19, 2012

1 Answer

Vote up!
1
Vote down!

The product title is generated using tokens. What you need is a token like the "join-path" token that is currently available.

http://drupal.org/node/1046972

You simply want to "implode" the token using the string ", " between each element in an array of possibilities. Probably will need to copy some of the code from the above issue into a custom module to create a unique token that will work for your use case.

Might look into this or similar modules:

http://drupal.org/project/compound_token

Josh Miller
Answer by: Josh Miller
Posted: Jan 9, 2013