Customer Logged In condition to display Block in Magento2 - magento

Is there any condition which checks customers is already Logged in Layout XML file?
I want to display "Sign In / Sign Up" links if customer is not logged in and "My Wishlist/ My Cart / Sign Out" links if customer is logged in.
Note: I don't want to display MY Wishlist and My Cart link when customer is not logged in to the system.

Related

In magento admin under customer's account the items added to cart are not visible

I am working in my localhost.I have a registered user.
When the registered user adds the product to the cart in frontend.
But when I go to admin customers >manage customers and check there customer view it does not show any product in customer's cart.
How can I fix this?!
Is this a bug in magento

Magento advanced newsletter hide fields when logged

i`m using the Advanced Newsletter extension on my magento store: http://ecommerce.aheadworks.com/magento-extensions/advanced-newsletter.html
My problem is:
If the user is not logged he can see all input field (name, email...), but if he is logged all inputs disappears and he can only see the subscription button which only subscribe his account e-mail.
I need guest users and logged users seeing the same form! Both need to be able to choose any email they want to subscribe.
Does anyone know how to fix it?

Magento customer dedicated confirmation page - with working confirmation

New customers receive an email in which they have to click on the confirmation link. This link should put the customer to the account-page with the message "hey, your account is now confirmed"... How could I tell Magento to show the user an alternative page without lead him to the regular page?

Magento cachen in header: welcome and cart when session expired

It seems my Magento is showing wrong information in my header. When the session expires, it still shows information for a specific user. When I return to the website after a day, I did still see "welcome rolandow!", but then when I click this to access "my account", it asks for my login details.
The welcome message I solved by checking in the Header block with IsLoggedIn() if the user is still logged in. But now it also shows my shopping cart while I am logged out.
It shows the actual shopping cart of the user account that I last used to log in. If I open another browser, alter my shopping cart, and then refresh the browser with expired session, the cart is renewed, so the data must be pulled out of the DB. When I click my account, or want to finish the checkout, it asks for login.
So this must be a cookie / cache problem.
I am using APC cache on the server. I don't have caching plugin's installed. Version is 1.6.2.0.
Any idea's?
Ok, sorry, this was probably just the setting "Persistent Shopping Cart" which can be found under System -> Configuration -> (Customers) Persistent Shopping Cart.

My Magento wishlist doesn’t work

I am running the Magento version 1.5.0.1 and I have a problem with the wishlist.
If the visitor clicks Add to wishlist without being logged in, the website redirects them to the login or register page, that's OK. The problem is that once the user create the account or log in, the wishlist is empty or that product never where added to the wishlist.
If the user is logged in and clicks "Add to wishlist" it works perfectly.
I appreciate any comment.

Resources