Quote Originally Posted by thetankgirl View Post
Hi!
I want to say that you've made a great contribution to zen-cart!
I have just a little problem:

When I use
<!--#AddToCart#-->

The attributes and the add-to-cartbox come on the first tab, in the right order. I want to have the attributes and cart on the second tab, so I use this:

<!--*sub_AttributeOptions(2)*-->
<!--*sub_AddToCart(2)*-->

The attributes and the add-to-cart box come on the right tab, but in the wrong order!
the add-to-cart box is above the attributes.

can you help me?
Currently, ordering them is not possible. The reason they show up correct on the first tab is because for that one I made a table to keep all of that stuff in line. But on the sub tags, they just go by the default order I've set in the code, which is just the default zen-cart way.

But it is simple to change it to the way you want it. To get the Attribs above the add to cart, edit the:
/includes/templates/YOURTEMPLATE/templates/tpl_tabbed_products_lite_subtabs.php file
Cut line 57-68
Code:
<!-- bof sub_AttribOptions -->
		<?php if (strpos($proddata, $sub_AttributeOptions . $a . ")*-->") > 0) { ?>
		  <!--bof Attributes Module -->
      <?php
      if ($pr_attr->fields['total'] > 0) {
        // display the product atributes
        echo '<br />';
        require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
      } ?>
      <!--eof Attributes Module -->
    <?php } ?>    
		<!-- eof sub_AttribOptions -->
And paste it above line 24:
Code:
<!-- sub_AddToCart -->
That will put those attribs above the add to cart button.