Home › Forums › WoodMart support forum › Login to see add to cart and prices feature
Login to see add to cart and prices feature
- This topic has 14 replies, 2 voices, and was last updated 2 years, 1 month ago by Elise Noromit.
-
AuthorPosts
-
October 10, 2022 at 10:21 pm #412624
oracle1979ParticipantHello, 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.October 11, 2022 at 2:19 am #412643
Elise NoromitMemberHello,
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
November 4, 2022 at 8:07 pm #418779
oracle1979ParticipantHi 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 SaschaNovember 5, 2022 at 1:33 am #418817
Elise NoromitMemberHello,
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
November 7, 2022 at 11:48 pm #419382
oracle1979ParticipantHello,
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
SaschaAttachments:
You must be logged in to view attached files.November 8, 2022 at 5:19 am #419430
Elise NoromitMemberHello,
Your site is still in maintenance mode: https://gyazo.com/8ee1e0b01772a716e7c1e3e6dca73c83
Best Regards
November 8, 2022 at 12:34 pm #419522
oracle1979ParticipantHi 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
November 9, 2022 at 5:30 am #419689
Elise NoromitMemberHello,
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
November 9, 2022 at 2:48 pm #419811
oracle1979ParticipantHello 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.November 9, 2022 at 10:15 pm #419943
oracle1979ParticipantAttached an additional Screenshot. The whole stuff marked in yellow should be hidden for visitors.
Attachments:
You must be logged in to view attached files.November 10, 2022 at 6:19 am #419998
Elise NoromitMemberHello,
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
November 10, 2022 at 1:33 pm #420106
oracle1979ParticipantHi 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
November 11, 2022 at 3:22 pm #420417
Elise NoromitMemberHello,
Please copy and insert this file into the child theme
woodmart-child/woocommerce-germanized/single-product/price-unit.phpThen 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
November 13, 2022 at 11:17 pm #420754
oracle1979ParticipantHi Elise,
i thank you so much! Very good support. I´ll rate you 5 stars.Ticket can be closed
Best regards,
SaschaNovember 14, 2022 at 7:53 am #420822
Elise NoromitMemberHello,
All our team appreciates your rate! Thank you!
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘Login to see add to cart and prices feature’ is closed to new replies.
- You must be logged in to create new topics. Login / Register