I am trying to adapt the way that the products are displayed in the product listing when they have attributes.
I am looking at the code in product_listing.php.
Oh and I guess I should say that I have the flexible_product_listing mod installed.
I am puzzled because the links I have managed to produce work in ways that are unexpected! In the code I have added an elseif to specify when the product has attributes. That works fine. So, I can customise the code for this circumstance. So far so good.
To check it I copied the default BUY NOW button code into this elseif. I thought that this would produce a buy now button that behaved in the same way as the default BUY NOW button.
On the page the links associated to the buttons look the same.
is one of the the two links. This is the no attributes link and takes you as expected to the shopping cart.Code:http://www.starlessriver.com/shop/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=6
The other one is:
Which looks very similar but takes you to the product info page.Code:http://www.starlessriver.com/shop/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=5
I must be missing something. I want them both to link to the shopping cart.
The page that I am referring to is http://www.starlessriver.com/shop/in...ath=1&zenid=c8. I will attach my product_listing.php file.
Thanks in advance
Nik



