Jump to content

Hide prices


pollyphono

Recommended Posts

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

  • 4 weeks later...

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 by elpatron (see edit history)
Link to comment
Share on other sites

  • 8 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...