Home Forums WoodMart support forum Login to see add to cart and prices feature

Login to see add to cart and prices feature

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #412624

    oracle1979
    Participant

    Hello, i´m using the “Login to see add to cart and prices” feature. However, the Unit price is still visible. How is it possible to also hide the unit price for visitors? See attached Screenshot

    Attachments:
    You must be logged in to view attached files.
    #412643

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please disable the maintenance mode, so that I could check the site being logged out.

    Best Regards

    #418779

    oracle1979
    Participant

    Hi Elise,
    my client do not want to make it public until it´s fixed. I´ll provide you access to the backend and you can quickly turn the maintenance mode off to check. Would that be ok for you? Thats very important to get it fixed. Many thanks Sascha

    #418817

    Hello,

    It seems you check the site when you log in as I try to check in incognito and your site is under maintenance.

    Please check the issue on the parent theme and deactivate all the plugins not related to the theme. Let us know if the problem remains.

    Best Regards

    #419382

    oracle1979
    Participant

    Hello,
    i´ve disabled the maintenance mode to test the website. The basic price per weight is automatically calculated via the “Germanized” Plugin which is mandetory for EU Shops. Only the Price is hidden but not the basic price. See attached Screenshot.

    Thanks
    Sascha

    Attachments:
    You must be logged in to view attached files.
    #419430

    Hello,

    Your site is still in maintenance mode: https://gyazo.com/8ee1e0b01772a716e7c1e3e6dca73c83

    Best Regards

    #419522

    oracle1979
    Participant

    Hi Elise,
    as mentioned in my note above, please disable the maintenance mode by yourself to test the behavior.

    I do not want to make the shop public for more than 1 hour because there are many people visiting the url and see proces which are only available for companies. It´s a B2B shop! Thanks

    #419689

    Hello,

    I have checked the shop page in incognito and I do not see prices: https://gyazo.com/4efb9bda96fbe78c81ccbc4e7faa3cf6

    Please clear the cache or check in incognito.

    If you have any questions please feel free to contact us.

    Best Regards

    #419811

    oracle1979
    Participant

    Hello Elise,

    i can see the calculated price in your video, see attached Screenshot.

    Its the calculated price per weight. If you see the price as visitor its easy to calculate the “normal” price. The calculated price needs to be hidden as well.

    Attachments:
    You must be logged in to view attached files.
    #419943

    oracle1979
    Participant

    Attached an additional Screenshot. The whole stuff marked in yellow should be hidden for visitors.

    Attachments:
    You must be logged in to view attached files.
    #419998

    Hello,

    This price is inserted into the product page by means of the third parties plugin, which is why it is shown when the user logged out as this plugin does not assume the option to hide the price for logged-out users.

    Unfortunately, we cannot hide it with CSS. If we hide it, it would be hidden for both: logged-in and logged-out.

    If you have any questions please feel free to contact us.

    Best Regards

    #420106

    oracle1979
    Participant

    Hi Elise, i also reached out to the Germanized Team and they mentioned they are not able to hide it becasue its a function coming from the theme. Is it possible to add something to the fuction php to also hide this information in the same way as the price? If not, could you please let me know where your code is located to hide the price for useres which are not logged in. Many thanks

    #420417

    Hello,

    Please copy and insert this file into the child theme
    woodmart-child/woocommerce-germanized/single-product/price-unit.php

    Then insert this code into this file:

    <?php
    /**
     * The Template for displaying unit price for a certain product.
     *
     * This template can be overridden by copying it to yourtheme/woocommerce-germanized/single-product/price-unit.php.
     *
     * HOWEVER, on occasion Germanized will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see https://github.com/vendidero/woocommerce-germanized/wiki/Overriding-Germanized-Templates
     * @package Germanized/Templates
     * @version 3.9.1
     */
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    } // Exit if accessed directly
    
    global $product;
    ?>
    
    <?php if ( function_exists( 'woodmart_get_opt' ) && is_user_logged_in() && woodmart_get_opt( 'login_prices' ) ) : ?>
    	<?php if ( wc_gzd_get_product( $product )->has_unit() ) : ?>
    		<p class="price price-unit smaller wc-gzd-additional-info"><?php echo wp_kses_post( wc_gzd_get_product( $product )->get_unit_price_html() ); ?></p>
    	<?php elseif ( $product->is_type( 'variable' ) ) : ?>
    		<p class="wc-gzd-additional-info price price-unit smaller wc-gzd-additional-info-placeholder"></p>
    	<?php endif; ?>
    <?php endif; ?>

    If you have any questions please feel free to contact us.

    Best Regards

    #420754

    oracle1979
    Participant

    Hi Elise,
    i thank you so much! Very good support. I´ll rate you 5 stars.

    Ticket can be closed

    Best regards,
    Sascha

    #420822

    Hello,

    All our team appreciates your rate! Thank you!

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Login to see add to cart and prices feature’ is closed to new replies.