Home Forums Plugins WooCommerce Product Variations Swatches Variations Select List

Variations Select List

  • Author
    Posts
  • #72831

    Grzegorz Paśnik
    Participant

    Hello, I have a problem with the variants list.
    I would like it to have a built-in search module. I saw that it can be done in a simple way with “Ajax select2”, but when I enter php code into functions.php, nothing changes.
    “function enqueue_select2_jquery () {
    $ assets_path = str_replace (array (‘http:’, ‘https:’), ”, WC () -> plugin_url ()). ‘/ assets /’;
    wp_register_script (‘select2’, $ assets_path. ‘js / select2 / select2.js’, array (‘jquery’), ”, true);
    wp_enqueue_script (‘select2’);
    wp_enqueue_style (‘select2’, $ assets_path. ‘css / select2.css’);
    }
    add nazwa (‘wp_enqueue_scripts’, ‘enqueue_select2_jquery’); ”
    I would also like there to be a photo of the variant or just a color next to the variant name. Is it possible to do something like this? An example if I would like it to look like + additional search engine module.
    https://www.hairstore.pl/semilac-lakier-hybrydowy-7ml-p11215.html
    (this is not my site)

    Or how to make the “show more” button in the second example from the attachment.

    Attachments:
    You must be logged in to view attached files.

You must be logged in to reply to this topic. Click here to login or register