Guest bally Posted May 30, 2007 Share Posted May 30, 2007 I want to have an add to cart button under each product on the front page I have tried copying the code from the viewprod.tpl but no luck it seems to try to do something then adds nothing to the cart see http://www.fonelocker.com/index.php thanks Quote Link to comment Share on other sites More sharing options...
Homar Posted June 3, 2007 Share Posted June 3, 2007 This assumes that you're using CubeCart v3 - I'm not sure how the versions differ. Open up /includes/content/index.inc.php with dreamweaver or a text editor. Then find the line: $index->parse("index.latest_prods.repeat_prods"); Under the above line, add the following lines of code: $index->assign("BTN_BUY",$lang['front']['viewCat']['buy']); $index->assign("BTN_MORE",$lang['front']['viewCat']['more']); Save and upload that file to your server. Now, open up /YOUR_SKIN/styleTemplates/content/index.tpl You should now be able to add the following tags where you'd like to place the buttons: {BTN_BUY} {BTN_MORE} I hope that helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.