schoolboy:
Because the download function is an element of zencart's attributes, the default behaviour will be to change the add to cart, to more info.
I thought the more info link was only placed on pages with more than one product - at least that is the way it shows on my site. If there is only one item in the category, then that item shows with an add to cart button.
With the caveat that I know next to nothing about php ...
The more info link uses the products_id as does the add to cart function. I would assume that when the add to cart is clicked ZC looks up the products_id and at that time determines the attribute. Since the items I am interested in doing this with only have one attribute, I would think it would default to it.
So I guess I am wondering if in the
<td class="productListing-data" align="right">
section is there a way to replace the call for the moreinfo link with the add to cart function?
And just to complicate it even more I only want to do that on certain product category pages.