Jump to content

Drop-down menu not working in the front end


Antares3000

Recommended Posts

Hi everyone,

I created a shop in a simple way, then uploaded my products from csv
Once the color combinations are added from csv, everything works
When I then load the combinations from the drop-down menu, either using csv or from bo, the button on my ecommerce does not open, as attached in the picture

image.png.ca00ba349f4b66d3ca7fdc11b0ad7545.png

This is the error I get every time I click on that combination:

image.png.9f024b6582033b035f7f34c6e9b2cb49.png

Even clicking on the colored options gives me the same error in the console, but everything works!

Can someone help me?

 

Link to comment
Share on other sites

Your theme developer needs to improve his codding skills.

The way to select element in Jquery is like following:

<div id="mydivid" class="myclassname"></div>

// USING ID SELECTOR
Jquery('#mydivid').on( "click", function() {
    alert('Hello!');
});

// USING CLASS SELECTOR
Jquery('.myclassname').on( "click", function() {
    alert('Hello!');
});

using Jquery('#') would select all ids on the whole page, which is off course a behavior you do no want, therefore you get this error.

Link to comment
Share on other sites

Come 

6 minutes ago, Crezzur said:

Il tuo sviluppatore di temi deve migliorare le sue capacità di programmazione .

Il modo per selezionare l'elemento in Jquery è il seguente:

  

l'utilizzo di Jquery('#') selezionerebbe tutti gli ID sull'intera pagina, che è ovviamente un comportamento che non desideri, quindi ottieni questo errore.

thanks for the reply, how could i solve the problem?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...