RescueDog Posted August 24, 2013 Share Posted August 24, 2013 I've added a new product that has no attributes - I don't use quantity available (set to 1) and allow ordering of out of stock products. I DO have a required customization text box on the product. When I open the site, the new item shows with a "new" banner and an Add to Cart button - which I feel is inaccurate as I require my client enter details in the text box. I have added an attribute for the product as a work around to eliminate the Add to Cart button on the featured items and category pages. Is the button showing on a product that has no attributes a bug or a feature? I'd like to figure out the best way to modify the code to suppress an add to cart button on all but the product page. Is this something that someone has already done? Thanks for any guidance! v 1.5.4.1 ~Jo Link to comment Share on other sites More sharing options...
NemoPS Posted August 24, 2013 Share Posted August 24, 2013 I'm not sure I understood your needs, do you want to remove the add to cart button COMPLETELY from the product lists page? in all cases, even with a product doesn't require the custom field? Link to comment Share on other sites More sharing options...
PascalVG Posted August 25, 2013 Share Posted August 25, 2013 Try this: themes/<your theme folder>/css/product_list.css ( around line 127) #product_list li .ajax_add_to_cart_button { padding-left: 20px; display: none; <<-- add this line } Hope this does the trick. Don't forget to recompile the templates and turn cache off (Advanced parameters->prerformance) (Temporarily only,of course) and reload pages. pascal Link to comment Share on other sites More sharing options...
Recommended Posts