Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products Attributes 2 sides to one product


baldfrog

Recommended Posts

Hi everyone,

 

i have a little problem with my products attributes and i normally find all my answers by going through the forum or the contribs. However it seems that i've run out of luck this time.

 

I sell contact lenses and would like to allow the customer to buy a box of lenses which may contain different properties for the left and right eye. I know it sounds funny... let me try with an example:

 

============================================================================

 

Product bladibla

$xx

============================================================================

Available Options:

 

O left eye:

------------------

diameter: xx

------------------

Base Curve: xx

------------------

Power: xx

------------------

 

 

O right eye:

------------------

diameter: xx

------------------

Base Curve: xx

------------------

Power: xx

------------------

 

===================================================================

 

So 2 sets of attributes (one for each eye) for the same product. Hope it makes sense. Otherwise i know that one person did it before but i have not been able to find any type of documentation but if you don't mind having a look here's the site: click on this link

Link to comment
Share on other sites

Looks like the left and right eye options are simply displayed in a clever way - if you add them to your cart you can see that the product has 6 options

left_a, left_b, left_c, right_a, right_b, right_c. So you'd just have to change the way those 6 attributes are displayed in the product_info.php

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

Looks like the left and right eye options are simply displayed in a clever way - if you add them to your cart you can see that the product has 6 options

left_a, left_b, left_c, right_a, right_b, right_c. So you'd just have to change the way those 6 attributes are displayed in the product_info.php

Thank you very much for your prompt response,

 

hmmm i see and I understand what you're saying. How do you think he managed to show only part of the attributes names for one side and hide the other side?

 

Also, this technique is a bit of a pain as i believe it means that i would have to re-enter all attributes once wouldn't i? So, do you know if there is a better way to do this (i.e. calling the attributes twice in product_info.php and display the selected ones in the same array in shopping_cart)?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...