Forums / Setup & design / fetching product options

fetching product options

Author Message

Daniela Moreno

Tuesday 29 March 2005 9:46:25 am

hi, i created a product class with an option datatype for colors. And it does work, but i cant fetch the option selected when buyers choose the color they want, i cant get it on the basket.
what can i do to get it?

Ɓukasz Serwatka

Wednesday 30 March 2005 12:56:28 am

Hi Daniela,

What exactly you want to do? Could you paste part of your code?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniela Moreno

Thursday 31 March 2005 12:53:38 pm

i have a class for a certain type of products. For example, buttons, and i want to sell them in 5 different colors.
I created my class just like the "product" one and add the attribute for color. And on the templates i added:

   <div class="attribute-color">
        <p>
           {attribute_view_gui attribute=$node.object.data_map.color}
          </p>
</div>

I do get the options in the product and can choose a color, but when the costumer selects an option and buys the product there's no way for me to see which option (color) the costumer chose. It doesnt appear on the basket or order view. :S

thanx