Guest Posted April 3, 2009 Share Posted April 3, 2009 Hey There, Is there any way to edit /content/index.tpl to get the latest products to have a "Buy" or "Add to Cart" button next to the price? Thanks Zach Quote Link to comment Share on other sites More sharing options...
Guest fandango Posted April 4, 2009 Share Posted April 4, 2009 Edit '/skins/your_skin/styleTemplates/content/index.tpl' Look for: CODE </div> <!-- END: repeat_prods --> And paste this just before: CODE <form action="index.php" method="post" name="prod{VAL_PRODUCT_ID}"> <input type="hidden" name="add" value="{VAL_PRODUCT_ID}" /> <input type="hidden" name="quan" value="1" /><a href="java script:submitDoc('prod{VAL_PRODUCT_ID}');" target="_self" class="txtButton">Buy</a> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" target="_self" class="txtButton">More</a></form> NOTE: You will need to rename the 'java script' to 'javascript' (take out the space). There are two restrictions with this method of adding it: 1. It does not use the language file for button names. 2. It assumes that the products are in stock, ie there is no stock control element to the 'buy' button appearing. 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.