Magento Expert Forum - Improve your Magento experience

Page 1 of 2 12 LastLast
Results 1 to 20 of 30

How to hide price for not login user in magento?

  1. #1

  2. #2
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Default

    Just found a solution that hides price in comparison, catalog overview and detail
    It is not yet complete as I also have to hide tier prices but it’s a good start
    magento\app\design\frontend\default\<your default>\template\catalog\product\price.phtml

    <?php
    if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>


    just above (line 26)

    <?php if (!$_product->isGrouped()): ?>

    and close it at the end of the file

    <?php endif; /* if ($this->isCustomerLoggedIn()): */ ?>

  3. The Following User Says Thank You to david For This Useful Post:

    shunavi (24-03-2013)

  4. #3
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    124
    Thanks
    9
    Thanked 26 Times in 17 Posts

    Default

    Work for me, thanks

  5. #4
    New member
    Join Date
    May 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by david View Post
    Just found a solution that hides price in comparison, catalog overview and detail
    It is not yet complete as I also have to hide tier prices but it’s a good start
    magento\app\design\frontend\default\<your default>\template\catalog\product\price.phtml

    <?php
    if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>


    just above (line 26)

    <?php if (!$_product->isGrouped()): ?>

    and close it at the end of the file

    <?php endif; /* if ($this->isCustomerLoggedIn()): */ ?>
    it is correct, I used it for my website

  6. #5
    New member MagePlace's Avatar
    Join Date
    Aug 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There are extensions that can hide price and add an editable note - see the Hide Price extension

  7. #6
    New member
    Join Date
    Nov 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi please check out this extension
    http://www.magentocommerce.com/magen...rice-3163.html
    Its allow you replace price with custom text, also it can be done for different customer groups.

    I hope it will help you
    Thank you

  8. #7
    New member
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Please checkout Magento Hide Price Extension
    This extension will allow you to hide the price & add to cart button with custom message or Show call for price or Enquire form.

    I hope it will help you

  9. #8
    New member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There is a extension you can put on your Magento online store! There is also a tool which removes price and blocks the ‘Add to cart’ button for logged out and unregistered site guests, and even specific user groups if necessary. Thanks

  10. #9
    Junior Member
    Join Date
    Mar 2014
    Location
    Nashua , United States
    Posts
    102
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Hi,

    You can try this Magento Hide price extension from Modulebazaar. It will hide the price for not login users, particular group of peoples and particular category of site products.
    http://www.modulebazaar.com/en/magen...extension.html

  11. #10
    New member Ecommage's Avatar
    Join Date
    Jan 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    You can contact our team for direct Magento support. We offer premium services with competitive rate.

    You can check our portfolio here:

    http://ecommage.com

    And why you should choose us as provider:

    http://ecommage.com/blog/magento-outsourcing-services/

    Best regards,

    Ecommage team

  12. #11
    Junior Member michealnguyen's Avatar
    Join Date
    Sep 2014
    Posts
    97
    Thanks
    2
    Thanked 8 Times in 8 Posts

    Default

    This simple and effect solution if you can program otherwhile you should use Hide price extension if you are merchant.

    Quote Originally Posted by david View Post
    Just found a solution that hides price in comparison, catalog overview and detail
    It is not yet complete as I also have to hide tier prices but it’s a good start
    magento\app\design\frontend\default\<your default>\template\catalog\product\price.phtml

    <?php
    if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>


    just above (line 26)

    <?php if (!$_product->isGrouped()): ?>

    and close it at the end of the file

    <?php endif; /* if ($this->isCustomerLoggedIn()): */ ?>

  13. #12
    Junior Member Cms_ideas's Avatar
    Join Date
    Jun 2014
    Location
    https://cmsideas.net
    Posts
    385
    Thanks
    1
    Thanked 7 Times in 7 Posts

    Default

    Magento Hide Price - Magento extension to Hide Price by Cmsideas- $39

    DEMO: http://cmsideas.net/magento-hide-price-extension.html

    Features:
    Allow admin to choose from three options which are:
    + Show all price

    + Show price with customer logined

    + Hide all price

    These options will facilitate admin's store management process.

    Allow hiding price on block types
    Admins can enter the product block they want to hide price in backend.

    Able to hide price based on customer groups
    For example, admin can hide price when they offer one product at different prices for wholesalers and retailers.

    Allow showing some custom messages which encourage customers to contact with admin.
    Admin can add texts as custom messages in text areas:

    + Message notice to not permitted groups

    + Message notice to not permitted categories

    + Message notice to not permitted products
    Name:  21.PNG
Views: 3886
Size:  93.5 KB

    DEMO | Magento Hide Price | Magento Package

    NOTE: From 13/2 to 30/4. Magento Packages now discount 50%- Comprehensive solutions for e-commerce website
    Magento Package 1- Only $142.5 for 5 extensions: Magento Full Page Cache, 20 + Actions Manage Products in Backend, Quick View Pro ,Magento Revolution Slider and Magento Daily Deal .

    Magento packages 2- ONLY $132.5 for Add Columns to Order Grid in Backend, Extended PDF Invoice, Magento Full Page Cache, Magento Advanced Sorting Product List and Magento Mobile Theme

    For more, click: here

  14. #13
    Junior Member
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    53
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    If you need to use a plugin, please checkout Hide prices Magento module by FME, you can hide prices for different customers and products.

  15. #14
    Junior Member paulsimmons's Avatar
    Join Date
    Apr 2014
    Location
    USA
    Posts
    213
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    The solution provided by Roberto is better as this extension offers complete functionality to hide product prices from specific customer groups.
    Here is the direct link for more details - http://www.fmeextensions.com/magento-hide-call-for-price.html

  16. #15
    Junior Member Amasty's Avatar
    Join Date
    May 2013
    Posts
    396
    Thanks
    1
    Thanked 4 Times in 3 Posts

    Default

    Hello! This functionality is not included in Magento out of the box but can be achieved with the help of extensions. For example, you can check out this one https://amasty.com/magento-hide-price.html

  17. #16
    Junior Member
    Join Date
    Jun 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to hide price for not login user in magento

    When i am checkout from konakart, its redirecting to konakart login page. Instead of this, i need to redirect liferay login page. How to do this??

  18. #17
    Junior Member aaryanmevada's Avatar
    Join Date
    Apr 2015
    Posts
    54
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default

    you all shared a good thing in magento.

  19. #18
    Junior Member
    Join Date
    Aug 2016
    Posts
    72
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    <?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

    just above (line 26)

    <?php if (!$_product->isGrouped()): ?>

    and close it at the end of the file

    <?php endif; /* if ($this->isCustomerLoggedIn()): */ ?>


    Apply this code for hide price for not login user.

  20. #19
    Junior Member James's Avatar
    Join Date
    Jan 2016
    Posts
    663
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default

    Hello, what you have requested cannot be achieved with Magento default, so I recommend that you should install this extension: Advanced Hide Price by BSSCommerce http://bsscommerce.com/advanced-hide...magento-2.html
    This extension allow wonderful features:
    - Flexibly hide price of a particular product, a certain category, or for a specific customer group.
    - Hide price and replace Add to Cart button with Call For Price button which link to Inquiry form in AJAX popup for customer to submit price request.
    Name:  Advanced Hide Price_Call for price button.png
Views: 1931
Size:  166.9 KB
    - Hide price and replace Add to Cart button with a custom CTA message to encourage customer interaction
    Name:  advanced_hide_price_hide_price_cta_message_1.png
Views: 1751
Size:  291.0 KB
    - Present customer requests in Customer Inquiry List with options to view detailed information of request and send email to customers
    - Automatically send email notify admin of customer request. Different email templates available.
    - Different templates available for email answering customer request
    - Easy to configure in backend with display of two main configs, including Call For Price Config and Hide Price Config with customizable text and capability to apply for different categories and customer groups
    - Support all Magento product types: simple, configurable, grouped, bundle, virtual, downloadable products
    - Compatible with multiple store views
    Check it out for Free Installation, Free Update, Free Support!

  21. #20
    Expert
    Join Date
    Mar 2016
    Location
    india
    Posts
    570
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hi,



    Let’s hide prices for guest users everywhere.

    Open app/design/frontend/base/default/template/catalog/product/ folder and copy price.phtml file to the app/design/frontend/base/template/themeXXX/catalog/product/ folder, where XXX is the number of your theme, and then place the following code on top of it:
    ?
    1
    2
    3
    4
    5
    6

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_price"><strong>Login to See Price</strong></span><br>';
    return;
    }
    ?>

    Now we will hide the ‘Add to Cart’ button on category list page. Open /app/design/frontend/default/themeXXX/template/catalog/product/list.phtml file and look for the following code:
    ?
    1
    2
    3
    4
    5

    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>

    and replace it with:
    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_details" style="float:left"><strong>Login to Add to Cart</strong></span>';
    }
    else{
    ?>
    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    <?php }?>

    and save changes.

    Now we will hide the ‘Add to Cart’ button on product detail page. Open app/design/frontend/default/themeXXX/template/catalog/product/view/addtocart.phtml file.
    Add the following code on top of it:
    ?
    1
    2
    3
    4
    5
    6

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_details" style="float:left"><strong>Login to Add to Cart</strong></span>';
    return;<
    }
    ?>

    and save changes.

    In order to hide the ‘Add to Cart’ button on compare page page, open /app/design/frontend/base/default/template/catalog/product/compare/list.phtml file and copy it to /app/design/frontend/default/themeXXX/template/catalog/product/compare/ folder.
    Open it and look for the following code:
    ?
    1
    2
    3
    4
    5

    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>

    and replace it with:
    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_details" style="float:left"><strong>Login to Add to Cart</strong></span>';
    }
    else{
    ?>
    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    <?php }?>

    and save changes.

    In order to hide the ‘Add to Cart’ button on Specials page, open /app/design/frontend/default/themeXXX/template/catalog/product/widget/sale/sale_default_list.phtml file and look for the following code:
    ?
    1
    2
    3
    4
    5

    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>

    and replace it with:
    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_details" style="float:left"><strong>Login to Add to Cart</strong></span>';
    }
    else{
    ?>
    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    <?php }?>

    and save changes.

    In order to hide the ‘Add to Cart’ button for for new products, open /app/design/frontend/default/themeXXX/template/catalog/product/new.phtml file and look for the following code:
    ?
    1
    2
    3
    4
    5

    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>

    and replace it with:
    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    <?php
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
    echo '<span class="login_for_details" style="float:left"><strong>Login to Add to Cart</strong></span>';
    }
    else{
    ?>
    <?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button><br>
    <?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    <?php }?>

    and save changes.

Page 1 of 2 12 LastLast

Similar Threads

  1. Opencart Introduction User Guide for Beginners
    By golddev in forum OpenCart
    Replies: 7
    Last Post: 18-06-2019, 07:04 AM
  2. Magento Facebook Login - Magento extension
    By cmsmart in forum Magento Extensions
    Replies: 9
    Last Post: 11-12-2015, 06:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •