How to sort layered navigation attributes on Alphabetic order

Trying to find a solution for the order of the attributes in layered navigation on the category list page.

Now I have to sort them in the attributes from backend, and it is not a good way with many entries.

How can I change the dropdown for the attributes to be sorted in 1-9 and a-z ? (not from backend)

Now it can be

B
P
8
A

When it should be

8
A
B
P

Thank you !

Attributes error on importing Magento 2 products

Im tryin to import products.csv on my Magento 2.2.6 website, but i receive the below error.

1. Value for 'news_to_date' attribute contains incorrect value in row(s): 1, 2, 3, 8, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 40, 41, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 340, 344, 348, 350, 354, 355, 356, 363, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 391, 445, 448, 451, 465, 466, 467, 470, 472, 473, 475, 476, 477, 480, 482, 487, 493, 494, 495, 499, 507, 543, 592, 599, 633, 648, 649, 776, 819
2. Value for 'special_to_date' attribute contains incorrect value in row(s): 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 32, 33, 42, 43, 52, 111, 168, 177, 234, 265, 266, 271, 318, 323, 324, 329, 330, 331, 334, 339, 341, 342, 343, 346, 359, 360, 368, 369, 370, 390, 395, 396, 397, 401, 402, 403, 404, 406, 407, 408, 409, 418, 422, 429, 431, 498, 506, 537, 569, 576, 578, 580, 584, 589, 594, 597, 600, 606, 612, 613, 629, 631, 635, 637, 638, 647, 651, 657, 661, 662, 663, 664, 665, 666, 668, 671, 672, 680, 682, 683, 724, 725, 735, 736, 754, 759, 761, 764, 765, 766, 768, 778, 826, 827, 845, 847, 848, 849, 870, 871, 872, 874, 875
3. Value for 'special_from_date' attribute contains incorrect value in row(s): 47, 125, 126, 134, 149, 156, 165, 172, 197, 333, 335, 338, 345, 349, 352, 357, 358, 367, 392, 393, 394, 400, 405, 410, 411, 414, 415, 416, 419, 420, 421, 423, 424, 425, 426, 427, 428, 430, 432, 433, 434, 435, 436, 437, 438, 439, 441, 446, 447, 449, 450, 452, 455, 457, 459, 460, 461, 462, 463, 464, 468, 469, 474, 478, 479, 481, 486, 492, 497, 500, 501, 502, 503, 505, 508, 509, 510, 513, 514, 515, 517, 518, 519, 520, 524, 527, 529, 530, 531, 533, 534, 535, 541, 542, 545, 546, 547, 548, 551, 560, 561, 562, 563, 564, 568, 570, 571, 573, 574, 575, 577, 581, 582, 583, 588, 598, 601, 608, 618, 620, 627, 628, 632, 636, 644, 645, 650, 656, 674, 675, 676, 677, 678, 679, 681, 697, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 721, 722, 723, 727, 728, 729, 730, 731, 732, 733, 734, 747, 755, 757, 762, 769, 772, 773, 775, 777, 820, 824, 825, 846, 850, 868, 892
4. Value for 'news_from_date' attribute contains incorrect value in row(s): 538, 544, 552, 694, 695, 698, 699, 700, 701, 702, 703, 704, 705, 716, 717, 718, 719, 720, 726, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 748, 749, 750, 751, 752, 753, 756, 758, 760

I dont know how to skip these. I have no clue what these attribute values are. Can somebody help? Download the Products.csv file here: http://informaticsdemo.com/Products.csv (3MB)

Magento 2.2.5 – The price attribute and visibility attributes are not visible in admin panel product editing…

Magento 2.2.5– The price and visibility attributes of catalog_products are not visible while going to the product edit page. I want to update the price of the products.

What could be the reason?

enter image description here

How do I import attributes with the feed mapper?

I have a Drupal 7 instance with Ubercart 3, and I’m also using the Ubercart Feed Mappers module to map out the importing of product fields. I have all the fields, images and categories working well, but not attributes.

I’ve searched high and low for an answer or a short how to for importing attributes and multiple attributes for each product but with no success. How can I achieve it?

How to add multiple products to cart at the same time with attributes

I have different view blocks that display multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / criteria of the main product. The results of the options slider will be the value of the customs line item that is hidden.

What I plan to accomplish is to add all these selected products with the selected attributes on the cart at the same time with just one button.

Example:

Product 1:

enter image description here

Product 2:

enter image description here

These are the methods/modules I have tried:

  • VBO + Rules : https://www.drupal.org/node/1468392#comment-10270105
  • Commerce Add to Cart Extras
  • Commerce Ajax Add to Cart + Jquery : Looping through all selected products then clicking the add to cart button by jquery. It works but not that great because sometimes some of the products are not being added. Maybe because of all the ajax request running at the same time?

The first two methods work for the main product only, no attributes of the customs line item and bundle products. I tried including the add to cart form in the view with the VBO or commerce product: quantity field of commerce add to cart extras but it doesn’t work maybe because it’s a form within a form.

Does anyone have any suggestion on how to make this work?

Thank you in advance!

Create templates from attributes for categories

I want to make something as a template for requested attributes for products by categories. For example let’s have category named shirts, I would like every product from this category to have color and size attributes. What I want is when I go to the attribute menu, while I’m creating new product, those attributes to be already there, and just type their value.

Question: Consider the possible attributes of an environment among several modalities (observability,…

Consider the possible attributes of an environment among several modalities (observability, determinism, discreteness, etc.). For each, consider the possible options (e.g., deterministic vs. stochastic, or continuous vs. discrete) and compare them. Would one prove harder to design an intelligent agent for than the other? Why?

(For example, designing an agent for a partially observable environment is naturally more difficult than for a fully observable environment because we cannot be certain of the state and must use additional overhead to maintain some sort of belief state.)

(Help with Artificial Intelligence homework. A straight up answer would be preferable.)

Digitize points with attributes

I am new to GEE. I have an application where values can be set then points digitized. I need to programmatically apply the values to fields(properties) while a user is adding points. I don’t seem to find an API into the ‘Configure geometry import’ tool where the attribute field values can be set then applied to any new points that are digitized. I don’t want a feature collection because each feature can have different values for the limited set of fields.

Anyone have an example of digitizing points and applying different values at different times while to user is adding points?

Design a class to have several attributes or one attribute as dictionary with many keys, Python3 [on hold]

I have class for calculating temperature of an object at different positions, based on ambient temperature.

class BodyA:
    def __init__(self, ambient_temperature)
        self.amb_t = ambient_temperature
        self.pos1_t = self.amb_t + 1
        self.pos2_t = self.amb_t * 2
        self.pos3_t = self.pos1_t + self.pos2_t - 5


class BodyB:
    def __init__(self, ambient_temperature)
        self.amb_t = ambient_temperature
        self.pos_t = dict()
        self.pos_t['pos1'] = self.amb_t + 1
        self.pos_t['pos2'] = self.amb_t * 2
        self.pos_t['pos3'] = self.pos_t['pos1'] + self.pos_t['pos2'] - 5

In practical case, there are up-to 10 positions, and I want to build child-class from it. And some child-classes do not have certain positions. For example, pos2 can be missing in some child.

Could you please let me know, which design is better in terms of OOP and efficiency. Thanks.