pollyphono Posted February 11, 2012 Share Posted February 11, 2012 Hello, I'm trying to adapt Prestashop to use as an internal "order tool". I want to visibly remove the price in the products and cartblock and still be able to order. Can somebody please help me? Thx in advance, Paul Link to comment Share on other sites More sharing options...
pelingier Posted February 14, 2012 Share Posted February 14, 2012 Hey you can hide the prices when somebody isn't logged in just add {if $logged} {/if} to you're product-list.tpl and product.tpl file in the themes directory example : {if $logged} <!-- -> code hier boven is om prijzen & in winkel kar steken weg te doen ! --> <div> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability"></span>{/if} </div> {/if} Link to comment Share on other sites More sharing options...
El Patron Posted March 11, 2012 Share Posted March 11, 2012 (edited) We have two different modules to accomplish this. We do not recommend anyone modifying using if/eif logic solution where price is displayed. You end up with a highly modified site that will be hard to upgrade and will require more modifications as you load new modules/themes etc. that deal with price. Also this model does not take into account hiding your cart, your currency block, etc. etc. Our solutions are SMALL FOOT PRINT! Registered Clients Only (i.e. registered and logged in) four(4) lines of code. one program patch Authorized Client Only (i.e. approved clients who are logged in) six(6) lines of code in two programs. Modules built on prescribed PrestaShop best module practices. Compatible with all 1.4 systems. Edited December 4, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
AngelSpeedy Posted December 3, 2012 Share Posted December 3, 2012 That code not work.. 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