Add the add to cart button to New Products on the ZENCART homepage.
Add a ing to the New Products Module
Open the file des \ modules \ new_products.php and search
$ Products_price = zen_get_products_display_price ($ new_products-> fields ['products _ id']);
Add two lines below:
$ Products_desc = substr (strip_tags (trim (zen_get_products_description ($ new_products-> fields ['products _ id'], $ _ SESSION ['AGES _ id']), 0,100 ). '& hellip ;';
$ Buy_now_link = zen_get_buy_now_button ($ new_products-> fields ['products _ id'], '<a href = "'. zen_href_link ($ _ GET ['main _ page'], zen_get_all_get_params (array ('action ')). 'Action = buy_now & products_id = '. $ new_products-> fields ['products _ id']). '"> '. zen_image_button (BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT ). '<br/> '. '</a> & nbsp; <br /');
The change by volume is $ buy_now_link. Place it where you want it. I add it after $ products_price. $ Products_desc is the product description. You can add it as needed.
This article is from the "e-commerce solutions" blog, please be sure to keep this source http://wmrwx.blog.51cto.com/1418507/1301075