magento2 – Magento 2 sort product in catalog product list based on product attribute option position

I am working with Magento 2, I need to sort the product on category page based n product attribute.

  1. Product attribute type is dropdown.
  2. I will sort the option while creating attribute.

Now in front if I select this attribute product should sort based on option position.

Example :
Product Attribute name : Test

Attribute type is dropdown.
Option 1: sort1
Option 2: sort2

I have two products. Both has diff value assign. Now if I change the options position it should sort accordingly in frontend.

Thanks in advance.

Verified more than option settings

option setting
how to submit /verify
pause the project after 50
———————–
active numbers are to many
Verify more than option settings
Is there no problem?

“indexable only” option on tier filter β€” πŸ‘‰ GSA SEO and Marketing Forum πŸ‘ˆ

on the “tier filter” under “data”

project>data>tier filter>3rd tick box “indexable only”

how does it define “indexable” because one of the purposes is to build lower tiers to index the urls above, so if it is’nt indexed now, should’nt you be building links to it ?

please explain what this means because surely all of the links above are potentially “indexable” if you build links to themΒ  below ?

Display checked radio button custom option value in product detail page Magento2

Below are custom option of Radio Button Type. How to Display <span> value under the <label> when customer checked Radio button using Jquery? Here All class are dynamic.

Example:
As per the below code I want to show red if customer click on first radio and blue if customer click on 2nd radio button

<div class="options-list nested" id="options-1-list">
   <div>
      <input type="radio" class="radio-product-custom-option" name="options[1]" id="options_1_2" value="1" data-selector="options[1]" price="10" aria-required="true">
      <label class="label" for="options_1_2">
        <span>red</span>
      </label>
   </div>
   <div>
      <input type="radio" class="radio-product-custom-option" name="options[1]" id="options_1_3" value="2" data-selector="options[1]" price="20" aria-required="true">
      <label class="label" for="options_1_3">
        <span>blue</span>
      </label>
   </div>
</div>

architecture – Is implementing the logic of a singleplayer game in a dedicated server a viable option?

I want to start writing a singleplayer game and stumbled upon mature game server libraries in my preferred language. Since I am not a designer, I don’t know what’s possible in the future concerning visuals and having a dedicated server for game logic seems like a good idea at first, here are my thoughts on the topic:

Pros

  • there is a clear separation between game logic and graphics, which allows me to switch from 2D to 3D or even pick an other game engine without re-writing the important bits
  • I can add a multiplayer mode later on with fairly low effort if my plans change

Cons

  • sending messages is more complex than just calling methods, but can be hidden behind a facade
  • the communication can hurt performance, even if the server runs on the same machine

I am unsure about this approach, because I wasn’t able to find resources concerning dedicated servers for singleplayer games exclusively. Is it a viable choice or are there any other cons which outweigh the pros?

Which option needs to be set to create a home directory for a new user using “useradd” command?

If you’re doing this via the command line, you just need -m:

sudo useradd -m {username}

If there is no -m, no home directory will be created. In the event you want to specify a path for the home directory, use -d and specify a directory:

sudo useradd -m -d /your/preferred/path {username}

From there you can set the account password with:

sudo passwd {username}

Hope this helps πŸ‘πŸ»

How do I add vertical errors bars (vertical lines) to a chart in Excel? The “vertical error bar” option is missing

I created a simple line chart in Excel 365, and I’m trying to add a vertical line to the chart at a specified date. I created the chart as a combo line chart (for the data) and a scatter plot with a single point on the important date. I planned to use vertical error bars on the scatter plot to create a vertical line, as I’ve done numerous times before. This time, though, there is no option to add vertical error bars to the point. The only option is to add horizontal error bars.

What’s going on here? How do I add these vertical error bars? To add the error bars, I went to Chart Design –> Add Chart Element –> Error Bars –> More Error Bars Options.

Screenshot 1: Chart and Data

screenshot of chart and data

Screenshot 2: Chart Type Options

chart options

Screenshot 3: Vertical Error Bars option is missing

vertical error bars are missing in the menu

Webform – Hide Option, Source Entity

I really like Webform. The features, benefits and flexibility it offers is outstanding. Congratulations on a great job. The more I learn the more I want to learn.

However, I am struggling and hate to ask for help because we can always do more and more research.

But here goes…. I have a form that has 15 dates for training. I have handlers set for each session to be limited to 25 participants. Now I have been ask to turn off the registration for each of the 15 dates 24 hours prior to that date.

Is it possible to set source entities to hide the dates 24 hours prior to the date?

Thanks so very much in advance for any suggestions and or recommendations.

Is there any option to kill the particular process automatically if it is consuming a particular value of cpu?

some sort of sql process makes my database server to consume 100% of the cpu, Is there any option to kill the particular process automatically if it is consuming a particular value of cpu ?

magento2 – Magento 2: How to unset existing custom option and set new custom option and add product in cart programmatically

I am using Magento ver. 2.3.1, and I have products which have one custom option that is required.

Now I have create a custom controller to add product in cart without existing custom options as sample Order, when I add product in cart it give me error “The product’s required option(s) weren’t entered. Make sure the options are entered and try again”. So I want to unset the existing custom option and set my custom value as custom option and add product in cart.

I am using below code to add product in cart:

<?php
namespace VendorModuleControllerIndex;

use MagentoFrameworkAppActionContext;
use MagentoFrameworkDataFormFormKey;
use MagentoCheckoutModelCart as cartModel;
use MagentoCatalogModelProduct;
use MagentoFrameworkSerializeSerializerInterface;
use MagentoCatalogModelProductRepository;
use MagentoFrameworkControllerResultRedirectFactory; 
use MagentoFrameworkAppRequestHttp;
use MagentoCatalogModelProductOption;

class Cart extends MagentoFrameworkAppActionAction
{
    protected $formKey;   
    protected $cart;
    protected $product;

    protected $serializer;

    protected $_productRepository;

    protected $resultRedirectFactory;

    protected $request;

    protected $productOptions;


    public function __construct(
        Context $context,
        FormKey $formKey,
        cartModel $cart,
        Product $product,
        SerializerInterface $serializer,
        ProductRepository $productRepository,
        RedirectFactory $resultRedirectFactory,
        Http $request,
        Option $productOptions

        ) {
            $this->formKey = $formKey;
            $this->cart = $cart;
            $this->product = $product;
            $this->serializer = $serializer;
            $this->_productRepository = $productRepository;
            $this->resultRedirectFactory = $resultRedirectFactory;
            $this->request = $request;
            $this->productOptions = $productOptions;
            parent::__construct($context);
    }
    public function execute()
     { 
        $productId = $this->request->getParam('productid');
        
        $_product = $this->product->load($productId);

        $customOptionss = $this->productOptions->getProductOptionCollection($_product);        

        $additionalOptions() = array(
            'label' => "Is order Sample",
            'value' => "Yes",
        );

        $params = array(
                'form_key' => $this->formKey->getFormKey(),
                'product' => $productId,
                'qty' => 1,
            );

        $_product = $this->_productRepository->getById($productId);
        $_product->addCustomOption('additional_options', $this->serializer->serialize($additionalOptions));
        $customPrice = 0.0;
        $_product->setPrice($customPrice);
        $_product->setIsSuperMode(true);
        $this->cart->addProduct($_product, $params);
        $this->cart->save();

        $resultRedirect = $this->resultRedirectFactory->create();
        $resultRedirect->setPath('checkout/cart');
        return $resultRedirect;
     }
} 

Please let me know how to do this.
Thanks