Hice Product Code

Hello,

Is there any way to hide the product code in the products page, i dont want to give that information to the costumer because i think it useless?

Thanks in advance

The simplest way is to add the following code to the CSS section of the Theme editor

.ty-product-block__sku {
    display: none !important;
}

Note that product code still can be found in the source code of the pages with this solution

The simplest way is to add the following code to the CSS section of the Theme editor

.ty-product-block__sku {
    display: none !important;
}

Note that product code still can be found in the source code of the pages with this solution

Hello i tried adding the css but nothing happend the product code still shows, is there any other solution?

Check the topic.

Best regards,

Alt-team.

You can also use a hook to have it set the captured SKU code to be empty for the condition that $controller == 'products' && $mode == 'view'. Or you can have the template be called with a parameter of "$show_sku = false". Too much detail to describe here.

However, the original css solution provided by alt-team should work fine. Assuming you cleared the cache after you made the changes. Does the "display: none !important;" property show when inspecting that field using the browser inspector?

Hello!

Please have a look at our Page Layout Options add-on. It allows to modify product detail page, product list page and product blocks. For example, you can easily switch off some elements on the product detail page:

Hello i tried adding the css but nothing happend the product code still shows, is there any other solution?

It can caused by 3rd party theme. Please PM me URL of your website so that we can help you.