Jump to content

Show prices after login prestashop 8.1.7


luismfbsilva061980

Recommended Posts

Hey guys,

There was a module that instead of the price said "Login to see price", but this module is not compatible with version 8.1.7, so my question is how can I get this message to customers?
If I use the groups it is in catalog mode and I want it to have the message "Sign up to see prices" or "Login to see prices"

Any ideas?
Thanks everyone

Link to comment
Share on other sites

Hello there is few things you can try

Update Theme product detail page file and show hard code text if customer not logedin

templates/catalog/product.tpl

{if !$customer->isLogged()}
    <p class="login-to-see-price">
        {l s='Login to see the price' d='Shop.Theme.Catalog'}
    </p>
{/if}


You can also add the URL of login page on same location.

You can also use any hook of product detail page (displayProductPriceBlock) to show message / alert if customer if not logedin.

Thanks

Link to comment
Share on other sites

4 hours ago, Razi said:

Hello there is few things you can try

Update Theme product detail page file and show hard code text if customer not logedin

templates/catalog/product.tpl

{if !$customer->isLogged()}
    <p class="login-to-see-price">
        {l s='Login to see the price' d='Shop.Theme.Catalog'}
    </p>
{/if}


You can also add the URL of login page on same location.

You can also use any hook of product detail page (displayProductPriceBlock) to show message / alert if customer if not logedin.

Thanks

Where can I put the URL? I'm sorry but I'm very green when it comes to programming...

Link to comment
Share on other sites

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...