Buy Now button on the New Products main page module does not work when SEO is enabled


Buy Now button on the New Products main page module does not work when SEO is enabled

CRE Loaded mod rewrites for SEO do not process parameters passed in links to the index page. So, we need to replace the target of links from FILENAME_DEFAULT TO FILENAME_PRODUCT_INFO .

change the following line:

<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">'

to this:

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array ('action')). 'action=buy_now&products_id=' . $new_products['products_id']) . '">'



You can view this article online at:
http://docs.algozone.com/article/buy-now-button-does-not-work-when-seo-is-enabled