cancel
Showing results for 
Search instead for 
Did you mean: 

product attribute titled as “none” in Product view

product attribute titled as “none” in Product view

 

Hi all,

 

another small thing i hope, in Englis the product view works fine, but when i put it on the Dutch language the product attribute is titled as “none” (in dutch geen) in Product view

screen just above the short description.

 

anyone one what to do to get the "geen" (NONE) out of the product view ?

it is only showing up in the Dutch language!

 

Greetings, Wilfred

 

I Use  Mageneto version 2.1.6

4 REPLIES 4

Re: product attribute titled as “none” in Product view

Hi

 

I don't see the screenshot.

If you edit the attribute (Stores > Attributes > Product) and go to the "Manage labels" page, you should see that "geen" is defined as the title for the Dutch store view.

 

Maxime Coudreuse, developer of Product Manager for Magento: User-friendly product editor with customizable grid interface and category tree for Magento 1 and 2

Re: product attribute titled as “none” in Product view

Hi,

 

You also can edit same theme files to filter out the default "none" in other languages (like "geen" or "keine".

 

/public_html/app/design/frontend/**YOUR THEME VENDOR**/***THEME FOLDER****/Magento_Catalog/templates/product/view

Edit File: attribute.phtml

 

 

<?php if ($_attributeValue): ?>
<div class="product attribute <?php /* @escapeNotVerified */ echo $_className?>">
    <?php if ($_attributeLabel != 'none' && $_attributeLabel != 'geen' && $_attributeLabel != 'keine' ): ?><strong class="type"><?php /* @escapeNotVerified */ echo $_attributeLabel?></strong><?php endif; ?>

You will need to add this to the IF statement (in my example on line 37).

 

 

&& $_attributeLabel != 'geen' && $_attributeLabel != 'keine' 

 

 

 

 

Re: product attribute titled as “none” in Product view

If you delete the short description of the product the 'geen' goes away. 

Re: product attribute titled as “none” in Product view

This one worked!

 

It no longer shows up with this.