Jump to content

how to create a table to display different combinations of a product


Recommended Posts

I'm using ps 1.4.1. I have different attributes for each product, and each attribute corresponds to a different price. At the moment, in the product page, the attributes are shown in a drop-down list. I was wondering how can I make a table instead of a dropdown list. In particular, I'd like to have 4 columns: first one is the attribute, second one is the corresponding price, third one is the quantity, and the last one is the add to cart button. Is there any option / module / existing solution to do this? Thanks.

Link to comment
Share on other sites

i need this too. i just want in the product page that there is a table where all possibly combinations are listed in 3 columns: Article Number, Name, Price, Add To Basket

for example :

AT501 --- Blue, 32 Gigabyte, 400g --- 200 EUR --- BASKET
AT502 --- Blue, 64 Gigabyte, 400g --- 200 EUR --- BASKET
AT503 --- Blue, 128 Gigabyte, 400g --- 200 EUR --- BASKET
AT501 --- Red, 32 Gigabyte, 400g --- 200 EUR --- BASKET
AT502 --- Red, 64 Gigabyte, 400g --- 200 EUR --- BASKET
AT503 --- Red, 128 Gigabyte, 400g --- 200 EUR --- BASKET

My first thought was somethink like that:

    
   {if isset($groups)}

{$combination.list}{$combination.quantity}{$combination.price}

   {/if}


In combination.list are the index values of the attributes (for example '22','24','33') - how can i make Text out of this? for example "Blue, 32 Gigabyte, 400 gramm" ??

Thank yoU!!!!!

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...
  • 4 weeks later...
  • 2 years later...
×
×
  • Create New...