Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

probably not a chance in #@#?!**@, but


Recommended Posts

thought I'd ask anyway :)


I would like my product attributes to display like this:


Options Available:


Size Color Location Qty

Drop down Drop down Drop down text box




This would duplicate itself many times over - why? I am building an embroidery shop and these are necessary - why? Quantity discounts are listed and because of how the cart works, the discounts are not applied to the cart as a whole but to each item added to the cart - SO I THOUGHT, that if the client could have the option to list them like this and then enter the correct total in the applicable qty box then maybe I can make this whole thing work - i understand that the above qty box will not grant a total and that is fine - client will just have to be sure that total in boxes equals what they entered in the MAIN qty box -


if this is absolutely impossible then does anyone else have any ideas on how to this correctly? I need the qty discounts but also need to be able to add different attributes to each item ordered.





Link to comment
Share on other sites

You could make it happen ... just have to get your peices and parts right in the loop.


You need to make a <TR> before the Attributes type


Each Attribute type needs to be in a <td> within that <tr>. The current setup has it make a <tr> and make a <td> you want to just make <td> inside the while loops.


Got all that? :shock:

Link to comment
Share on other sites

okay -sounds easy :?


so maybe if you can point me in the right direction regarding files, I can wing it and see if it works - this should be something that I can build once and then every product will be setup that way correct?

Link to comment
Share on other sites

In product_info.php look for this section of code ..


    if ($products_attributes == '1') {

     $products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'");

     echo '<b>' . TEXT_PRODUCT_OPTIONS . '</b><br>';

     echo '<table border="0" cellpading="0" cellspacing"0">';

     while ($products_options_name_values = tep_db_fetch_array($products_options_name)) {


That is the start of the area that draws the Attribute drop downs.


Currently, they build, based on <tr><td> arrangement, one under the other.


If you modify the structure of how that row(s) column(s) are build, you should get what you are after.

Link to comment
Share on other sites


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

  • Create New...