luismfbsilva061980 Posted December 11, 2024 Share Posted December 11, 2024 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 More sharing options...
Razi Posted December 12, 2024 Share Posted December 12, 2024 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 More sharing options...
luismfbsilva061980 Posted December 12, 2024 Author Share Posted December 12, 2024 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 More sharing options...
Mediacom87 Posted December 12, 2024 Share Posted December 12, 2024 (edited) Hi, I offer a V8-compatible module for this purpose. https://www.prestatoolbox.com/security/205-display-catalog-mode-for-visitors.html Edited December 12, 2024 by Mediacom87 (see edit history) Link to comment Share on other sites More sharing options...
luismfbsilva061980 Posted December 12, 2024 Author Share Posted December 12, 2024 18 minutes ago, Mediacom87 said: Hi, I offer a V8-compatible module for this purpose. https://www.prestatoolbox.com/security/205-display-catalog-mode-for-visitors.html Don´t work... Link to comment Share on other sites More sharing options...
Mediacom87 Posted December 12, 2024 Share Posted December 12, 2024 Il y a 2 heures, luismfbsilva061980 a dit : Don´t work... Excuse me, could you be more specific? 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