#StackBounty: #magento2 #attributes #rest-api #attribute-set API: Accessing All attributes associated to a Attribute-Group

Bounty: 50

So I’m in need to check to see if an attribute group contains a specific attribute_id. However using the API, there doesn’t appear to be a specific endpoint which lists all attributes associated to a group, only to an attribute set.

What I was hoping to achieve was to use the endpoint:

/rest/default/V1/products/attribute-sets/{attributeSetId}/attributes

and use searchCriteria[filterGroups] to search for a group_id field which doesn’t appear to exist.

Does anyone know if this is even possible to do?

Thanks


Get this bounty!!!

#StackBounty: #python #autocomplete #attributes Is it possible to have Python IDEs offer autocompletion for dynamically generated class…

Bounty: 200

Are there any tricks I can employ to get IDEs to offer code completion for dynamically generated class attributes? For instance


class A:
    
    def __init__(self):
        setattr(self, "a", 5)

This code will set the class attribute of A called a to the value of 5. But IDEs do not know about a and therefore you do not get code completion for it. I’ve read that the __dir__ method can be hooked, but the suggestion made in that answer has not worked for me. Does anybody have any ideas?


Get this bounty!!!

#StackBounty: #magento2 #attributes #product-attribute get options value of each options label of an attribute

Bounty: 50

I have an alphabetical sorted list of option label of an attribute, I want to get option value of each option label
this is my code:

<?php
$om = MagentoFrameworkAppObjectManager::getInstance();

/** @var MagentoCatalogApiDataProductAttributeInterface $attribute */
$attribute = $om->get(MagentoCatalogApiProductAttributeRepositoryInterface::class)->get("manufacturer");
$image_source_files = [];
?>

<div id="main_content_wrap" class="outer">
    <section id="main_content" class="inner">

        <ul id="demoOne" class="demo">
<?php foreach ($attribute->getOptions() as $option) {

    $src =  $option->getLabel() ;
    $image_source_files[] = $src;
    
    
}
sort($image_source_files);


foreach ($image_source_files as $value) { 
    $srca = $value ;
    $srcb = $this->getViewFileUrl("images/" . $srca . ".png");
?>  
<li>                


<a href="<?php echo $option->getValue()?>  ">
<p style="display:none;">
<?php echo $srca; ?></p>
<img src="<?php echo $srcb; ?>"  onerror="this.onerror=null; this.remove(); " style="padding: 10px 20px;"  width="200" height="200"/>
</a>
</li>
    <?php

}

?>
</ul>   
</section>
</div>


Get this bounty!!!

#StackBounty: #magento2 #attributes #product-attribute #eav Magento 2 – Update eav attributes in a other attribute automatically

Bounty: 50

we have a multi brand shop with 60K+ of products.

Every brand has it’s own way of dimensions.
Which results in an attribute list of 500+ entries.
Attribute: POS-size

Here is a screenshot of this:
enter image description here

But this list is to big to use for a filter on front-end.
Thats why we have added an extra attribute for this. To simplify all these sizes.
This attribute is: size-frontend

Here is a screenshot:
enter image description here

After I have made new products (added via a POS system) I have to manually update the simple product with the size-frontend attribute.

Some examples:
Pos-size -> size-frontend
50 -> 50
50/56 -> 50 & 56
56 -> 56
56/62 -> 56 & 62
56-62 -> 56 & 62

This costs a lot of time, and I think think this could be done automatically (through a script or an extension) after making some kind of conversion table.
And it should also be able to give an starting product-id, from where it should start.

Does anyone know how to do this? Or know an extension which can do this?


Get this bounty!!!

#StackBounty: #magento2 #attributes #product-attribute #magento2.3.4 How to delete unused dropdown values, those unused by any product,…

Bounty: 50

I’m trying to delete unused dropdown options, the values that are not used by any product.

So what is the proper way to delete all unused dropdown options? What APIs should I use for this?

Here is a picture of where these options are managed in the backed, to help clarify which ones I’m talking about specifically.

Manage Options


Get this bounty!!!

#StackBounty: #magento2.3 #attributes #customer Magento 2.3: Custom Customer Attributes are not getting saved

Bounty: 100

We are using Magento 2 Enterprise Edition and created some of the custom customer attributes via admin panel (its one of the feature in enterprise edition though its not available in community edition).

I can see all the new custom attributes in frontend. However, when I fill in the data and try to save, its not getting saving but when I do the same process that is saving the data via admin panel, its saving without any issues.

So why am I not able to save the data from the frontend?

Any help will be appreciated!


Get this bounty!!!