I have what is turning into a little bit of a maintenance nightmare.
I am thinking about adding a bit of php code to the product description that would produce a color swatch based on options for that product (copper vien, satin blck, etc). So that the same code could be in each product description.
I am a bit of drupal newbie. I look at the variables avaible through the Content Template, but it didn't reference how to make this happen.
I am looking for something like this
foreach (option in $content->options)
{
print 'id + '-color.jpg" /> '+ option->title + ;
}
I am looking to replicate what is found http://ironpickets.com/ucart/node/11
in an automated and predictable way, not just being very careful and keeping it up to date.
Thanks,
David Strickland



Joined: 01/14/2008