Guest renster_rjm Posted July 9, 2005 Share Posted July 9, 2005 I would like to remove the "add to basket" button and quantity from the product pages. Anyone know how to do this. We want to create just an online catalog to start and then in a year or so move to full blown cart. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 In content/viewprod.inc remove this lines 94 - 139 to get rid of add to cart button if($config['outofstockPurchase']==1){ $view_prod->assign("BTN_ADDBASKET",$lang['front']['viewProd']['add_to_basket']); $view_prod->parse("view_prod.prod_true.buy_btn"); } elseif($prodArray[$i]['useStockLevel']==1 && $prodArray[$i]['stock_level']>0){ $view_prod->assign("BTN_ADDBASKET",$lang['front']['viewProd']['add_to_basket']); $view_prod->parse("view_prod.prod_true.buy_btn"); } elseif($productResults[$i]['useStockLevel']==0){ $view_prod->assign("BTN_ADDBASKET",$lang['front']['viewProd']['add_to_basket']); $view_prod->parse("view_prod.prod_true.buy_btn"); } $view_prod->assign("LANG_DIR_LOC",$lang['front']['viewProd']['location']); if($config['stockLevel']==1 && $prodArray[0]['useStockLevel']==1 && $prodArray[0]['stock_level']>0){ $view_prod->assign("TXT_INSTOCK",$lang['front']['viewProd']['no_instock']." ".$prodArray[0]['stock_level']); } elseif($prodArray[0]['useStockLevel']==1 && $prodArray[0]['stock_level']>0) { $view_prod->assign("TXT_INSTOCK",$lang['front']['viewProd']['instock']); } else { $view_prod->assign("TXT_INSTOCK",""); } if($prodArray[0]['stock_level']<1 && $prodArray[0]['useStockLevel']==1 && $prodArray[0]['digital']==0){ $view_prod->assign("TXT_OUTOFSTOCK",$lang['front']['viewProd']['out_of_stock']); } else { $view_prod->assign("TXT_OUTOFSTOCK",""); } That solves that i think to get rid of quantity box u need to mess with template.Looking in to it now Quote Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 Scrap that much easier way DOH!!!! open viewprod.tpl from your skins folder of the one you are using and then to remove quantity box and add to cart button delete lines 60 - 67 this is what you want to delete {TXT_INSTOCK}<span class="txtOutOfStock">{TXT_OUTOFSTOCK}</span> <div style="position: relative; text-align: right;">{LANG_QUAN} <input name="quan" type="text" value="1" size="2" class="textbox" style="text-align:center;"> <!-- BEGIN: buy_btn --> <a href="java script:document.addtobasket.submit();" class="txtButton">{BTN_ADDBASKET}</a> <!-- END: buy_btn --> Thats it the buttons are gone as if by magic hth Quote Link to comment Share on other sites More sharing options...
Guest renster_rjm Posted July 10, 2005 Share Posted July 10, 2005 :on2long: Wahooooooo! You guys are the best. I am gonna try it right now Thanks so very much. You have helped an old programmer feel better Kindest of regards Quote Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 ne time 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.