magento2 – Check is size and color is selected or not on click of “Click here and check” which is in image.?

Stack Exchange Network

Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

plugins – how we show dropdown pages values in admin sites When we Click on save button ?Screen Shot Attach

add_settings_field (

            'WhattsApp_Advance_Pages_fld', // ID used to identify the field throughout the theme 

            esc_html__('Where you Want To display?', 'Woo-WhattsApp'), // The label to the left of the option interface element

            array($this, 'WhatsApp_Advance_Pages_Callback'),   // The name of the function responsible for rendering the option interface  

            'WhatsApp_Advance_Settings_page', // The page on which this option will be displayed 

            'WhatsApp_Advance_Settings' // The name of the section to which this field belongs





//CallBack function
public function WhatsApp_Advance_Pages_Callback() {


<option value=”all”

<option value=”Shop”

                            <option value="Product" <?php echo esc_attr(get_option('WhattsApp_Advance_Pages_fld'));  ?>
                                <?php echo esc_html__("Product", 'Woo-WhattsApp'); ?>

                             <option value="product-category" <?php echo esc_attr(get_option('WhattsApp_Advance_Pages_fld'));  ?>
                                <?php echo esc_html__("product-category", 'Woo-WhattsApp'); ?>
                             <option value="Products taggs" <?php ( "Products taggs")  ?>
                                <?php echo esc_html__("Products-taggs", 'Woo-WhattsApp'); ?>





Should Save pages values

How to earn $500 per day in ppc search engine(XML feed) or pay per click?

Is it unbelievable, or do you just not want to believe it? Think about the methods. We’re not selling a product with limited quantity and we’re not stuck on just one product. If you can make $10 per month, you can make $10,000 per month. It’s all a matter of how hard, and more importantly, how smart, you are willing to work. Once you have a ppc campaign set-up which is yeilding a positive result, you just throw more money at it! If 100 clicks = 10 sales, then basic math tells us that 1000 clicks should (although not always) = 100 sales.

Also remember that most ppc methods are automated. Once you have everything in place, you don’t have to actively work on it anymore, you just track it and make sure it’s still working. You can still optimize, but the hard work is at the beginning. Your time is now freed up to work on the next program.

You’re not going to make $10,000 per month your first month in. You’re probably not going to make $10,000 per month you first year in (although it’s possible).

Experiment and find a program that works for you. Get everything in place so that the program runs on auto-pilot. Once you have one program in place, get to work on the next one. Don’t rest on your laurels.

Even if you never surpass $10 per month on a single program, you can still make killer money as long as each program is automated. If it takes you 1 week to set-up a program that makes $10 per month, and there’s 52 weeks in a year, you can be making $520 per month at the end of the year assuming the programs continue performing.

The reality is that each sale should pay quite a bit higher than $10! Let’s look at it more realistically. If you should set-up a program that makes you $100 per month and it takes you 1 week. 52 weeks in a year, 52 successful programs later, you’re making $5,200.00 per month! Wow, math is cool!

So, that’s a basic overview of how you can end up making $10,000 per month. I’m not making anything close to that, because I’m still new at this myself. People who have been at this for quite awhile are usually making a killing.

Don’t forget that if you’re running a ppc campaign and it’s making money, THROW MORE MONEY AT IT! It will make more money!

I hope this has helped.


¿Cómo puedo extraer los datos de un columna en una JTable sin darle click? JAVA

Mi pregunta es ligeramente complicada pero simple a la vez, resulta que la tarea de mi proyecto es hacer una consulta a base de datos cada 60 segundos, dentro de la tabla de la base de datos existe una columna con el nombre “ERROR” si el valor de “ERROR” es = 0 entonces una alarma suena, sin importar cuantos encuentre solo suena una alarma, y dentro de mi proyecto muestra esas filas en un JTable, dentro de ese JTable existe un botón con el nombre “APAGAR” que básicamente apaga las alarmas, con la única condición de que tendrán que estar todas las alarmas apagadas para poder silenciar la alarma.
en la tabla tengo 5 filas entonces tengo 5 botones de apagar, necesito presionar los 5 botones para que la alarma deje de sonar.
Hasta aquí todo bien, el problema esta en que después de 60 segundos, necesito hacer una condición de que mi alarma no suene si no encuentra nuevas filas con la columna “ERROR” = 0, es decir, si en mi consulta a la tabla dentro de la base de datos encuentro las mismas 5 filas a las cuales ya les apague la alarma, simplemente no suenen, solamente van a sonar si encuentra una nueva fila con la columna “ERROR” = 0, para esto se me ocurrió extraer los datos de la tabla, que dentro tiene una columna “ID” (que es invisible) y meter esos datos en un array, para hacer una comparación, ya que al momento de apagar las alarmas estas se agregan a un array, entonces mi comparación sería algo mas o menos así:
entonces enciende la alarma
no la enciendas
por lo que necesito saber si existe alguna forma de extraer los datos de la columna ID dentro de mi JTable sin usar un clic event,
Dejo una parte del código de mi tabla para una mejor comprensión, de ante mano, muchas gracias:

 private void tableMouseClicked(java.awt.event.MouseEvent evt) {                                   

   int column = table.getColumnModel().getColumnIndexAtX(evt.getX());
   int row = evt.getY()/table.getRowHeight();
   if(row < table.getRowCount() && row >= 0 && column < table.getColumnCount() && column >=0){
   Object value = table.getValueAt(row, column);
   if(value instanceof JButton){
   JButton boton = (JButton) value;
   if(boton.getName().equals("A")){ //ESTE ES EL BOTÓN QUE APAGA LA ALARMA
           alarmasApagadas = new String(getAlarmas() + 2); //GET ALARMAS ME DICE CUANTAS ALARMAS TENGO EN LA JTable
           instancia = true;
            if(buscarLista(alarmasApagadas,getIdTabla())){//buscarLista es una función que busca dentro de mi array "alarmasApagadas"
       JOptionPane.showMessageDialog(rootPane, "Esta alarma ya se encuentra apagada","ALARMA",JOptionPane.INFORMATION_MESSAGE);

       }else{//Si no encuentra la alarma dentro del array significa que esa alarma aún no ha sido apagada.
       String mensaje = "Realmente desea apagar la alarma para el registron" + "con Fecha: " + getFechaTabla() + 
                        "nDel centro: " + getCentroTabla() + " Caja: " + getCajaTabla();
      int resp = JOptionPane.showConfirmDialog(rootPane, mensaje, "APAGAR ALARMA",JOptionPane.INFORMATION_MESSAGE);
      if(resp == JOptionPane.YES_OPTION){
          mensaje = "Se ha detenido la alarma del registro con fecha: " +getFechaTabla()+
                    "n Del centro: " + getCentroTabla() + " Caja: " + getCajaTabla();
          /*Si el número de veces que se ha apagado la alarma es igual al número de alarmas*/
          if(clic == getAlarmas()){
          /*Detiene la alarma*/
          /*Instancia el número de clics a uno*/
          clic = 1;
          }else{/*Si no aumenta el número de clics de alarmas apagadas en 1*/
          sec.mostrarSeccionInformacion(secInfo,mensaje);//Esta función muestra en un JTextArea un mensaje que me dice que la alarma ya se apago
          alarmasApagadas(clic) = getIdTabla();//Aquí estoy agregando el ID de la alarma al array "alarmasApagadas" para saber si ya tengo apagada esa alarma
   }if(boton.getName().equals("F")){//Este es otro botón que hace un update a base de datos
   modal();//Esta función hace un update a BD
   DefaultTableModel modelo = (DefaultTableModel) table.getModel();
    modelo.removeRow(table.getSelectedRow());//Aquí se elimina la fila a la que hago clic

javascript – VueJS: Order of Items in a List Changing after Click

I’m using VueJS/Nuxt and facing a peculiar problem.

The list contains a few items and each list item is clickable. When I click an item, it takes me to a new page containing data for that item. But when I return back to the main page, the order of items is shuffled with the most recently clicked item appearing on the top. I’m unable to figure it out. Below is my setup.

There is a list containing a few items.

let myList = ({id:1, name:'A'},{id:2, name:'B'},{id:3, name:'C'}) 

On my page /mainpage, I’m using a div to display this list.

<div v-for="item in myList" :key="">
 <div @click="doSomething(item)">{{}}</div>

Within the doSomething() method, I make some state changes and then change the route as follows:

// Method
doSomething (item) {
  await this.$store.dispatch('setActiveItem', item)

Clicking the item takes the user to this new page /new/{id}

On this page, there is a button to bring us back to the main page. The button has the following method.

previousPage () {

The problem is that when I return to the main page, the most recently clicked item appears on the top. The order of items has changed! I am just not able to figure out why this is happening. Please help.

checkout – Calling minicart in phtml not showing dropdown on click

I’m calling minicart in my phtml like below

<?php  echo $this->getLayout()
          ->toHtml(); ?>

But When I click on cart icon drop down is not showing. I inspected the dom there is not drop down ui widgets.

css – How to create autocomplete on click on textbox in magento2.3.5

I want to create dynamic textbox and using id attribute to use autocomplete functionality in this i am Developed dynamic id for each textbox on click of add Item button and my id is providde like this “textbox” + counter and i want to marge text box counter as textbox1. so can anyone having idea about this then please share wirh me.

‘textbox’ + counter as textbox1

Thank you in Advance.

html – Why do I have to click twice to toggle() in jQuery

TLDR: Why do I have to click twice to toggle my .show class on these divs?

Context: I’m trying to get a hidden div to overlay other divs on mobile devices, using a combined CSS grid and flex layout. I can get it to work on devices with a mouse, using just CSS and :hover, but not on touch devices – obviously because there is no easy way to “hover” on a phone. I’m ok with using click events instead of hover on mobile.

I’m using jQuery because it’s already loaded on the site for other reasons, but I’d be equally happy with a vanilla JS solution.

As far as I understand, I can’t use .show() or .hide() or similar functions in jQuery because they effectively change the item to display: block and don’t work with display: flex or display: grid. (Feel free to correct me).

I have no way of knowing how many divs the page might have in the end. I don’t want all the hidden boxes to display on click, just the one indicated by matching the ID (ie, if I click #some-id then #some-id-overlay should pop up, not #a-third-id-overlay or anything else). This is why I am looping over each .hover-target and using a click event listener in the loop.

I want this to work on click as well as on hover – should I be wrapping my .hover part in something that tests for the presence of a mouse/pointing device? Or checking for viewport width, perhaps?

I know the problem is something to do with having both on click and on hover – because if I remove the hover() part, the two-click problem goes away. I just don’t know how to fix it 🙁

Here is a simplified version of my code (live version at

/* SCSS */
.hover-target {
   display: flex;
.grid-item-overlay {
   display: none;

/* HTML */
<div class="hover-target" id="some-id"></div>
<div class="grid-item-overlay" id="some-id-overlay"></div>

<div class="hover-target" id="another-id"></div>
<div class="grid-item-overlay" id="another-id-overlay"></div>

<div class="hover-target" id="a-third-id"></div>
<div class="grid-item-overlay" id="a-third-id-overlay"></div>

/* JS */
jQuery( document ).ready(function() {
   jQuery( ".hover-target" ).each(function() {
      // get the ID of each hover target
      var hoverID = jQuery(this).attr('id'); // string
      var hoverOverlay = jQuery( '#' + hoverID + '-overlay' ); // element

      /* if any hover target is CLICKED */
      jQuery(this).on("click", function() {
         hoverOverlay.toggleClass( 'show' );
      }); // hover

      /* HOVER */
      jQuery( this ).hover( function() {
         hoverOverlay.toggleClass( 'show' );
      }); // hover

   }); // each

}); // document.ready

online – Getting Started Help: I want to build a simple real-time 2 player game with a shared map, both players can click and move objects, web browser

I’m an experienced software dev but pretty new (or rusty) when it comes to games, and current web technologies. So I figured I would quickly describe what I’d like to achieve, and hopefully get a quick point to the right framework/tech to get it started 🙂

So on the website, I want to have rooms with maps (and be able to create new ones dynamically), e.g. Only two people can join a room at once, and they play against each other.

The single webpage game is a static image (“map”) and the players can place, move (via dragging) and remove little objects, represented by a static image. Super simple.

Here, I made a small mockup:

enter image description here

That’s pretty much the extent of what I’d need to do. Load images, move around markers dynamically on a shared ‘map area’ between the two players, have a chat room, and be able to record all events in a log of some sort.

Alright, I hope that gives a pretty decent summary. I’m looking for info on big picture what framework/tech to use to get this off the ground ASAP. Thanks for any help!

javascript – El botón funciona en el segundo click, no en el primero

El siguiente botón no funciona la primera vez que es presionado, pero si a partir de la segunda-
¿Por qué pasa esto?

He simplificado el codigo para resolver este unico problema y poder implementarlo en una pagina web.
Este es el codigo completo:

<!DOCTYPE html>

<p id="demo">uno</p>
<button onclick="change_text()">Click me</button>

    var val = document.getElementById("demo").value;

    function change_text(){
        if(val == "uno"){
            val = "dos";
            val = "uno";

        document.getElementById("demo").innerHTML = val;


Este es el resultado:

El botón debe cambiar la palabra "uno" por "dos", pero no lo hace en el primer click