How do I use the ‘Display Wrapper Attributes’ feature?

The image below is from the ‘Advanced’ tab of a custom composite element in a Drupal Webform. The element is creating an unordered list <ul> in HTML-speak. The list items <li> are, in turn, a list of information. I would like to create some space between the bottom of one <li> item and the top of the next one.

In the ‘Submission Display’ section of the ‘Advanced’ tab of the element I’m building for the webform, is a way to add ‘Display CSS classes’ and/or ‘Display CSS style’. As you can see, I know how to create the ‘custom’ CSS class here; but, then what do I do to tell Drupal or Webform to do stuff WITH the custom class?

enter image description here

Setting extension configurable attributes from Google Workspace

I’m investigating the ability to create a Chrome extension that can be controlled by an organizations Google Workspace account. I’ve been trying to figure out how to allow the organization to customize certain parameters in their GCP console, and then push those values down to the extension each time the values change.

I am assuming these prerequisites:

  1. The Chromebook or browser have been enrolled in the organizations Enterprise manager
  2. The organization can force install and the extension

If this capability isn’t available, I suppose the extension could look for a JSON file at a specific location, but then the extension would still need to be told where to find that file – and we’re back to the same sort of issue.

I’ve read through all of the Chrome extension docs I could find (including the Manifest V3 section).

emails – How do I use the ‘Display Wrapper Attributes’ feature of Drupal Webforms 5.x?

The image below is from the ‘Advanced’ tab of a custom composite element in a Drupal Webform. The element is creating an unordered list <ul> in HTML-speak. The list items <li> are, in turn, a list of information. I would like to create some space between the bottom of one <li> item and the top of the next one.

In the ‘Submission Display’ section of the ‘Advanced’ tab of the element I’m building for the webform, is a way to add ‘Display CSS classes’ and/or ‘Display CSS style’. As you can see, I know how to create the ‘custom’ CSS class here; but, then what do I do to tell Drupal or Webform to do stuff WITH the custom class?

enter image description here

commerce – How to display selectable variations without attributes?

With Drupal Commerce 2, each of my products have multiple variations which are unique and can be adequately described by their variation title.

I can not figure out how to display a dropdown for the add to cart form based the variation title alone. All that is shown is the title of first variation, the price and the add to cart button. No dropdown with the other variations.

The only way I can get it to work is by first creating a series of matching attributes which is both a repetitive exercise and seems like it should not be necessary.

What am I missing?

Similar question: What’s the best the approach to add an extra attribute field in Drupal Commerce?

wp query – Use wc_get_products() to get products, with product attribute’s value in specific numeral range (e.g. between 100 and 200)

I have products, that have an attribute – power, which has numeral values, like 10, 25, 150…

I want to use wc_get_products() to get products, which would have power attribute’s values in specific range. Let’s say between 100 and 200.

In my query’s parameters I tried to use tax_query, because as I understand product attributes are considered to be a taxonomy.

I was only able to construct a query, that would get a specific value.

$args = (
    'status'                => 'publish',
    'return'                => 'ids',
    'tax_query' => array(
        array(
            array(
                'taxonomy' => 'pa_power',
                'field'    => 'name',
                'terms'    => '150',
              )
        )
    ),
);


$products = wc_get_products($args);

magento2.3.2 – graphql product query huge perfomance hit when filtering with multiple attributes

I have used the below GRAPHQL query to get the product list.

{
  products(filter: {category_id: {eq: "77"},color:{in:("5437","5438","5449")}, price:{from:"100", to:"200"},paint_usability:{in:("5554")},paint_quantity:{in:("5553","5546")}, approval:{in:("2", "4")}}, pageSize: 10, sort: {name: DESC}) {
}

but It will take time to get the product data. I have enabled SQL log and I find one query to load the time

INSERT INTO `search_tmp_60a797f2ed7ce8_60598401` SELECT `main_select`.`entity_id`, SUM(score) AS `relevance` FROM (SELECT DISTINCT  `search_index`.`entity_id`, (((0) + (0) + (0) + (0) + (0) + (0) + (0)) * 1) AS `score` FROM `catalog_product_index_eav` AS `search_index`
 INNER JOIN `cataloginventory_stock_status` AS `stock_index` ON stock_index.product_id = search_index.entity_id AND `stock_index`.`website_id` = 0 AND `stock_index`.`stock_id` = 1
 INNER JOIN `catalog_product_index_eav` AS `color_filter` ON `search_index`.`entity_id` = `color_filter`.`entity_id` AND `color_filter`.`attribute_id` = 93 AND `color_filter`.`store_id` = 1
 INNER JOIN `catalog_product_index_eav` AS `approval_filter` ON `search_index`.`entity_id` = `approval_filter`.`entity_id` AND `approval_filter`.`attribute_id` = 165 AND `approval_filter`.`store_id` = 1
 INNER JOIN `catalog_product_index_eav` AS `paint_quantity_filter` ON `search_index`.`entity_id` = `paint_quantity_filter`.`entity_id` AND `paint_quantity_filter`.`attribute_id` = 197 AND `paint_quantity_filter`.`store_id` = 1
 INNER JOIN `catalog_product_index_eav` AS `paint_usability_filter` ON `search_index`.`entity_id` = `paint_usability_filter`.`entity_id` AND `paint_usability_filter`.`attribute_id` = 198 AND `paint_usability_filter`.`store_id` = 1
 INNER JOIN `cataloginventory_stock_status` AS `color_filter_stock_index` ON color_filter_stock_index.product_id = color_filter.source_id AND `color_filter_stock_index`.`website_id` = 0 AND `color_filter_stock_index`.`stock_id` = 1
 INNER JOIN `cataloginventory_stock_status` AS `approval_filter_stock_index` ON approval_filter_stock_index.product_id = approval_filter.source_id AND `approval_filter_stock_index`.`website_id` = 0 AND `approval_filter_stock_index`.`stock_id` = 1
 INNER JOIN `cataloginventory_stock_status` AS `paint_quantity_filter_stock_index` ON paint_quantity_filter_stock_index.product_id = paint_quantity_filter.source_id AND `paint_quantity_filter_stock_index`.`website_id` = 0 AND `paint_quantity_filter_stock_index`.`stock_id` = 1
 INNER JOIN `cataloginventory_stock_status` AS `paint_usability_filter_stock_index` ON paint_usability_filter_stock_index.product_id = paint_usability_filter.source_id AND `paint_usability_filter_stock_index`.`website_id` = 0 AND `paint_usability_filter_stock_index`.`stock_id` = 1
 INNER JOIN `catalog_product_index_eav` AS `visibility_filter` ON search_index.entity_id = visibility_filter.entity_id AND `visibility_filter`.`attribute_id` = 99 AND `visibility_filter`.`value` in ('2', '4') AND `visibility_filter`.`store_id` = '1'
 INNER JOIN `catalog_category_product_index_store1` AS `category_ids_index` ON search_index.entity_id = category_ids_index.product_id AND category_ids_index.store_id = '1'
 INNER JOIN `catalog_product_index_price` AS `price_index` ON search_index.entity_id = price_index.entity_id AND price_index.website_id = '1' WHERE (search_index.store_id = '1') AND (category_ids_index.category_id in ('77')) AND (`price_index`.`min_price` >= '100' AND `price_index`.`min_price` <= '200' AND `price_index`.`customer_group_id` = 0) AND (color_filter.value  IN ('5437','5438','5449')) AND (approval_filter.value  IN ('2','4')) AND (paint_quantity_filter.value  IN ('5553','5546')) AND (paint_usability_filter.value  IN ('5554'))) AS `main_select` GROUP BY `entity_id` ORDER BY `relevance` DESC, `entity_id` DESC
 LIMIT 9223372036854775807

any solution on this?

javascript – PhpStorm warning for react attributes in jsx file with scss file

how to remove Unknown class name waring in phpstorm in jsx file ?

suppose i have a class in scss tab-lists with item like

.tab-lists {
      &__item {
        width: 1 / 3 * 100%;
        display: inline-block;
  }
}

and my jsx file i use like that

<Tab className={`${styles["tab-lists__item"]}`}>Overview</Tab>

but my phpstorm always show Unknown class name "tab-lists__item"

how to remove this waring ?

Display Products Attributes label is exported CSV file

I want to display product attributes label in exported csv file from backend file.Currently it display product attributes code in exported csv file.

Thanks

attributes – Ways to hide a secret token with some code?

I worked out a way to prompt notifications to peopel using my mathematica code that a new version is available. My code is in a private github repository, mathematica can access it using http requests and a token as authentication. Now, Unfortunately github does not allow read-only permissions. So I am afraid to push out the new version with the autoupdate, as it will neeed to contain the token, and if the token is shared anybody could access all my repos.
Now, on the internet I found the suggestion to make a new github account and add him to the repo, and then generate the token with this account, in this way at least only a single repo will be at risk. I don-t like this solution much, though.
Now I was wondering if there is any way to “hide” the value of the variable to an average mathematica user, still allowing it to be used for commands (basically I just have to insert it in an http request).

Of course I understand that anybody with some computer knowledge can for example sniff the request, but I would already be happy if typing the name of the variable and pressing enter in mathematica would result in it value NOT being displayed, and same regarding the user being unable to get it by opening the file and reading it.
The second part is easy, I can use Encode.
The first part, however, is a problem. I hoped I could set attributes ReadProtected and Locked. However, these work to hide function definitions, NOT variable values. And also functions can still be evaluated, so I cannot hide my string in a function. Any ideas?

Magento 2 – How to add custom customer attributes to sales order API?

I have created custom attributes in the customer table.

I want to add those attributes in order API. How can I do this? Thanks.