Width on

broken by attributes
Posts: 108
Joined: 10/31/2007
Getting busy with the Ubercode.

>> where it just displays the add to cart button and will send you to the page if there are attributes that need to be selected

Yes, it's true but in fact here we're just calling the function uc_product_add_to_cart from uc_product.module which is the one introducing those long fieldsets that break the table:

      if (variable_get('uc_catalog_grid_display_add_to_cart', TRUE))
        $product_table .= theme('uc_product_add_to_cart', $product);
      $product_table .= '</td>';

On uc_product_add_to_cart we can't control that those widgets appear because that function doesn't control it, the widgets look to come from the uc_atributtes.module. I'm not sure of that, you probably know best since you have wrote those functions Eye-wink

Any suggestion?

uc_catalog.module modified to display products on a grid By: jorditr (56 replies) Wed, 10/31/2007 - 11:52
broken by attributes By: jorditr (11/06/2007 - 13:11)
  • Thanks and answers By: jorditr (11/06/2007 - 12:56)