A client of mine discovered a bug in ZenCart 1.2.6 with the contribution Ultimate SEO URLs installed. The bug happens when you select a manufacturer from the drop down of manufacturers (a sidebox) - this redirects you to the product listing for this manufacturer.
Now, if you setup your cart to show the 'Add to Cart' button without any extra fields on the product listing page than clicking on it will not add the product to your cart, but instead will redirect you to the home page.
Yes, annoying and frustrating. To fix the issue open the file /includes/modules/product_listing.php on line 130:
Change from:
To:Code:$lc_button = '<a href="' . zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';
Enjoy!Code:$lc_button = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';
Ron Peled



