cyrusvsdarius Posted September 25, 2010 Share Posted September 25, 2010 Hello,Since I only want to show what products I have and don´t want to sell them through internet right now, I would like to remove the "add to cart" icon, "price (in red letters)", "available" and "sort by" list. (But I still want want people to able to view the product when they click on the product.) After I click on the product it shows: "price (in red letters)", "quantity" and "add to cart" icon, I would like to remove these too.I already removed some modules: "cart block" and "my account" block. But all the things I mentioned above are still there. How do I remove them?I´ve attached pictures to show what I mean.Thank you in advance. Link to comment Share on other sites More sharing options...
rocky Posted September 26, 2010 Share Posted September 26, 2010 Just comment out the code you don't want. For example, change lines 11-27 of product-list.tpl in your theme's directory from: {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} to: {* {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} *} {l s='View'} You can {* comment out *} lines 176-287 in product.tpl (from <!-- add to cart form--> to </form>) to remove the buy block on the product page. Link to comment Share on other sites More sharing options...
cyrusvsdarius Posted September 26, 2010 Author Share Posted September 26, 2010 Thank you so much Rocky! This thread was a big help too: http://www.prestashop.com/forums/viewthread/70864/configuring___using_prestashop/solvedprestashop_as_a_catalog_only Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now