Hide when not logged in

HI,

I’d like to hide the circled items when a customer is not logged into the site.

my site is luxurymrkt.com/products/gucci-womens-platform-sandal?pr_prod_strat=collection_fallback&pr_rec_id=0d471e9a8&pr_rec_pid=7919861694645&pr_ref_pid=7919861792949&pr_seq=uniform

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the tag

{% unless customer %}
.product-block--price .product__price-savings,
.product-block a:first-child,
.grid-product__price .grid-product__price--savings {
   display: none !important;
}
{% endunless %}

Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!

Hi @Luxurymrkt

You can do that by adding this code to theme.liquid file after

{% if customer %}

{% endif %}

Hi @Luxurymrkt

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find layout > theme.liquid and paste this at the bottom of the file:
{% unless customer %}
  
{% endunless %}

Hi @Luxurymrkt

Step 1. Go to Admin → Online store → Theme > Edit code

Step 2. Find the file theme.css. Add the following CSS snippet

[data-product-blocks]:has(.notAuthorizedBoxText) [data-save-price], .product-block:has(.notAuthorizedBoxText)+.product-block {
    display: none !important;
}

Result

If it helps you, please like and mark it as the solution.

Best Regards