shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

Ecommerce Products KnowledgeBase

shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

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

Print | Bookmark
Bookmark and Share

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']) . '">'


Was this article helpful?

Yes No
Bookmark and Share

Category: CRELOADED

2382 views