Jump to content

Add to Cart button under each product on homepage


Guest bally

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...